@zodic/shared 0.0.23 → 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.
@@ -57,6 +57,13 @@
57
57
  "when": 1737664103218,
58
58
  "tag": "0007_complex_tarantula",
59
59
  "breakpoints": true
60
+ },
61
+ {
62
+ "idx": 8,
63
+ "version": "6",
64
+ "when": 1737668018656,
65
+ "tag": "0008_ancient_doomsday",
66
+ "breakpoints": true
60
67
  }
61
68
  ]
62
69
  }
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.23",
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
- "publish": "npm run db:generate && npm run db:up && npm run migrate-latest && npm publish"
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",
@@ -39,6 +39,7 @@ export type CentralBindings = {
39
39
  GOOGLE_SERVER_URL: string;
40
40
  GOOGLE_CLIENT_ID: string;
41
41
  GOOGLE_CLIENT_SECRET: string;
42
+ GOOGLE_TIMEZONE_API_KEY: string;
42
43
  FACEBOOK_SERVER_URL: string;
43
44
  FACEBOOK_CLIENT_ID: string;
44
45
  FACEBOOK_CLIENT_SECRET: string;
@@ -89,6 +90,7 @@ export type BackendBindings = Env &
89
90
  | 'DB'
90
91
  | 'JWT_SECRET'
91
92
  | 'GOOGLE_API_KEY'
93
+ | 'GOOGLE_TIMEZONE_API_KEY'
92
94
  | 'GOOGLE_SERVER_URL'
93
95
  | 'GOOGLE_CLIENT_ID'
94
96
  | 'GOOGLE_CLIENT_SECRET'