@zodic/shared 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/db/schema.ts +2 -1
  2. package/package.json +1 -1
package/db/schema.ts CHANGED
@@ -33,6 +33,7 @@ export const users = sqliteTable(
33
33
  createdAt: text('created_at')
34
34
  .default(sql`CURRENT_TIMESTAMP`)
35
35
  .notNull(),
36
+ updatedAt: text('updated_at').default(sql`CURRENT_TIMESTAMP`),
36
37
  },
37
38
  (t) => [index('users_email_idx').on(t.email)]
38
39
  );
@@ -174,7 +175,7 @@ export const artifacts = sqliteTable(
174
175
  {
175
176
  id: text('id').primaryKey(),
176
177
  name: text('name').notNull(), // Name of the artifact (e.g., "Cosmic Mirror")
177
- slug: text('slug').notNull(), // Slug of the artifact (e.g., "cosmic-mirror")
178
+ slug: text('slug').notNull().unique(), // Slug of the artifact (e.g., "cosmic-mirror")
178
179
  conceptId: text('concept_id')
179
180
  .notNull()
180
181
  .references(() => concepts.id, { onDelete: 'cascade' }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {