@zodic/shared 0.0.21 → 0.0.23

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.
@@ -43,6 +43,20 @@
43
43
  "when": 1737650810571,
44
44
  "tag": "0005_silky_dagger",
45
45
  "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "6",
50
+ "when": 1737651252070,
51
+ "tag": "0006_low_silver_centurion",
52
+ "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "6",
57
+ "when": 1737664103218,
58
+ "tag": "0007_complex_tarantula",
59
+ "breakpoints": true
46
60
  }
47
61
  ]
48
62
  }
package/db/schema.ts CHANGED
@@ -109,7 +109,7 @@ export const astroFeatures = sqliteTable(
109
109
  name: text('name').notNull(), // e.g., "Fire", "Mutable", "First Quarter Moon"
110
110
  description: text('description'), // Detailed description
111
111
  percentage: real('percentage'), // For elements, modes, dominant sign
112
- order: integer('order').notNull(), // For consistent display order
112
+ order: integer('order'), // For consistent display order
113
113
  prominentId: integer('prominent_id'), // NEW: Highlighted option index (1-based)
114
114
  },
115
115
  (t) => [index('astro_features_user_id_idx').on(t.userId)]
@@ -161,7 +161,7 @@ export const userConcepts = sqliteTable(
161
161
  conceptCombinationId: text('concept_combination_id')
162
162
  .notNull()
163
163
  .references(() => conceptCombinations.id, { onDelete: 'cascade' }),
164
- ...timestampFields,
164
+ ...timestampFields,
165
165
  },
166
166
  (t) => [
167
167
  index('user_concepts_user_id_idx').on(t.userId),
@@ -212,7 +212,7 @@ export const userArtifacts = sqliteTable(
212
212
  status: text('status')
213
213
  .default('pending') // Possible statuses: 'pending', 'post_ready', 'reel_ready', 'completed'
214
214
  .notNull(),
215
- ...timestampFields,
215
+ ...timestampFields,
216
216
  },
217
217
  (t) => [
218
218
  index('user_artifacts_user_id_idx').on(t.userId),
@@ -225,9 +225,7 @@ export const generations = sqliteTable(
225
225
  'generations',
226
226
  {
227
227
  id: text('id').primaryKey(), // generationId from Leonardo
228
- userId: text('user_id')
229
- .notNull()
230
- .references(() => users.id, { onDelete: 'cascade' }),
228
+ userId: text('user_id').references(() => users.id, { onDelete: 'cascade' }),
231
229
  artifactId: text('artifact_id').references(() => artifacts.id, {
232
230
  onDelete: 'cascade',
233
231
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -11,7 +11,7 @@
11
11
  "migrate-latest": "wrangler d1 execute DB --file=$(ls -t ./db/migrations/*.sql | head -n 1) --remote",
12
12
  "db:generate": "drizzle-kit generate",
13
13
  "db:up": "drizzle-kit up",
14
- "db:all": "npm run db:generate && npm run db:up && npm run migrate-latest"
14
+ "publish": "npm run db:generate && npm run db:up && npm run migrate-latest && npm publish"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/inversify": "^2.0.33",