@sanoma-ai/connector-better-auth 0.2.4 → 0.2.6

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.
@@ -0,0 +1,431 @@
1
+ {
2
+ "id": "8775bfb7-1a29-45fa-b8d2-abc42eb5db75",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "better_auth_staff.account": {
8
+ "name": "account",
9
+ "schema": "better_auth_staff",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "account_id": {
18
+ "name": "account_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "provider_id": {
24
+ "name": "provider_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "user_id": {
30
+ "name": "user_id",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "access_token": {
36
+ "name": "access_token",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "refresh_token": {
42
+ "name": "refresh_token",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "id_token": {
48
+ "name": "id_token",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "access_token_expires_at": {
54
+ "name": "access_token_expires_at",
55
+ "type": "timestamp with time zone",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "refresh_token_expires_at": {
60
+ "name": "refresh_token_expires_at",
61
+ "type": "timestamp with time zone",
62
+ "primaryKey": false,
63
+ "notNull": false
64
+ },
65
+ "scope": {
66
+ "name": "scope",
67
+ "type": "text",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "password": {
72
+ "name": "password",
73
+ "type": "text",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "created_at": {
78
+ "name": "created_at",
79
+ "type": "timestamp with time zone",
80
+ "primaryKey": false,
81
+ "notNull": true,
82
+ "default": "now()"
83
+ },
84
+ "updated_at": {
85
+ "name": "updated_at",
86
+ "type": "timestamp with time zone",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "default": "now()"
90
+ }
91
+ },
92
+ "indexes": {
93
+ "account_user_id_index": {
94
+ "name": "account_user_id_index",
95
+ "columns": [
96
+ {
97
+ "expression": "user_id",
98
+ "isExpression": false,
99
+ "asc": true,
100
+ "nulls": "last"
101
+ }
102
+ ],
103
+ "isUnique": false,
104
+ "concurrently": false,
105
+ "method": "btree",
106
+ "with": {}
107
+ }
108
+ },
109
+ "foreignKeys": {
110
+ "account_user_id_user_id_fk": {
111
+ "name": "account_user_id_user_id_fk",
112
+ "tableFrom": "account",
113
+ "tableTo": "user",
114
+ "schemaTo": "better_auth_staff",
115
+ "columnsFrom": [
116
+ "user_id"
117
+ ],
118
+ "columnsTo": [
119
+ "id"
120
+ ],
121
+ "onDelete": "cascade",
122
+ "onUpdate": "no action"
123
+ }
124
+ },
125
+ "compositePrimaryKeys": {},
126
+ "uniqueConstraints": {},
127
+ "policies": {},
128
+ "checkConstraints": {},
129
+ "isRLSEnabled": false
130
+ },
131
+ "better_auth_staff.rate_limit": {
132
+ "name": "rate_limit",
133
+ "schema": "better_auth_staff",
134
+ "columns": {
135
+ "id": {
136
+ "name": "id",
137
+ "type": "text",
138
+ "primaryKey": true,
139
+ "notNull": true
140
+ },
141
+ "key": {
142
+ "name": "key",
143
+ "type": "text",
144
+ "primaryKey": false,
145
+ "notNull": true
146
+ },
147
+ "count": {
148
+ "name": "count",
149
+ "type": "integer",
150
+ "primaryKey": false,
151
+ "notNull": true
152
+ },
153
+ "last_request": {
154
+ "name": "last_request",
155
+ "type": "bigint",
156
+ "primaryKey": false,
157
+ "notNull": true
158
+ }
159
+ },
160
+ "indexes": {},
161
+ "foreignKeys": {},
162
+ "compositePrimaryKeys": {},
163
+ "uniqueConstraints": {
164
+ "rate_limit_key_unique": {
165
+ "name": "rate_limit_key_unique",
166
+ "nullsNotDistinct": false,
167
+ "columns": [
168
+ "key"
169
+ ]
170
+ }
171
+ },
172
+ "policies": {},
173
+ "checkConstraints": {},
174
+ "isRLSEnabled": false
175
+ },
176
+ "better_auth_staff.session": {
177
+ "name": "session",
178
+ "schema": "better_auth_staff",
179
+ "columns": {
180
+ "id": {
181
+ "name": "id",
182
+ "type": "text",
183
+ "primaryKey": true,
184
+ "notNull": true
185
+ },
186
+ "expires_at": {
187
+ "name": "expires_at",
188
+ "type": "timestamp with time zone",
189
+ "primaryKey": false,
190
+ "notNull": true
191
+ },
192
+ "token": {
193
+ "name": "token",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": true
197
+ },
198
+ "created_at": {
199
+ "name": "created_at",
200
+ "type": "timestamp with time zone",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "default": "now()"
204
+ },
205
+ "updated_at": {
206
+ "name": "updated_at",
207
+ "type": "timestamp with time zone",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "default": "now()"
211
+ },
212
+ "ip_address": {
213
+ "name": "ip_address",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": false
217
+ },
218
+ "user_agent": {
219
+ "name": "user_agent",
220
+ "type": "text",
221
+ "primaryKey": false,
222
+ "notNull": false
223
+ },
224
+ "user_id": {
225
+ "name": "user_id",
226
+ "type": "text",
227
+ "primaryKey": false,
228
+ "notNull": true
229
+ }
230
+ },
231
+ "indexes": {
232
+ "session_user_id_index": {
233
+ "name": "session_user_id_index",
234
+ "columns": [
235
+ {
236
+ "expression": "user_id",
237
+ "isExpression": false,
238
+ "asc": true,
239
+ "nulls": "last"
240
+ }
241
+ ],
242
+ "isUnique": false,
243
+ "concurrently": false,
244
+ "method": "btree",
245
+ "with": {}
246
+ }
247
+ },
248
+ "foreignKeys": {
249
+ "session_user_id_user_id_fk": {
250
+ "name": "session_user_id_user_id_fk",
251
+ "tableFrom": "session",
252
+ "tableTo": "user",
253
+ "schemaTo": "better_auth_staff",
254
+ "columnsFrom": [
255
+ "user_id"
256
+ ],
257
+ "columnsTo": [
258
+ "id"
259
+ ],
260
+ "onDelete": "cascade",
261
+ "onUpdate": "no action"
262
+ }
263
+ },
264
+ "compositePrimaryKeys": {},
265
+ "uniqueConstraints": {
266
+ "session_token_unique": {
267
+ "name": "session_token_unique",
268
+ "nullsNotDistinct": false,
269
+ "columns": [
270
+ "token"
271
+ ]
272
+ }
273
+ },
274
+ "policies": {},
275
+ "checkConstraints": {},
276
+ "isRLSEnabled": false
277
+ },
278
+ "better_auth_staff.user": {
279
+ "name": "user",
280
+ "schema": "better_auth_staff",
281
+ "columns": {
282
+ "id": {
283
+ "name": "id",
284
+ "type": "text",
285
+ "primaryKey": true,
286
+ "notNull": true
287
+ },
288
+ "name": {
289
+ "name": "name",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": true
293
+ },
294
+ "email": {
295
+ "name": "email",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": true
299
+ },
300
+ "email_verified": {
301
+ "name": "email_verified",
302
+ "type": "boolean",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "default": false
306
+ },
307
+ "image": {
308
+ "name": "image",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": false
312
+ },
313
+ "created_at": {
314
+ "name": "created_at",
315
+ "type": "timestamp with time zone",
316
+ "primaryKey": false,
317
+ "notNull": true,
318
+ "default": "now()"
319
+ },
320
+ "updated_at": {
321
+ "name": "updated_at",
322
+ "type": "timestamp with time zone",
323
+ "primaryKey": false,
324
+ "notNull": true,
325
+ "default": "now()"
326
+ },
327
+ "github": {
328
+ "name": "github",
329
+ "type": "text",
330
+ "primaryKey": false,
331
+ "notNull": false
332
+ }
333
+ },
334
+ "indexes": {},
335
+ "foreignKeys": {},
336
+ "compositePrimaryKeys": {},
337
+ "uniqueConstraints": {
338
+ "user_email_unique": {
339
+ "name": "user_email_unique",
340
+ "nullsNotDistinct": false,
341
+ "columns": [
342
+ "email"
343
+ ]
344
+ }
345
+ },
346
+ "policies": {},
347
+ "checkConstraints": {},
348
+ "isRLSEnabled": false
349
+ },
350
+ "better_auth_staff.verification": {
351
+ "name": "verification",
352
+ "schema": "better_auth_staff",
353
+ "columns": {
354
+ "id": {
355
+ "name": "id",
356
+ "type": "text",
357
+ "primaryKey": true,
358
+ "notNull": true
359
+ },
360
+ "identifier": {
361
+ "name": "identifier",
362
+ "type": "text",
363
+ "primaryKey": false,
364
+ "notNull": true
365
+ },
366
+ "value": {
367
+ "name": "value",
368
+ "type": "text",
369
+ "primaryKey": false,
370
+ "notNull": true
371
+ },
372
+ "expires_at": {
373
+ "name": "expires_at",
374
+ "type": "timestamp with time zone",
375
+ "primaryKey": false,
376
+ "notNull": true
377
+ },
378
+ "created_at": {
379
+ "name": "created_at",
380
+ "type": "timestamp with time zone",
381
+ "primaryKey": false,
382
+ "notNull": true,
383
+ "default": "now()"
384
+ },
385
+ "updated_at": {
386
+ "name": "updated_at",
387
+ "type": "timestamp with time zone",
388
+ "primaryKey": false,
389
+ "notNull": true,
390
+ "default": "now()"
391
+ }
392
+ },
393
+ "indexes": {
394
+ "verification_identifier_index": {
395
+ "name": "verification_identifier_index",
396
+ "columns": [
397
+ {
398
+ "expression": "identifier",
399
+ "isExpression": false,
400
+ "asc": true,
401
+ "nulls": "last"
402
+ }
403
+ ],
404
+ "isUnique": false,
405
+ "concurrently": false,
406
+ "method": "btree",
407
+ "with": {}
408
+ }
409
+ },
410
+ "foreignKeys": {},
411
+ "compositePrimaryKeys": {},
412
+ "uniqueConstraints": {},
413
+ "policies": {},
414
+ "checkConstraints": {},
415
+ "isRLSEnabled": false
416
+ }
417
+ },
418
+ "enums": {},
419
+ "schemas": {
420
+ "better_auth_staff": "better_auth_staff"
421
+ },
422
+ "sequences": {},
423
+ "roles": {},
424
+ "policies": {},
425
+ "views": {},
426
+ "_meta": {
427
+ "columns": {},
428
+ "schemas": {},
429
+ "tables": {}
430
+ }
431
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "postgresql",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "7",
8
+ "when": 1793847455676,
9
+ "tag": "0000_closed_toro",
10
+ "breakpoints": true
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,64 @@
1
+ CREATE SCHEMA "better_auth";
2
+ --> statement-breakpoint
3
+ CREATE TABLE "better_auth"."account" (
4
+ "id" text PRIMARY KEY NOT NULL,
5
+ "account_id" text NOT NULL,
6
+ "provider_id" text NOT NULL,
7
+ "user_id" text NOT NULL,
8
+ "access_token" text,
9
+ "refresh_token" text,
10
+ "id_token" text,
11
+ "access_token_expires_at" timestamp with time zone,
12
+ "refresh_token_expires_at" timestamp with time zone,
13
+ "scope" text,
14
+ "password" text,
15
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
16
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
17
+ );
18
+ --> statement-breakpoint
19
+ CREATE TABLE "better_auth"."rate_limit" (
20
+ "id" text PRIMARY KEY NOT NULL,
21
+ "key" text NOT NULL,
22
+ "count" integer NOT NULL,
23
+ "last_request" bigint NOT NULL,
24
+ CONSTRAINT "rate_limit_key_unique" UNIQUE("key")
25
+ );
26
+ --> statement-breakpoint
27
+ CREATE TABLE "better_auth"."session" (
28
+ "id" text PRIMARY KEY NOT NULL,
29
+ "expires_at" timestamp with time zone NOT NULL,
30
+ "token" text NOT NULL,
31
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
32
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
33
+ "ip_address" text,
34
+ "user_agent" text,
35
+ "user_id" text NOT NULL,
36
+ CONSTRAINT "session_token_unique" UNIQUE("token")
37
+ );
38
+ --> statement-breakpoint
39
+ CREATE TABLE "better_auth"."user" (
40
+ "id" text PRIMARY KEY NOT NULL,
41
+ "name" text NOT NULL,
42
+ "email" text NOT NULL,
43
+ "email_verified" boolean DEFAULT false NOT NULL,
44
+ "image" text,
45
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
46
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
47
+ "github" text,
48
+ CONSTRAINT "user_email_unique" UNIQUE("email")
49
+ );
50
+ --> statement-breakpoint
51
+ CREATE TABLE "better_auth"."verification" (
52
+ "id" text PRIMARY KEY NOT NULL,
53
+ "identifier" text NOT NULL,
54
+ "value" text NOT NULL,
55
+ "expires_at" timestamp with time zone NOT NULL,
56
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
57
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
58
+ );
59
+ --> statement-breakpoint
60
+ ALTER TABLE "better_auth"."account" ADD CONSTRAINT "account_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "better_auth"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
61
+ ALTER TABLE "better_auth"."session" ADD CONSTRAINT "session_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "better_auth"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
62
+ CREATE INDEX "account_user_id_index" ON "better_auth"."account" USING btree ("user_id");--> statement-breakpoint
63
+ CREATE INDEX "session_user_id_index" ON "better_auth"."session" USING btree ("user_id");--> statement-breakpoint
64
+ CREATE INDEX "verification_identifier_index" ON "better_auth"."verification" USING btree ("identifier");