@zodic/shared 0.0.25 → 0.0.26

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.
@@ -64,6 +64,13 @@
64
64
  "when": 1737668018656,
65
65
  "tag": "0008_ancient_doomsday",
66
66
  "breakpoints": true
67
+ },
68
+ {
69
+ "idx": 9,
70
+ "version": "6",
71
+ "when": 1737677651577,
72
+ "tag": "0009_odd_metal_master",
73
+ "breakpoints": true
67
74
  }
68
75
  ]
69
76
  }
package/db/schema.ts CHANGED
@@ -25,20 +25,20 @@ export const users = sqliteTable(
25
25
  profileImage: text('profile_image'),
26
26
  userPhotoId: text('user_photo_id'),
27
27
  userPhotoUrl: text('user_photo_url'),
28
- gender: text('gender'),
29
- day: integer('day'), // Day of birth
30
- month: integer('month'), // Month of birth
31
- year: integer('year'), // Year of birth
32
- hour: integer('hour'), // Hour of birth (nullable)
33
- min: integer('min'), // Minute of birth (nullable)
34
- latitude: real('latitude'),
35
- longitude: real('longitude'),
36
- tzone: real('tzone'),
37
- instagramUsername: text('instagram_username'),
38
- tiktokUsername: text('instagram_username'),
39
- credits_balance: integer('credits_balance'),
40
- totalCreditsEarned: integer('total_credits_earned').default(0),
41
- lastTransactionAt: integer('last_transaction_at', { mode: 'timestamp' }),
28
+ gender: text('gender'), // Nullable for optional disclosure
29
+ day: integer('day').notNull(), // Day of birth
30
+ month: integer('month').notNull(), // Month of birth
31
+ year: integer('year').notNull(), // Year of birth
32
+ hour: integer('hour'), // Nullable for unknown birth hour
33
+ min: integer('min'), // Nullable for unknown birth minute
34
+ latitude: real('latitude').notNull(),
35
+ longitude: real('longitude').notNull(),
36
+ tzone: real('tzone'), // Nullable for inferred timezone
37
+ instagramUsername: text('instagram_username'), // Nullable for optional social media
38
+ tiktokUsername: text('tiktok_username'), // Fix typo
39
+ credits_balance: integer('credits_balance').default(0).notNull(),
40
+ totalCreditsEarned: integer('total_credits_earned').default(0).notNull(),
41
+ lastTransactionAt: integer('last_transaction_at', { mode: 'timestamp' }), // Nullable for no transactions
42
42
  ...timestampFields,
43
43
  },
44
44
  (t) => [index('users_email_idx').on(t.email)]
@@ -129,9 +129,6 @@ export const astroAspects = sqliteTable(
129
129
  type: text('type').notNull(), // E.g., "Conjunction", "Square"
130
130
  orb: real('orb').notNull(), // Orb value
131
131
  diff: real('diff').notNull(), // Difference value
132
- createdAt: integer('created_at', { mode: 'timestamp' }).default(
133
- sql`CURRENT_TIMESTAMP`
134
- ),
135
132
  },
136
133
  (t) => [
137
134
  index('astro_aspects_user_id_idx').on(t.userId), // Index for efficient user queries
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {