@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.
- package/db/migrations/0006_low_silver_centurion.sql +26 -0
- package/db/migrations/0007_complex_tarantula.sql +18 -0
- package/db/migrations/meta/0006_snapshot.json +1487 -0
- package/db/migrations/meta/0007_snapshot.json +1487 -0
- package/db/migrations/meta/_journal.json +14 -0
- package/db/schema.ts +4 -6
- package/package.json +2 -2
|
@@ -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')
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
"
|
|
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",
|