@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.
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'), //
|
|
33
|
-
min: integer('min'), //
|
|
34
|
-
latitude: real('latitude'),
|
|
35
|
-
longitude: real('longitude'),
|
|
36
|
-
tzone: real('tzone'),
|
|
37
|
-
instagramUsername: text('instagram_username'),
|
|
38
|
-
tiktokUsername: text('
|
|
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
|