@wraps.dev/cli 2.21.10 → 2.21.12

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.
Files changed (65) hide show
  1. package/dist/api-lambda.zip +0 -0
  2. package/dist/cli.js +3 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/lambda/event-processor/.bundled +1 -1
  5. package/dist/lambda/inbound-processor/.bundled +1 -1
  6. package/dist/lambda/sms-event-processor/.bundled +1 -1
  7. package/dist/selfhost-migrations/meta/0000_snapshot.json +1311 -0
  8. package/dist/selfhost-migrations/meta/0001_snapshot.json +1454 -0
  9. package/dist/selfhost-migrations/meta/0002_snapshot.json +1460 -0
  10. package/dist/selfhost-migrations/meta/0003_snapshot.json +1467 -0
  11. package/dist/selfhost-migrations/meta/0004_snapshot.json +1473 -0
  12. package/dist/selfhost-migrations/meta/0005_snapshot.json +1499 -0
  13. package/dist/selfhost-migrations/meta/0006_snapshot.json +1617 -0
  14. package/dist/selfhost-migrations/meta/0007_snapshot.json +2581 -0
  15. package/dist/selfhost-migrations/meta/0008_snapshot.json +2861 -0
  16. package/dist/selfhost-migrations/meta/0009_snapshot.json +3447 -0
  17. package/dist/selfhost-migrations/meta/0010_snapshot.json +3586 -0
  18. package/dist/selfhost-migrations/meta/0011_snapshot.json +3600 -0
  19. package/dist/selfhost-migrations/meta/0012_snapshot.json +3607 -0
  20. package/dist/selfhost-migrations/meta/0013_snapshot.json +4697 -0
  21. package/dist/selfhost-migrations/meta/0014_snapshot.json +4704 -0
  22. package/dist/selfhost-migrations/meta/0015_snapshot.json +4697 -0
  23. package/dist/selfhost-migrations/meta/0016_snapshot.json +4703 -0
  24. package/dist/selfhost-migrations/meta/0017_snapshot.json +4769 -0
  25. package/dist/selfhost-migrations/meta/0018_snapshot.json +4821 -0
  26. package/dist/selfhost-migrations/meta/0019_snapshot.json +4840 -0
  27. package/dist/selfhost-migrations/meta/0020_snapshot.json +5602 -0
  28. package/dist/selfhost-migrations/meta/0021_snapshot.json +5729 -0
  29. package/dist/selfhost-migrations/meta/0022_snapshot.json +5792 -0
  30. package/dist/selfhost-migrations/meta/0023_snapshot.json +5799 -0
  31. package/dist/selfhost-migrations/meta/0024_snapshot.json +5821 -0
  32. package/dist/selfhost-migrations/meta/0025_snapshot.json +5831 -0
  33. package/dist/selfhost-migrations/meta/0026_snapshot.json +5844 -0
  34. package/dist/selfhost-migrations/meta/0027_snapshot.json +5864 -0
  35. package/dist/selfhost-migrations/meta/0028_snapshot.json +5871 -0
  36. package/dist/selfhost-migrations/meta/0029_snapshot.json +5984 -0
  37. package/dist/selfhost-migrations/meta/0030_snapshot.json +5990 -0
  38. package/dist/selfhost-migrations/meta/0031_snapshot.json +5950 -0
  39. package/dist/selfhost-migrations/meta/0032_snapshot.json +6042 -0
  40. package/dist/selfhost-migrations/meta/0033_snapshot.json +6057 -0
  41. package/dist/selfhost-migrations/meta/0034_snapshot.json +6130 -0
  42. package/dist/selfhost-migrations/meta/0035_snapshot.json +6195 -0
  43. package/dist/selfhost-migrations/meta/0036_snapshot.json +6201 -0
  44. package/dist/selfhost-migrations/meta/0037_snapshot.json +6265 -0
  45. package/dist/selfhost-migrations/meta/0038_snapshot.json +6271 -0
  46. package/dist/selfhost-migrations/meta/0039_snapshot.json +6278 -0
  47. package/dist/selfhost-migrations/meta/0041_snapshot.json +6284 -0
  48. package/dist/selfhost-migrations/meta/0042_snapshot.json +6297 -0
  49. package/dist/selfhost-migrations/meta/0043_snapshot.json +6297 -0
  50. package/dist/selfhost-migrations/meta/0044_snapshot.json +6297 -0
  51. package/dist/selfhost-migrations/meta/0045_snapshot.json +6303 -0
  52. package/dist/selfhost-migrations/meta/0046_snapshot.json +6315 -0
  53. package/dist/selfhost-migrations/meta/0047_snapshot.json +6330 -0
  54. package/dist/selfhost-migrations/meta/0048_snapshot.json +6336 -0
  55. package/dist/selfhost-migrations/meta/0049_snapshot.json +6366 -0
  56. package/dist/selfhost-migrations/meta/0050_snapshot.json +6390 -0
  57. package/dist/selfhost-migrations/meta/0051_snapshot.json +6403 -0
  58. package/dist/selfhost-migrations/meta/0052_snapshot.json +6470 -0
  59. package/dist/selfhost-migrations/meta/0053_snapshot.json +6470 -0
  60. package/dist/selfhost-migrations/meta/0054_snapshot.json +6646 -0
  61. package/dist/selfhost-migrations/meta/0055_snapshot.json +6677 -0
  62. package/dist/selfhost-migrations/meta/0056_snapshot.json +6677 -0
  63. package/dist/selfhost-migrations/meta/0057_snapshot.json +6674 -0
  64. package/dist/selfhost-migrations/meta/_journal.json +412 -0
  65. package/package.json +1 -1
@@ -0,0 +1,1311 @@
1
+ {
2
+ "id": "6f651cfe-1c65-4080-8ba0-dcedfeab178d",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.api_key": {
8
+ "name": "api_key",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "organization_id": {
18
+ "name": "organization_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "name": {
24
+ "name": "name",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "key_hash": {
30
+ "name": "key_hash",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "prefix": {
36
+ "name": "prefix",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "permissions": {
42
+ "name": "permissions",
43
+ "type": "json",
44
+ "primaryKey": false,
45
+ "notNull": false,
46
+ "default": "'[]'::json"
47
+ },
48
+ "last_used_at": {
49
+ "name": "last_used_at",
50
+ "type": "timestamp",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "expires_at": {
55
+ "name": "expires_at",
56
+ "type": "timestamp",
57
+ "primaryKey": false,
58
+ "notNull": false
59
+ },
60
+ "created_by": {
61
+ "name": "created_by",
62
+ "type": "text",
63
+ "primaryKey": false,
64
+ "notNull": false
65
+ },
66
+ "created_at": {
67
+ "name": "created_at",
68
+ "type": "timestamp",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "default": "now()"
72
+ }
73
+ },
74
+ "indexes": {
75
+ "api_key_org_idx": {
76
+ "name": "api_key_org_idx",
77
+ "columns": [
78
+ {
79
+ "expression": "organization_id",
80
+ "isExpression": false,
81
+ "asc": true,
82
+ "nulls": "last"
83
+ }
84
+ ],
85
+ "isUnique": false,
86
+ "concurrently": false,
87
+ "method": "btree",
88
+ "with": {}
89
+ },
90
+ "api_key_prefix_idx": {
91
+ "name": "api_key_prefix_idx",
92
+ "columns": [
93
+ {
94
+ "expression": "prefix",
95
+ "isExpression": false,
96
+ "asc": true,
97
+ "nulls": "last"
98
+ }
99
+ ],
100
+ "isUnique": false,
101
+ "concurrently": false,
102
+ "method": "btree",
103
+ "with": {}
104
+ }
105
+ },
106
+ "foreignKeys": {
107
+ "api_key_organization_id_organization_id_fk": {
108
+ "name": "api_key_organization_id_organization_id_fk",
109
+ "tableFrom": "api_key",
110
+ "tableTo": "organization",
111
+ "columnsFrom": ["organization_id"],
112
+ "columnsTo": ["id"],
113
+ "onDelete": "cascade",
114
+ "onUpdate": "no action"
115
+ },
116
+ "api_key_created_by_user_id_fk": {
117
+ "name": "api_key_created_by_user_id_fk",
118
+ "tableFrom": "api_key",
119
+ "tableTo": "user",
120
+ "columnsFrom": ["created_by"],
121
+ "columnsTo": ["id"],
122
+ "onDelete": "no action",
123
+ "onUpdate": "no action"
124
+ }
125
+ },
126
+ "compositePrimaryKeys": {},
127
+ "uniqueConstraints": {},
128
+ "policies": {},
129
+ "checkConstraints": {},
130
+ "isRLSEnabled": false
131
+ },
132
+ "public.audit_log": {
133
+ "name": "audit_log",
134
+ "schema": "",
135
+ "columns": {
136
+ "id": {
137
+ "name": "id",
138
+ "type": "text",
139
+ "primaryKey": true,
140
+ "notNull": true
141
+ },
142
+ "organization_id": {
143
+ "name": "organization_id",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": true
147
+ },
148
+ "user_id": {
149
+ "name": "user_id",
150
+ "type": "text",
151
+ "primaryKey": false,
152
+ "notNull": false
153
+ },
154
+ "action": {
155
+ "name": "action",
156
+ "type": "text",
157
+ "primaryKey": false,
158
+ "notNull": true
159
+ },
160
+ "resource": {
161
+ "name": "resource",
162
+ "type": "text",
163
+ "primaryKey": false,
164
+ "notNull": true
165
+ },
166
+ "resource_id": {
167
+ "name": "resource_id",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": false
171
+ },
172
+ "metadata": {
173
+ "name": "metadata",
174
+ "type": "json",
175
+ "primaryKey": false,
176
+ "notNull": false
177
+ },
178
+ "ip_address": {
179
+ "name": "ip_address",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": false
183
+ },
184
+ "user_agent": {
185
+ "name": "user_agent",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": false
189
+ },
190
+ "created_at": {
191
+ "name": "created_at",
192
+ "type": "timestamp",
193
+ "primaryKey": false,
194
+ "notNull": true,
195
+ "default": "now()"
196
+ }
197
+ },
198
+ "indexes": {
199
+ "audit_log_org_idx": {
200
+ "name": "audit_log_org_idx",
201
+ "columns": [
202
+ {
203
+ "expression": "organization_id",
204
+ "isExpression": false,
205
+ "asc": true,
206
+ "nulls": "last"
207
+ }
208
+ ],
209
+ "isUnique": false,
210
+ "concurrently": false,
211
+ "method": "btree",
212
+ "with": {}
213
+ },
214
+ "audit_log_timestamp_idx": {
215
+ "name": "audit_log_timestamp_idx",
216
+ "columns": [
217
+ {
218
+ "expression": "created_at",
219
+ "isExpression": false,
220
+ "asc": true,
221
+ "nulls": "last"
222
+ }
223
+ ],
224
+ "isUnique": false,
225
+ "concurrently": false,
226
+ "method": "btree",
227
+ "with": {}
228
+ }
229
+ },
230
+ "foreignKeys": {
231
+ "audit_log_organization_id_organization_id_fk": {
232
+ "name": "audit_log_organization_id_organization_id_fk",
233
+ "tableFrom": "audit_log",
234
+ "tableTo": "organization",
235
+ "columnsFrom": ["organization_id"],
236
+ "columnsTo": ["id"],
237
+ "onDelete": "cascade",
238
+ "onUpdate": "no action"
239
+ },
240
+ "audit_log_user_id_user_id_fk": {
241
+ "name": "audit_log_user_id_user_id_fk",
242
+ "tableFrom": "audit_log",
243
+ "tableTo": "user",
244
+ "columnsFrom": ["user_id"],
245
+ "columnsTo": ["id"],
246
+ "onDelete": "no action",
247
+ "onUpdate": "no action"
248
+ }
249
+ },
250
+ "compositePrimaryKeys": {},
251
+ "uniqueConstraints": {},
252
+ "policies": {},
253
+ "checkConstraints": {},
254
+ "isRLSEnabled": false
255
+ },
256
+ "public.aws_account": {
257
+ "name": "aws_account",
258
+ "schema": "",
259
+ "columns": {
260
+ "id": {
261
+ "name": "id",
262
+ "type": "text",
263
+ "primaryKey": true,
264
+ "notNull": true
265
+ },
266
+ "organization_id": {
267
+ "name": "organization_id",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": true
271
+ },
272
+ "name": {
273
+ "name": "name",
274
+ "type": "text",
275
+ "primaryKey": false,
276
+ "notNull": true
277
+ },
278
+ "account_id": {
279
+ "name": "account_id",
280
+ "type": "text",
281
+ "primaryKey": false,
282
+ "notNull": true
283
+ },
284
+ "region": {
285
+ "name": "region",
286
+ "type": "text",
287
+ "primaryKey": false,
288
+ "notNull": true
289
+ },
290
+ "role_arn": {
291
+ "name": "role_arn",
292
+ "type": "text",
293
+ "primaryKey": false,
294
+ "notNull": true
295
+ },
296
+ "external_id": {
297
+ "name": "external_id",
298
+ "type": "text",
299
+ "primaryKey": false,
300
+ "notNull": true
301
+ },
302
+ "is_verified": {
303
+ "name": "is_verified",
304
+ "type": "boolean",
305
+ "primaryKey": false,
306
+ "notNull": true,
307
+ "default": false
308
+ },
309
+ "last_verified_at": {
310
+ "name": "last_verified_at",
311
+ "type": "timestamp",
312
+ "primaryKey": false,
313
+ "notNull": false
314
+ },
315
+ "created_by": {
316
+ "name": "created_by",
317
+ "type": "text",
318
+ "primaryKey": false,
319
+ "notNull": false
320
+ },
321
+ "created_at": {
322
+ "name": "created_at",
323
+ "type": "timestamp",
324
+ "primaryKey": false,
325
+ "notNull": true,
326
+ "default": "now()"
327
+ },
328
+ "updated_at": {
329
+ "name": "updated_at",
330
+ "type": "timestamp",
331
+ "primaryKey": false,
332
+ "notNull": true,
333
+ "default": "now()"
334
+ }
335
+ },
336
+ "indexes": {
337
+ "aws_account_org_idx": {
338
+ "name": "aws_account_org_idx",
339
+ "columns": [
340
+ {
341
+ "expression": "organization_id",
342
+ "isExpression": false,
343
+ "asc": true,
344
+ "nulls": "last"
345
+ }
346
+ ],
347
+ "isUnique": false,
348
+ "concurrently": false,
349
+ "method": "btree",
350
+ "with": {}
351
+ },
352
+ "aws_account_external_id_idx": {
353
+ "name": "aws_account_external_id_idx",
354
+ "columns": [
355
+ {
356
+ "expression": "external_id",
357
+ "isExpression": false,
358
+ "asc": true,
359
+ "nulls": "last"
360
+ }
361
+ ],
362
+ "isUnique": false,
363
+ "concurrently": false,
364
+ "method": "btree",
365
+ "with": {}
366
+ }
367
+ },
368
+ "foreignKeys": {
369
+ "aws_account_organization_id_organization_id_fk": {
370
+ "name": "aws_account_organization_id_organization_id_fk",
371
+ "tableFrom": "aws_account",
372
+ "tableTo": "organization",
373
+ "columnsFrom": ["organization_id"],
374
+ "columnsTo": ["id"],
375
+ "onDelete": "cascade",
376
+ "onUpdate": "no action"
377
+ },
378
+ "aws_account_created_by_user_id_fk": {
379
+ "name": "aws_account_created_by_user_id_fk",
380
+ "tableFrom": "aws_account",
381
+ "tableTo": "user",
382
+ "columnsFrom": ["created_by"],
383
+ "columnsTo": ["id"],
384
+ "onDelete": "no action",
385
+ "onUpdate": "no action"
386
+ }
387
+ },
388
+ "compositePrimaryKeys": {},
389
+ "uniqueConstraints": {
390
+ "aws_account_external_id_unique": {
391
+ "name": "aws_account_external_id_unique",
392
+ "nullsNotDistinct": false,
393
+ "columns": ["external_id"]
394
+ }
395
+ },
396
+ "policies": {},
397
+ "checkConstraints": {},
398
+ "isRLSEnabled": false
399
+ },
400
+ "public.email_template": {
401
+ "name": "email_template",
402
+ "schema": "",
403
+ "columns": {
404
+ "id": {
405
+ "name": "id",
406
+ "type": "text",
407
+ "primaryKey": true,
408
+ "notNull": true
409
+ },
410
+ "organization_id": {
411
+ "name": "organization_id",
412
+ "type": "text",
413
+ "primaryKey": false,
414
+ "notNull": true
415
+ },
416
+ "name": {
417
+ "name": "name",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true
421
+ },
422
+ "subject": {
423
+ "name": "subject",
424
+ "type": "text",
425
+ "primaryKey": false,
426
+ "notNull": false
427
+ },
428
+ "html": {
429
+ "name": "html",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": false
433
+ },
434
+ "variables": {
435
+ "name": "variables",
436
+ "type": "json",
437
+ "primaryKey": false,
438
+ "notNull": false,
439
+ "default": "'[]'::json"
440
+ },
441
+ "created_by": {
442
+ "name": "created_by",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": false
446
+ },
447
+ "created_at": {
448
+ "name": "created_at",
449
+ "type": "timestamp",
450
+ "primaryKey": false,
451
+ "notNull": true,
452
+ "default": "now()"
453
+ },
454
+ "updated_at": {
455
+ "name": "updated_at",
456
+ "type": "timestamp",
457
+ "primaryKey": false,
458
+ "notNull": true,
459
+ "default": "now()"
460
+ }
461
+ },
462
+ "indexes": {
463
+ "email_template_org_idx": {
464
+ "name": "email_template_org_idx",
465
+ "columns": [
466
+ {
467
+ "expression": "organization_id",
468
+ "isExpression": false,
469
+ "asc": true,
470
+ "nulls": "last"
471
+ }
472
+ ],
473
+ "isUnique": false,
474
+ "concurrently": false,
475
+ "method": "btree",
476
+ "with": {}
477
+ }
478
+ },
479
+ "foreignKeys": {
480
+ "email_template_organization_id_organization_id_fk": {
481
+ "name": "email_template_organization_id_organization_id_fk",
482
+ "tableFrom": "email_template",
483
+ "tableTo": "organization",
484
+ "columnsFrom": ["organization_id"],
485
+ "columnsTo": ["id"],
486
+ "onDelete": "cascade",
487
+ "onUpdate": "no action"
488
+ },
489
+ "email_template_created_by_user_id_fk": {
490
+ "name": "email_template_created_by_user_id_fk",
491
+ "tableFrom": "email_template",
492
+ "tableTo": "user",
493
+ "columnsFrom": ["created_by"],
494
+ "columnsTo": ["id"],
495
+ "onDelete": "no action",
496
+ "onUpdate": "no action"
497
+ }
498
+ },
499
+ "compositePrimaryKeys": {},
500
+ "uniqueConstraints": {},
501
+ "policies": {},
502
+ "checkConstraints": {},
503
+ "isRLSEnabled": false
504
+ },
505
+ "public.organization_extension": {
506
+ "name": "organization_extension",
507
+ "schema": "",
508
+ "columns": {
509
+ "organization_id": {
510
+ "name": "organization_id",
511
+ "type": "text",
512
+ "primaryKey": true,
513
+ "notNull": true
514
+ },
515
+ "plan": {
516
+ "name": "plan",
517
+ "type": "text",
518
+ "primaryKey": false,
519
+ "notNull": true,
520
+ "default": "'free'"
521
+ },
522
+ "stripe_customer_id": {
523
+ "name": "stripe_customer_id",
524
+ "type": "text",
525
+ "primaryKey": false,
526
+ "notNull": false
527
+ },
528
+ "stripe_subscription_id": {
529
+ "name": "stripe_subscription_id",
530
+ "type": "text",
531
+ "primaryKey": false,
532
+ "notNull": false
533
+ },
534
+ "aws_account_count": {
535
+ "name": "aws_account_count",
536
+ "type": "integer",
537
+ "primaryKey": false,
538
+ "notNull": true,
539
+ "default": 0
540
+ },
541
+ "member_count": {
542
+ "name": "member_count",
543
+ "type": "integer",
544
+ "primaryKey": false,
545
+ "notNull": true,
546
+ "default": 1
547
+ },
548
+ "updated_at": {
549
+ "name": "updated_at",
550
+ "type": "timestamp",
551
+ "primaryKey": false,
552
+ "notNull": true,
553
+ "default": "now()"
554
+ }
555
+ },
556
+ "indexes": {},
557
+ "foreignKeys": {
558
+ "organization_extension_organization_id_organization_id_fk": {
559
+ "name": "organization_extension_organization_id_organization_id_fk",
560
+ "tableFrom": "organization_extension",
561
+ "tableTo": "organization",
562
+ "columnsFrom": ["organization_id"],
563
+ "columnsTo": ["id"],
564
+ "onDelete": "cascade",
565
+ "onUpdate": "no action"
566
+ }
567
+ },
568
+ "compositePrimaryKeys": {},
569
+ "uniqueConstraints": {},
570
+ "policies": {},
571
+ "checkConstraints": {},
572
+ "isRLSEnabled": false
573
+ },
574
+ "public.account": {
575
+ "name": "account",
576
+ "schema": "",
577
+ "columns": {
578
+ "id": {
579
+ "name": "id",
580
+ "type": "text",
581
+ "primaryKey": true,
582
+ "notNull": true
583
+ },
584
+ "account_id": {
585
+ "name": "account_id",
586
+ "type": "text",
587
+ "primaryKey": false,
588
+ "notNull": true
589
+ },
590
+ "provider_id": {
591
+ "name": "provider_id",
592
+ "type": "text",
593
+ "primaryKey": false,
594
+ "notNull": true
595
+ },
596
+ "user_id": {
597
+ "name": "user_id",
598
+ "type": "text",
599
+ "primaryKey": false,
600
+ "notNull": true
601
+ },
602
+ "access_token": {
603
+ "name": "access_token",
604
+ "type": "text",
605
+ "primaryKey": false,
606
+ "notNull": false
607
+ },
608
+ "refresh_token": {
609
+ "name": "refresh_token",
610
+ "type": "text",
611
+ "primaryKey": false,
612
+ "notNull": false
613
+ },
614
+ "id_token": {
615
+ "name": "id_token",
616
+ "type": "text",
617
+ "primaryKey": false,
618
+ "notNull": false
619
+ },
620
+ "access_token_expires_at": {
621
+ "name": "access_token_expires_at",
622
+ "type": "timestamp",
623
+ "primaryKey": false,
624
+ "notNull": false
625
+ },
626
+ "refresh_token_expires_at": {
627
+ "name": "refresh_token_expires_at",
628
+ "type": "timestamp",
629
+ "primaryKey": false,
630
+ "notNull": false
631
+ },
632
+ "scope": {
633
+ "name": "scope",
634
+ "type": "text",
635
+ "primaryKey": false,
636
+ "notNull": false
637
+ },
638
+ "password": {
639
+ "name": "password",
640
+ "type": "text",
641
+ "primaryKey": false,
642
+ "notNull": false
643
+ },
644
+ "created_at": {
645
+ "name": "created_at",
646
+ "type": "timestamp",
647
+ "primaryKey": false,
648
+ "notNull": true
649
+ },
650
+ "updated_at": {
651
+ "name": "updated_at",
652
+ "type": "timestamp",
653
+ "primaryKey": false,
654
+ "notNull": true
655
+ }
656
+ },
657
+ "indexes": {},
658
+ "foreignKeys": {
659
+ "account_user_id_user_id_fk": {
660
+ "name": "account_user_id_user_id_fk",
661
+ "tableFrom": "account",
662
+ "tableTo": "user",
663
+ "columnsFrom": ["user_id"],
664
+ "columnsTo": ["id"],
665
+ "onDelete": "cascade",
666
+ "onUpdate": "no action"
667
+ }
668
+ },
669
+ "compositePrimaryKeys": {},
670
+ "uniqueConstraints": {},
671
+ "policies": {},
672
+ "checkConstraints": {},
673
+ "isRLSEnabled": false
674
+ },
675
+ "public.invitation": {
676
+ "name": "invitation",
677
+ "schema": "",
678
+ "columns": {
679
+ "id": {
680
+ "name": "id",
681
+ "type": "text",
682
+ "primaryKey": true,
683
+ "notNull": true
684
+ },
685
+ "organization_id": {
686
+ "name": "organization_id",
687
+ "type": "text",
688
+ "primaryKey": false,
689
+ "notNull": true
690
+ },
691
+ "email": {
692
+ "name": "email",
693
+ "type": "text",
694
+ "primaryKey": false,
695
+ "notNull": true
696
+ },
697
+ "role": {
698
+ "name": "role",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": false
702
+ },
703
+ "status": {
704
+ "name": "status",
705
+ "type": "text",
706
+ "primaryKey": false,
707
+ "notNull": true
708
+ },
709
+ "expires_at": {
710
+ "name": "expires_at",
711
+ "type": "timestamp",
712
+ "primaryKey": false,
713
+ "notNull": true
714
+ },
715
+ "inviter_id": {
716
+ "name": "inviter_id",
717
+ "type": "text",
718
+ "primaryKey": false,
719
+ "notNull": true
720
+ }
721
+ },
722
+ "indexes": {},
723
+ "foreignKeys": {
724
+ "invitation_organization_id_organization_id_fk": {
725
+ "name": "invitation_organization_id_organization_id_fk",
726
+ "tableFrom": "invitation",
727
+ "tableTo": "organization",
728
+ "columnsFrom": ["organization_id"],
729
+ "columnsTo": ["id"],
730
+ "onDelete": "cascade",
731
+ "onUpdate": "no action"
732
+ },
733
+ "invitation_inviter_id_user_id_fk": {
734
+ "name": "invitation_inviter_id_user_id_fk",
735
+ "tableFrom": "invitation",
736
+ "tableTo": "user",
737
+ "columnsFrom": ["inviter_id"],
738
+ "columnsTo": ["id"],
739
+ "onDelete": "cascade",
740
+ "onUpdate": "no action"
741
+ }
742
+ },
743
+ "compositePrimaryKeys": {},
744
+ "uniqueConstraints": {},
745
+ "policies": {},
746
+ "checkConstraints": {},
747
+ "isRLSEnabled": false
748
+ },
749
+ "public.member": {
750
+ "name": "member",
751
+ "schema": "",
752
+ "columns": {
753
+ "id": {
754
+ "name": "id",
755
+ "type": "text",
756
+ "primaryKey": true,
757
+ "notNull": true
758
+ },
759
+ "organization_id": {
760
+ "name": "organization_id",
761
+ "type": "text",
762
+ "primaryKey": false,
763
+ "notNull": true
764
+ },
765
+ "user_id": {
766
+ "name": "user_id",
767
+ "type": "text",
768
+ "primaryKey": false,
769
+ "notNull": true
770
+ },
771
+ "role": {
772
+ "name": "role",
773
+ "type": "text",
774
+ "primaryKey": false,
775
+ "notNull": true
776
+ },
777
+ "created_at": {
778
+ "name": "created_at",
779
+ "type": "timestamp",
780
+ "primaryKey": false,
781
+ "notNull": true
782
+ }
783
+ },
784
+ "indexes": {},
785
+ "foreignKeys": {
786
+ "member_organization_id_organization_id_fk": {
787
+ "name": "member_organization_id_organization_id_fk",
788
+ "tableFrom": "member",
789
+ "tableTo": "organization",
790
+ "columnsFrom": ["organization_id"],
791
+ "columnsTo": ["id"],
792
+ "onDelete": "cascade",
793
+ "onUpdate": "no action"
794
+ },
795
+ "member_user_id_user_id_fk": {
796
+ "name": "member_user_id_user_id_fk",
797
+ "tableFrom": "member",
798
+ "tableTo": "user",
799
+ "columnsFrom": ["user_id"],
800
+ "columnsTo": ["id"],
801
+ "onDelete": "cascade",
802
+ "onUpdate": "no action"
803
+ }
804
+ },
805
+ "compositePrimaryKeys": {},
806
+ "uniqueConstraints": {},
807
+ "policies": {},
808
+ "checkConstraints": {},
809
+ "isRLSEnabled": false
810
+ },
811
+ "public.organization": {
812
+ "name": "organization",
813
+ "schema": "",
814
+ "columns": {
815
+ "id": {
816
+ "name": "id",
817
+ "type": "text",
818
+ "primaryKey": true,
819
+ "notNull": true
820
+ },
821
+ "name": {
822
+ "name": "name",
823
+ "type": "text",
824
+ "primaryKey": false,
825
+ "notNull": true
826
+ },
827
+ "slug": {
828
+ "name": "slug",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false
832
+ },
833
+ "logo": {
834
+ "name": "logo",
835
+ "type": "text",
836
+ "primaryKey": false,
837
+ "notNull": false
838
+ },
839
+ "metadata": {
840
+ "name": "metadata",
841
+ "type": "text",
842
+ "primaryKey": false,
843
+ "notNull": false
844
+ },
845
+ "created_at": {
846
+ "name": "created_at",
847
+ "type": "timestamp",
848
+ "primaryKey": false,
849
+ "notNull": true
850
+ }
851
+ },
852
+ "indexes": {},
853
+ "foreignKeys": {},
854
+ "compositePrimaryKeys": {},
855
+ "uniqueConstraints": {
856
+ "organization_slug_unique": {
857
+ "name": "organization_slug_unique",
858
+ "nullsNotDistinct": false,
859
+ "columns": ["slug"]
860
+ }
861
+ },
862
+ "policies": {},
863
+ "checkConstraints": {},
864
+ "isRLSEnabled": false
865
+ },
866
+ "public.passkey": {
867
+ "name": "passkey",
868
+ "schema": "",
869
+ "columns": {
870
+ "id": {
871
+ "name": "id",
872
+ "type": "text",
873
+ "primaryKey": true,
874
+ "notNull": true
875
+ },
876
+ "name": {
877
+ "name": "name",
878
+ "type": "text",
879
+ "primaryKey": false,
880
+ "notNull": false
881
+ },
882
+ "public_key": {
883
+ "name": "public_key",
884
+ "type": "text",
885
+ "primaryKey": false,
886
+ "notNull": true
887
+ },
888
+ "user_id": {
889
+ "name": "user_id",
890
+ "type": "text",
891
+ "primaryKey": false,
892
+ "notNull": true
893
+ },
894
+ "credential_id": {
895
+ "name": "credential_id",
896
+ "type": "text",
897
+ "primaryKey": false,
898
+ "notNull": true
899
+ },
900
+ "counter": {
901
+ "name": "counter",
902
+ "type": "integer",
903
+ "primaryKey": false,
904
+ "notNull": true
905
+ },
906
+ "device_type": {
907
+ "name": "device_type",
908
+ "type": "text",
909
+ "primaryKey": false,
910
+ "notNull": true
911
+ },
912
+ "backed_up": {
913
+ "name": "backed_up",
914
+ "type": "boolean",
915
+ "primaryKey": false,
916
+ "notNull": true
917
+ },
918
+ "transports": {
919
+ "name": "transports",
920
+ "type": "text",
921
+ "primaryKey": false,
922
+ "notNull": false
923
+ },
924
+ "created_at": {
925
+ "name": "created_at",
926
+ "type": "timestamp",
927
+ "primaryKey": false,
928
+ "notNull": true
929
+ },
930
+ "aaguid": {
931
+ "name": "aaguid",
932
+ "type": "text",
933
+ "primaryKey": false,
934
+ "notNull": false
935
+ }
936
+ },
937
+ "indexes": {},
938
+ "foreignKeys": {
939
+ "passkey_user_id_user_id_fk": {
940
+ "name": "passkey_user_id_user_id_fk",
941
+ "tableFrom": "passkey",
942
+ "tableTo": "user",
943
+ "columnsFrom": ["user_id"],
944
+ "columnsTo": ["id"],
945
+ "onDelete": "cascade",
946
+ "onUpdate": "no action"
947
+ }
948
+ },
949
+ "compositePrimaryKeys": {},
950
+ "uniqueConstraints": {},
951
+ "policies": {},
952
+ "checkConstraints": {},
953
+ "isRLSEnabled": false
954
+ },
955
+ "public.session": {
956
+ "name": "session",
957
+ "schema": "",
958
+ "columns": {
959
+ "id": {
960
+ "name": "id",
961
+ "type": "text",
962
+ "primaryKey": true,
963
+ "notNull": true
964
+ },
965
+ "expires_at": {
966
+ "name": "expires_at",
967
+ "type": "timestamp",
968
+ "primaryKey": false,
969
+ "notNull": true
970
+ },
971
+ "token": {
972
+ "name": "token",
973
+ "type": "text",
974
+ "primaryKey": false,
975
+ "notNull": true
976
+ },
977
+ "created_at": {
978
+ "name": "created_at",
979
+ "type": "timestamp",
980
+ "primaryKey": false,
981
+ "notNull": true
982
+ },
983
+ "updated_at": {
984
+ "name": "updated_at",
985
+ "type": "timestamp",
986
+ "primaryKey": false,
987
+ "notNull": true
988
+ },
989
+ "ip_address": {
990
+ "name": "ip_address",
991
+ "type": "text",
992
+ "primaryKey": false,
993
+ "notNull": false
994
+ },
995
+ "user_agent": {
996
+ "name": "user_agent",
997
+ "type": "text",
998
+ "primaryKey": false,
999
+ "notNull": false
1000
+ },
1001
+ "user_id": {
1002
+ "name": "user_id",
1003
+ "type": "text",
1004
+ "primaryKey": false,
1005
+ "notNull": true
1006
+ },
1007
+ "active_organization_id": {
1008
+ "name": "active_organization_id",
1009
+ "type": "text",
1010
+ "primaryKey": false,
1011
+ "notNull": false
1012
+ }
1013
+ },
1014
+ "indexes": {},
1015
+ "foreignKeys": {
1016
+ "session_user_id_user_id_fk": {
1017
+ "name": "session_user_id_user_id_fk",
1018
+ "tableFrom": "session",
1019
+ "tableTo": "user",
1020
+ "columnsFrom": ["user_id"],
1021
+ "columnsTo": ["id"],
1022
+ "onDelete": "cascade",
1023
+ "onUpdate": "no action"
1024
+ }
1025
+ },
1026
+ "compositePrimaryKeys": {},
1027
+ "uniqueConstraints": {
1028
+ "session_token_unique": {
1029
+ "name": "session_token_unique",
1030
+ "nullsNotDistinct": false,
1031
+ "columns": ["token"]
1032
+ }
1033
+ },
1034
+ "policies": {},
1035
+ "checkConstraints": {},
1036
+ "isRLSEnabled": false
1037
+ },
1038
+ "public.statement": {
1039
+ "name": "statement",
1040
+ "schema": "",
1041
+ "columns": {
1042
+ "id": {
1043
+ "name": "id",
1044
+ "type": "text",
1045
+ "primaryKey": true,
1046
+ "notNull": true
1047
+ },
1048
+ "user_id": {
1049
+ "name": "user_id",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": false
1053
+ },
1054
+ "organization_id": {
1055
+ "name": "organization_id",
1056
+ "type": "text",
1057
+ "primaryKey": false,
1058
+ "notNull": false
1059
+ },
1060
+ "role_id": {
1061
+ "name": "role_id",
1062
+ "type": "text",
1063
+ "primaryKey": false,
1064
+ "notNull": false
1065
+ },
1066
+ "effect": {
1067
+ "name": "effect",
1068
+ "type": "text",
1069
+ "primaryKey": false,
1070
+ "notNull": true
1071
+ },
1072
+ "action": {
1073
+ "name": "action",
1074
+ "type": "text",
1075
+ "primaryKey": false,
1076
+ "notNull": true
1077
+ },
1078
+ "resource": {
1079
+ "name": "resource",
1080
+ "type": "text",
1081
+ "primaryKey": false,
1082
+ "notNull": true
1083
+ },
1084
+ "condition": {
1085
+ "name": "condition",
1086
+ "type": "text",
1087
+ "primaryKey": false,
1088
+ "notNull": false
1089
+ },
1090
+ "expires_at": {
1091
+ "name": "expires_at",
1092
+ "type": "timestamp",
1093
+ "primaryKey": false,
1094
+ "notNull": false
1095
+ },
1096
+ "created_at": {
1097
+ "name": "created_at",
1098
+ "type": "timestamp",
1099
+ "primaryKey": false,
1100
+ "notNull": true
1101
+ },
1102
+ "updated_at": {
1103
+ "name": "updated_at",
1104
+ "type": "timestamp",
1105
+ "primaryKey": false,
1106
+ "notNull": true
1107
+ }
1108
+ },
1109
+ "indexes": {},
1110
+ "foreignKeys": {
1111
+ "statement_user_id_user_id_fk": {
1112
+ "name": "statement_user_id_user_id_fk",
1113
+ "tableFrom": "statement",
1114
+ "tableTo": "user",
1115
+ "columnsFrom": ["user_id"],
1116
+ "columnsTo": ["id"],
1117
+ "onDelete": "cascade",
1118
+ "onUpdate": "no action"
1119
+ },
1120
+ "statement_organization_id_organization_id_fk": {
1121
+ "name": "statement_organization_id_organization_id_fk",
1122
+ "tableFrom": "statement",
1123
+ "tableTo": "organization",
1124
+ "columnsFrom": ["organization_id"],
1125
+ "columnsTo": ["id"],
1126
+ "onDelete": "cascade",
1127
+ "onUpdate": "no action"
1128
+ }
1129
+ },
1130
+ "compositePrimaryKeys": {},
1131
+ "uniqueConstraints": {},
1132
+ "policies": {},
1133
+ "checkConstraints": {},
1134
+ "isRLSEnabled": false
1135
+ },
1136
+ "public.two_factor": {
1137
+ "name": "two_factor",
1138
+ "schema": "",
1139
+ "columns": {
1140
+ "id": {
1141
+ "name": "id",
1142
+ "type": "text",
1143
+ "primaryKey": true,
1144
+ "notNull": true
1145
+ },
1146
+ "secret": {
1147
+ "name": "secret",
1148
+ "type": "text",
1149
+ "primaryKey": false,
1150
+ "notNull": true
1151
+ },
1152
+ "backup_codes": {
1153
+ "name": "backup_codes",
1154
+ "type": "text",
1155
+ "primaryKey": false,
1156
+ "notNull": true
1157
+ },
1158
+ "user_id": {
1159
+ "name": "user_id",
1160
+ "type": "text",
1161
+ "primaryKey": false,
1162
+ "notNull": true
1163
+ }
1164
+ },
1165
+ "indexes": {},
1166
+ "foreignKeys": {
1167
+ "two_factor_user_id_user_id_fk": {
1168
+ "name": "two_factor_user_id_user_id_fk",
1169
+ "tableFrom": "two_factor",
1170
+ "tableTo": "user",
1171
+ "columnsFrom": ["user_id"],
1172
+ "columnsTo": ["id"],
1173
+ "onDelete": "cascade",
1174
+ "onUpdate": "no action"
1175
+ }
1176
+ },
1177
+ "compositePrimaryKeys": {},
1178
+ "uniqueConstraints": {},
1179
+ "policies": {},
1180
+ "checkConstraints": {},
1181
+ "isRLSEnabled": false
1182
+ },
1183
+ "public.user": {
1184
+ "name": "user",
1185
+ "schema": "",
1186
+ "columns": {
1187
+ "id": {
1188
+ "name": "id",
1189
+ "type": "text",
1190
+ "primaryKey": true,
1191
+ "notNull": true
1192
+ },
1193
+ "name": {
1194
+ "name": "name",
1195
+ "type": "text",
1196
+ "primaryKey": false,
1197
+ "notNull": true
1198
+ },
1199
+ "email": {
1200
+ "name": "email",
1201
+ "type": "text",
1202
+ "primaryKey": false,
1203
+ "notNull": true
1204
+ },
1205
+ "email_verified": {
1206
+ "name": "email_verified",
1207
+ "type": "boolean",
1208
+ "primaryKey": false,
1209
+ "notNull": true
1210
+ },
1211
+ "image": {
1212
+ "name": "image",
1213
+ "type": "text",
1214
+ "primaryKey": false,
1215
+ "notNull": false
1216
+ },
1217
+ "created_at": {
1218
+ "name": "created_at",
1219
+ "type": "timestamp",
1220
+ "primaryKey": false,
1221
+ "notNull": true
1222
+ },
1223
+ "updated_at": {
1224
+ "name": "updated_at",
1225
+ "type": "timestamp",
1226
+ "primaryKey": false,
1227
+ "notNull": true
1228
+ },
1229
+ "two_factor_enabled": {
1230
+ "name": "two_factor_enabled",
1231
+ "type": "boolean",
1232
+ "primaryKey": false,
1233
+ "notNull": false
1234
+ }
1235
+ },
1236
+ "indexes": {},
1237
+ "foreignKeys": {},
1238
+ "compositePrimaryKeys": {},
1239
+ "uniqueConstraints": {
1240
+ "user_email_unique": {
1241
+ "name": "user_email_unique",
1242
+ "nullsNotDistinct": false,
1243
+ "columns": ["email"]
1244
+ }
1245
+ },
1246
+ "policies": {},
1247
+ "checkConstraints": {},
1248
+ "isRLSEnabled": false
1249
+ },
1250
+ "public.verification": {
1251
+ "name": "verification",
1252
+ "schema": "",
1253
+ "columns": {
1254
+ "id": {
1255
+ "name": "id",
1256
+ "type": "text",
1257
+ "primaryKey": true,
1258
+ "notNull": true
1259
+ },
1260
+ "identifier": {
1261
+ "name": "identifier",
1262
+ "type": "text",
1263
+ "primaryKey": false,
1264
+ "notNull": true
1265
+ },
1266
+ "value": {
1267
+ "name": "value",
1268
+ "type": "text",
1269
+ "primaryKey": false,
1270
+ "notNull": true
1271
+ },
1272
+ "expires_at": {
1273
+ "name": "expires_at",
1274
+ "type": "timestamp",
1275
+ "primaryKey": false,
1276
+ "notNull": true
1277
+ },
1278
+ "created_at": {
1279
+ "name": "created_at",
1280
+ "type": "timestamp",
1281
+ "primaryKey": false,
1282
+ "notNull": false
1283
+ },
1284
+ "updated_at": {
1285
+ "name": "updated_at",
1286
+ "type": "timestamp",
1287
+ "primaryKey": false,
1288
+ "notNull": false
1289
+ }
1290
+ },
1291
+ "indexes": {},
1292
+ "foreignKeys": {},
1293
+ "compositePrimaryKeys": {},
1294
+ "uniqueConstraints": {},
1295
+ "policies": {},
1296
+ "checkConstraints": {},
1297
+ "isRLSEnabled": false
1298
+ }
1299
+ },
1300
+ "enums": {},
1301
+ "schemas": {},
1302
+ "sequences": {},
1303
+ "roles": {},
1304
+ "policies": {},
1305
+ "views": {},
1306
+ "_meta": {
1307
+ "columns": {},
1308
+ "schemas": {},
1309
+ "tables": {}
1310
+ }
1311
+ }