@zodic/shared 0.0.30 → 0.0.32

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.
@@ -29,6 +29,13 @@
29
29
  "when": 1737680440619,
30
30
  "tag": "0003_fearless_giant_girl",
31
31
  "breakpoints": true
32
+ },
33
+ {
34
+ "idx": 4,
35
+ "version": "6",
36
+ "when": 1737682853316,
37
+ "tag": "0004_typical_king_bedlam",
38
+ "breakpoints": true
32
39
  }
33
40
  ]
34
41
  }
package/db/schema.ts CHANGED
@@ -50,6 +50,19 @@ export const users = sqliteTable(
50
50
  ]
51
51
  );
52
52
 
53
+ export const usersTemp = sqliteTable(
54
+ 'users_temp',
55
+ {
56
+ id: text('id').primaryKey(),
57
+ email: text('email').notNull().unique(),
58
+ name: text('name').notNull(),
59
+ profileImage: text('profile_image'),
60
+ provider: text('provider').notNull(),
61
+ ...timestampFields,
62
+ },
63
+ (t) => [index('users_temp_email_idx').on(t.email)]
64
+ );
65
+
53
66
  export const creditsTransactions = sqliteTable(
54
67
  'credits_transactions',
55
68
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -31,6 +31,7 @@ export type CentralBindings = {
31
31
  PROMPT_GENERATE_USER_LUMINOUS_SELF: string;
32
32
  AI: Ai;
33
33
  DB: D1Database;
34
+ DRIZZLE: DrizzleD1Database;
34
35
  JWT_SECRET: string;
35
36
  CLOUDFLARE_DATABASE_ID: string;
36
37
  CLOUDFLARE_D1_TOKEN: string;
@@ -151,6 +152,7 @@ export type AuthBindings = Env &
151
152
  | 'ISSUER'
152
153
  | 'DB'
153
154
  | 'CLOUDFLARE_ACCOUNT_ID'
155
+ | 'DRIZZLE'
154
156
  >;
155
157
 
156
158
  export type AuthCtx = Context<