@zodic/shared 0.0.24 → 0.0.25
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/schema.ts
CHANGED
|
@@ -115,6 +115,29 @@ export const astroFeatures = sqliteTable(
|
|
|
115
115
|
(t) => [index('astro_features_user_id_idx').on(t.userId)]
|
|
116
116
|
);
|
|
117
117
|
|
|
118
|
+
export const astroAspects = sqliteTable(
|
|
119
|
+
'astro_aspects',
|
|
120
|
+
{
|
|
121
|
+
id: text('id').primaryKey(), // Unique identifier for the aspect
|
|
122
|
+
userId: text('user_id')
|
|
123
|
+
.notNull()
|
|
124
|
+
.references(() => users.id, { onDelete: 'cascade' }), // Links to the user
|
|
125
|
+
aspectingPlanet: text('aspecting_planet').notNull(), // E.g., "Sun"
|
|
126
|
+
aspectedPlanet: text('aspected_planet').notNull(), // E.g., "Mercury"
|
|
127
|
+
aspectingPlanetId: integer('aspecting_planet_id').notNull(), // Index of the aspecting planet
|
|
128
|
+
aspectedPlanetId: integer('aspected_planet_id').notNull(), // Index of the aspected planet
|
|
129
|
+
type: text('type').notNull(), // E.g., "Conjunction", "Square"
|
|
130
|
+
orb: real('orb').notNull(), // Orb value
|
|
131
|
+
diff: real('diff').notNull(), // Difference value
|
|
132
|
+
createdAt: integer('created_at', { mode: 'timestamp' }).default(
|
|
133
|
+
sql`CURRENT_TIMESTAMP`
|
|
134
|
+
),
|
|
135
|
+
},
|
|
136
|
+
(t) => [
|
|
137
|
+
index('astro_aspects_user_id_idx').on(t.userId), // Index for efficient user queries
|
|
138
|
+
]
|
|
139
|
+
);
|
|
140
|
+
|
|
118
141
|
export const concepts = sqliteTable(
|
|
119
142
|
'concepts',
|
|
120
143
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zodic/shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
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
|
+
"pub": "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",
|