@zodic/shared 0.0.278 → 0.0.280
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
|
@@ -40,7 +40,7 @@ export const users = sqliteTable(
|
|
|
40
40
|
tiktokUsername: text('tiktok_username').unique(), // Fix typo
|
|
41
41
|
oauthProvider: text('oauth_provider'), // e.g., "google", "facebook", "apple", nullable for password-based login
|
|
42
42
|
oauthProviderId: text('oauth_provider_id').unique(), // Unique identifier from the provider
|
|
43
|
-
|
|
43
|
+
creditsBalance: integer('credits_balance').default(0).notNull(),
|
|
44
44
|
totalCreditsEarned: integer('total_credits_earned').default(0).notNull(),
|
|
45
45
|
lastTransactionAt: integer('last_transaction_at', { mode: 'timestamp' }), // Nullable for no transactions
|
|
46
46
|
language: text('language').notNull(),
|
package/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -555,4 +555,26 @@ export type UserConceptData = {
|
|
|
555
555
|
};
|
|
556
556
|
combinationString: string; // e.g., "sagittarius-aquarius-libra"
|
|
557
557
|
conceptSlug: Concept;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
export type UserProfile = {
|
|
561
|
+
email: string;
|
|
562
|
+
name: string;
|
|
563
|
+
profileImage: string | null;
|
|
564
|
+
userPhotoId: string | null;
|
|
565
|
+
userPhotoUrl: string | null;
|
|
566
|
+
gender: string | null;
|
|
567
|
+
day: number;
|
|
568
|
+
month: number;
|
|
569
|
+
year: number;
|
|
570
|
+
hour: number | null;
|
|
571
|
+
min: number | null;
|
|
572
|
+
latitude: number;
|
|
573
|
+
longitude: number;
|
|
574
|
+
birthLocation: string;
|
|
575
|
+
instagramUsername: string | null;
|
|
576
|
+
tiktokUsername: string | null;
|
|
577
|
+
oauthProvider: string | null;
|
|
578
|
+
creditsBalance: number;
|
|
579
|
+
language: string;
|
|
558
580
|
};
|