@wraps.dev/cli 2.30.3 → 3.0.0

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 (153) hide show
  1. package/README.md +5 -8
  2. package/dist/cli.js +942 -2211
  3. package/dist/cli.js.map +1 -1
  4. package/dist/console/assets/{index-P0x5JCC4.js → index--39O8UcT.js} +3 -3
  5. package/dist/console/assets/index-D6au_OkL.css +1 -0
  6. package/dist/console/index.html +2 -2
  7. package/dist/lambda/agent-enforcer/.bundled +1 -1
  8. package/dist/lambda/event-processor/.bundled +1 -1
  9. package/dist/lambda/inbound-processor/.bundled +1 -1
  10. package/dist/lambda/sms-event-processor/.bundled +1 -1
  11. package/package.json +4 -5
  12. package/dist/api-lambda.zip +0 -0
  13. package/dist/console/assets/index-BP4FpEpn.css +0 -1
  14. package/dist/selfhost-migrations/0000_absent_rogue.sql +0 -203
  15. package/dist/selfhost-migrations/0001_polite_maverick.sql +0 -17
  16. package/dist/selfhost-migrations/0002_perpetual_scorpion.sql +0 -1
  17. package/dist/selfhost-migrations/0003_wealthy_absorbing_man.sql +0 -1
  18. package/dist/selfhost-migrations/0004_opposite_blur.sql +0 -1
  19. package/dist/selfhost-migrations/0005_clear_terror.sql +0 -4
  20. package/dist/selfhost-migrations/0006_soft_black_widow.sql +0 -20
  21. package/dist/selfhost-migrations/0007_dazzling_saracen.sql +0 -124
  22. package/dist/selfhost-migrations/0008_broad_hannibal_king.sql +0 -33
  23. package/dist/selfhost-migrations/0009_bouncy_mystique.sql +0 -73
  24. package/dist/selfhost-migrations/0010_cheerful_valeria_richards.sql +0 -18
  25. package/dist/selfhost-migrations/0011_absent_thunderbolts.sql +0 -2
  26. package/dist/selfhost-migrations/0012_demonic_donald_blake.sql +0 -1
  27. package/dist/selfhost-migrations/0013_nifty_preak.sql +0 -143
  28. package/dist/selfhost-migrations/0014_hesitant_beast.sql +0 -2
  29. package/dist/selfhost-migrations/0015_blue_giant_girl.sql +0 -1
  30. package/dist/selfhost-migrations/0016_cooing_overlord.sql +0 -1
  31. package/dist/selfhost-migrations/0017_tranquil_ender_wiggin.sql +0 -11
  32. package/dist/selfhost-migrations/0018_talented_groot.sql +0 -8
  33. package/dist/selfhost-migrations/0019_ambitious_devos.sql +0 -3
  34. package/dist/selfhost-migrations/0020_misty_master_mold.sql +0 -95
  35. package/dist/selfhost-migrations/0021_regular_harrier.sql +0 -14
  36. package/dist/selfhost-migrations/0022_sour_blizzard.sql +0 -10
  37. package/dist/selfhost-migrations/0023_flawless_psynapse.sql +0 -1
  38. package/dist/selfhost-migrations/0024_premium_blindfold.sql +0 -1
  39. package/dist/selfhost-migrations/0025_unusual_santa_claus.sql +0 -1
  40. package/dist/selfhost-migrations/0026_volatile_pandemic.sql +0 -2
  41. package/dist/selfhost-migrations/0027_workable_logan.sql +0 -4
  42. package/dist/selfhost-migrations/0028_familiar_prodigy.sql +0 -1
  43. package/dist/selfhost-migrations/0029_cute_maddog.sql +0 -13
  44. package/dist/selfhost-migrations/0030_adorable_scarecrow.sql +0 -1
  45. package/dist/selfhost-migrations/0031_material_slapstick.sql +0 -10
  46. package/dist/selfhost-migrations/0032_hot_dust.sql +0 -11
  47. package/dist/selfhost-migrations/0033_slow_deathbird.sql +0 -1
  48. package/dist/selfhost-migrations/0034_lush_rafael_vega.sql +0 -12
  49. package/dist/selfhost-migrations/0035_normal_red_hulk.sql +0 -8
  50. package/dist/selfhost-migrations/0036_marvelous_ezekiel.sql +0 -1
  51. package/dist/selfhost-migrations/0037_swift_talisman.sql +0 -8
  52. package/dist/selfhost-migrations/0038_first_mandroid.sql +0 -1
  53. package/dist/selfhost-migrations/0039_fixed_stryfe.sql +0 -1
  54. package/dist/selfhost-migrations/0040_add_channel_check_constraints.sql +0 -2
  55. package/dist/selfhost-migrations/0041_black_spencer_smythe.sql +0 -1
  56. package/dist/selfhost-migrations/0042_plain_marvel_zombies.sql +0 -2
  57. package/dist/selfhost-migrations/0043_curved_champions.sql +0 -1
  58. package/dist/selfhost-migrations/0044_clean_iceman.sql +0 -1
  59. package/dist/selfhost-migrations/0045_condemned_steel_serpent.sql +0 -1
  60. package/dist/selfhost-migrations/0046_steep_ultimo.sql +0 -2
  61. package/dist/selfhost-migrations/0047_empty_sleepwalker.sql +0 -2
  62. package/dist/selfhost-migrations/0048_cheerful_multiple_man.sql +0 -1
  63. package/dist/selfhost-migrations/0049_nostalgic_loki.sql +0 -3
  64. package/dist/selfhost-migrations/0050_add_engagement_metadata.sql +0 -4
  65. package/dist/selfhost-migrations/0051_odd_marrow.sql +0 -2
  66. package/dist/selfhost-migrations/0052_redundant_siren.sql +0 -5
  67. package/dist/selfhost-migrations/0053_soft_carnage.sql +0 -31
  68. package/dist/selfhost-migrations/0054_blushing_vin_gonzales.sql +0 -1
  69. package/dist/selfhost-migrations/0055_broadcast_resume_columns.sql +0 -12
  70. package/dist/selfhost-migrations/0056_broadcast_resume_dedup_cleanup.sql +0 -31
  71. package/dist/selfhost-migrations/0057_audit_log_actoremail_jsonb.sql +0 -5
  72. package/dist/selfhost-migrations/0058_email_log_sent_at_idx.sql +0 -1
  73. package/dist/selfhost-migrations/0059_message_send_claimed_at.sql +0 -1
  74. package/dist/selfhost-migrations/0060_harsh_nehzno.sql +0 -1
  75. package/dist/selfhost-migrations/0061_flashy_spirit.sql +0 -1
  76. package/dist/selfhost-migrations/0062_next_timeslip.sql +0 -2
  77. package/dist/selfhost-migrations/0063_greedy_legion.sql +0 -17
  78. package/dist/selfhost-migrations/0064_wise_brood.sql +0 -42
  79. package/dist/selfhost-migrations/0065_public_the_fallen.sql +0 -2
  80. package/dist/selfhost-migrations/0066_odd_yellow_claw.sql +0 -3
  81. package/dist/selfhost-migrations/0067_empty_ultimo.sql +0 -1
  82. package/dist/selfhost-migrations/0068_abandoned_mephisto.sql +0 -1
  83. package/dist/selfhost-migrations/0069_abnormal_zuras.sql +0 -1
  84. package/dist/selfhost-migrations/CLAUDE.md +0 -49
  85. package/dist/selfhost-migrations/meta/0000_snapshot.json +0 -1311
  86. package/dist/selfhost-migrations/meta/0001_snapshot.json +0 -1454
  87. package/dist/selfhost-migrations/meta/0002_snapshot.json +0 -1460
  88. package/dist/selfhost-migrations/meta/0003_snapshot.json +0 -1467
  89. package/dist/selfhost-migrations/meta/0004_snapshot.json +0 -1473
  90. package/dist/selfhost-migrations/meta/0005_snapshot.json +0 -1499
  91. package/dist/selfhost-migrations/meta/0006_snapshot.json +0 -1617
  92. package/dist/selfhost-migrations/meta/0007_snapshot.json +0 -2581
  93. package/dist/selfhost-migrations/meta/0008_snapshot.json +0 -2861
  94. package/dist/selfhost-migrations/meta/0009_snapshot.json +0 -3447
  95. package/dist/selfhost-migrations/meta/0010_snapshot.json +0 -3586
  96. package/dist/selfhost-migrations/meta/0011_snapshot.json +0 -3600
  97. package/dist/selfhost-migrations/meta/0012_snapshot.json +0 -3607
  98. package/dist/selfhost-migrations/meta/0013_snapshot.json +0 -4697
  99. package/dist/selfhost-migrations/meta/0014_snapshot.json +0 -4704
  100. package/dist/selfhost-migrations/meta/0015_snapshot.json +0 -4697
  101. package/dist/selfhost-migrations/meta/0016_snapshot.json +0 -4703
  102. package/dist/selfhost-migrations/meta/0017_snapshot.json +0 -4769
  103. package/dist/selfhost-migrations/meta/0018_snapshot.json +0 -4821
  104. package/dist/selfhost-migrations/meta/0019_snapshot.json +0 -4840
  105. package/dist/selfhost-migrations/meta/0020_snapshot.json +0 -5602
  106. package/dist/selfhost-migrations/meta/0021_snapshot.json +0 -5729
  107. package/dist/selfhost-migrations/meta/0022_snapshot.json +0 -5792
  108. package/dist/selfhost-migrations/meta/0023_snapshot.json +0 -5799
  109. package/dist/selfhost-migrations/meta/0024_snapshot.json +0 -5821
  110. package/dist/selfhost-migrations/meta/0025_snapshot.json +0 -5831
  111. package/dist/selfhost-migrations/meta/0026_snapshot.json +0 -5844
  112. package/dist/selfhost-migrations/meta/0027_snapshot.json +0 -5864
  113. package/dist/selfhost-migrations/meta/0028_snapshot.json +0 -5871
  114. package/dist/selfhost-migrations/meta/0029_snapshot.json +0 -5984
  115. package/dist/selfhost-migrations/meta/0030_snapshot.json +0 -5990
  116. package/dist/selfhost-migrations/meta/0031_snapshot.json +0 -5950
  117. package/dist/selfhost-migrations/meta/0032_snapshot.json +0 -6042
  118. package/dist/selfhost-migrations/meta/0033_snapshot.json +0 -6057
  119. package/dist/selfhost-migrations/meta/0034_snapshot.json +0 -6130
  120. package/dist/selfhost-migrations/meta/0035_snapshot.json +0 -6195
  121. package/dist/selfhost-migrations/meta/0036_snapshot.json +0 -6201
  122. package/dist/selfhost-migrations/meta/0037_snapshot.json +0 -6265
  123. package/dist/selfhost-migrations/meta/0038_snapshot.json +0 -6271
  124. package/dist/selfhost-migrations/meta/0039_snapshot.json +0 -6278
  125. package/dist/selfhost-migrations/meta/0041_snapshot.json +0 -6284
  126. package/dist/selfhost-migrations/meta/0042_snapshot.json +0 -6297
  127. package/dist/selfhost-migrations/meta/0043_snapshot.json +0 -6297
  128. package/dist/selfhost-migrations/meta/0044_snapshot.json +0 -6297
  129. package/dist/selfhost-migrations/meta/0045_snapshot.json +0 -6303
  130. package/dist/selfhost-migrations/meta/0046_snapshot.json +0 -6315
  131. package/dist/selfhost-migrations/meta/0047_snapshot.json +0 -6330
  132. package/dist/selfhost-migrations/meta/0048_snapshot.json +0 -6336
  133. package/dist/selfhost-migrations/meta/0049_snapshot.json +0 -6366
  134. package/dist/selfhost-migrations/meta/0050_snapshot.json +0 -6390
  135. package/dist/selfhost-migrations/meta/0051_snapshot.json +0 -6403
  136. package/dist/selfhost-migrations/meta/0052_snapshot.json +0 -6470
  137. package/dist/selfhost-migrations/meta/0053_snapshot.json +0 -6470
  138. package/dist/selfhost-migrations/meta/0054_snapshot.json +0 -6646
  139. package/dist/selfhost-migrations/meta/0055_snapshot.json +0 -6713
  140. package/dist/selfhost-migrations/meta/0056_snapshot.json +0 -6713
  141. package/dist/selfhost-migrations/meta/0057_snapshot.json +0 -6731
  142. package/dist/selfhost-migrations/meta/0059_snapshot.json +0 -6764
  143. package/dist/selfhost-migrations/meta/0060_snapshot.json +0 -7125
  144. package/dist/selfhost-migrations/meta/0061_snapshot.json +0 -7131
  145. package/dist/selfhost-migrations/meta/0062_snapshot.json +0 -7143
  146. package/dist/selfhost-migrations/meta/0063_snapshot.json +0 -7282
  147. package/dist/selfhost-migrations/meta/0064_snapshot.json +0 -7626
  148. package/dist/selfhost-migrations/meta/0065_snapshot.json +0 -7662
  149. package/dist/selfhost-migrations/meta/0066_snapshot.json +0 -7682
  150. package/dist/selfhost-migrations/meta/0067_snapshot.json +0 -7688
  151. package/dist/selfhost-migrations/meta/0068_snapshot.json +0 -7694
  152. package/dist/selfhost-migrations/meta/0069_snapshot.json +0 -7700
  153. package/dist/selfhost-migrations/meta/_journal.json +0 -496
@@ -1,1473 +0,0 @@
1
- {
2
- "id": "deb7c81d-8029-4739-a563-0ce5d38758b4",
3
- "prevId": "bc89a817-805e-40bc-9bc1-7d2c15ce4625",
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
- "archiving_enabled": {
316
- "name": "archiving_enabled",
317
- "type": "boolean",
318
- "primaryKey": false,
319
- "notNull": true,
320
- "default": false
321
- },
322
- "archive_arn": {
323
- "name": "archive_arn",
324
- "type": "text",
325
- "primaryKey": false,
326
- "notNull": false
327
- },
328
- "created_by": {
329
- "name": "created_by",
330
- "type": "text",
331
- "primaryKey": false,
332
- "notNull": false
333
- },
334
- "created_at": {
335
- "name": "created_at",
336
- "type": "timestamp",
337
- "primaryKey": false,
338
- "notNull": true,
339
- "default": "now()"
340
- },
341
- "updated_at": {
342
- "name": "updated_at",
343
- "type": "timestamp",
344
- "primaryKey": false,
345
- "notNull": true,
346
- "default": "now()"
347
- }
348
- },
349
- "indexes": {
350
- "aws_account_org_idx": {
351
- "name": "aws_account_org_idx",
352
- "columns": [
353
- {
354
- "expression": "organization_id",
355
- "isExpression": false,
356
- "asc": true,
357
- "nulls": "last"
358
- }
359
- ],
360
- "isUnique": false,
361
- "concurrently": false,
362
- "method": "btree",
363
- "with": {}
364
- },
365
- "aws_account_external_id_idx": {
366
- "name": "aws_account_external_id_idx",
367
- "columns": [
368
- {
369
- "expression": "external_id",
370
- "isExpression": false,
371
- "asc": true,
372
- "nulls": "last"
373
- }
374
- ],
375
- "isUnique": false,
376
- "concurrently": false,
377
- "method": "btree",
378
- "with": {}
379
- }
380
- },
381
- "foreignKeys": {
382
- "aws_account_organization_id_organization_id_fk": {
383
- "name": "aws_account_organization_id_organization_id_fk",
384
- "tableFrom": "aws_account",
385
- "tableTo": "organization",
386
- "columnsFrom": ["organization_id"],
387
- "columnsTo": ["id"],
388
- "onDelete": "cascade",
389
- "onUpdate": "no action"
390
- },
391
- "aws_account_created_by_user_id_fk": {
392
- "name": "aws_account_created_by_user_id_fk",
393
- "tableFrom": "aws_account",
394
- "tableTo": "user",
395
- "columnsFrom": ["created_by"],
396
- "columnsTo": ["id"],
397
- "onDelete": "no action",
398
- "onUpdate": "no action"
399
- }
400
- },
401
- "compositePrimaryKeys": {},
402
- "uniqueConstraints": {
403
- "aws_account_external_id_unique": {
404
- "name": "aws_account_external_id_unique",
405
- "nullsNotDistinct": false,
406
- "columns": ["external_id"]
407
- }
408
- },
409
- "policies": {},
410
- "checkConstraints": {},
411
- "isRLSEnabled": false
412
- },
413
- "public.aws_account_permission": {
414
- "name": "aws_account_permission",
415
- "schema": "",
416
- "columns": {
417
- "id": {
418
- "name": "id",
419
- "type": "text",
420
- "primaryKey": true,
421
- "notNull": true
422
- },
423
- "user_id": {
424
- "name": "user_id",
425
- "type": "text",
426
- "primaryKey": false,
427
- "notNull": true
428
- },
429
- "aws_account_id": {
430
- "name": "aws_account_id",
431
- "type": "text",
432
- "primaryKey": false,
433
- "notNull": true
434
- },
435
- "permissions": {
436
- "name": "permissions",
437
- "type": "json",
438
- "primaryKey": false,
439
- "notNull": true
440
- },
441
- "granted_by": {
442
- "name": "granted_by",
443
- "type": "text",
444
- "primaryKey": false,
445
- "notNull": true
446
- },
447
- "expires_at": {
448
- "name": "expires_at",
449
- "type": "timestamp",
450
- "primaryKey": false,
451
- "notNull": false
452
- },
453
- "created_at": {
454
- "name": "created_at",
455
- "type": "timestamp",
456
- "primaryKey": false,
457
- "notNull": true,
458
- "default": "now()"
459
- },
460
- "updated_at": {
461
- "name": "updated_at",
462
- "type": "timestamp",
463
- "primaryKey": false,
464
- "notNull": true,
465
- "default": "now()"
466
- }
467
- },
468
- "indexes": {
469
- "aws_account_permission_user_idx": {
470
- "name": "aws_account_permission_user_idx",
471
- "columns": [
472
- {
473
- "expression": "user_id",
474
- "isExpression": false,
475
- "asc": true,
476
- "nulls": "last"
477
- }
478
- ],
479
- "isUnique": false,
480
- "concurrently": false,
481
- "method": "btree",
482
- "with": {}
483
- },
484
- "aws_account_permission_account_idx": {
485
- "name": "aws_account_permission_account_idx",
486
- "columns": [
487
- {
488
- "expression": "aws_account_id",
489
- "isExpression": false,
490
- "asc": true,
491
- "nulls": "last"
492
- }
493
- ],
494
- "isUnique": false,
495
- "concurrently": false,
496
- "method": "btree",
497
- "with": {}
498
- },
499
- "aws_account_permission_unique_idx": {
500
- "name": "aws_account_permission_unique_idx",
501
- "columns": [
502
- {
503
- "expression": "user_id",
504
- "isExpression": false,
505
- "asc": true,
506
- "nulls": "last"
507
- },
508
- {
509
- "expression": "aws_account_id",
510
- "isExpression": false,
511
- "asc": true,
512
- "nulls": "last"
513
- }
514
- ],
515
- "isUnique": false,
516
- "concurrently": false,
517
- "method": "btree",
518
- "with": {}
519
- }
520
- },
521
- "foreignKeys": {
522
- "aws_account_permission_user_id_user_id_fk": {
523
- "name": "aws_account_permission_user_id_user_id_fk",
524
- "tableFrom": "aws_account_permission",
525
- "tableTo": "user",
526
- "columnsFrom": ["user_id"],
527
- "columnsTo": ["id"],
528
- "onDelete": "cascade",
529
- "onUpdate": "no action"
530
- },
531
- "aws_account_permission_aws_account_id_aws_account_id_fk": {
532
- "name": "aws_account_permission_aws_account_id_aws_account_id_fk",
533
- "tableFrom": "aws_account_permission",
534
- "tableTo": "aws_account",
535
- "columnsFrom": ["aws_account_id"],
536
- "columnsTo": ["id"],
537
- "onDelete": "cascade",
538
- "onUpdate": "no action"
539
- },
540
- "aws_account_permission_granted_by_user_id_fk": {
541
- "name": "aws_account_permission_granted_by_user_id_fk",
542
- "tableFrom": "aws_account_permission",
543
- "tableTo": "user",
544
- "columnsFrom": ["granted_by"],
545
- "columnsTo": ["id"],
546
- "onDelete": "no action",
547
- "onUpdate": "no action"
548
- }
549
- },
550
- "compositePrimaryKeys": {},
551
- "uniqueConstraints": {},
552
- "policies": {},
553
- "checkConstraints": {},
554
- "isRLSEnabled": false
555
- },
556
- "public.email_template": {
557
- "name": "email_template",
558
- "schema": "",
559
- "columns": {
560
- "id": {
561
- "name": "id",
562
- "type": "text",
563
- "primaryKey": true,
564
- "notNull": true
565
- },
566
- "organization_id": {
567
- "name": "organization_id",
568
- "type": "text",
569
- "primaryKey": false,
570
- "notNull": true
571
- },
572
- "name": {
573
- "name": "name",
574
- "type": "text",
575
- "primaryKey": false,
576
- "notNull": true
577
- },
578
- "subject": {
579
- "name": "subject",
580
- "type": "text",
581
- "primaryKey": false,
582
- "notNull": false
583
- },
584
- "html": {
585
- "name": "html",
586
- "type": "text",
587
- "primaryKey": false,
588
- "notNull": false
589
- },
590
- "variables": {
591
- "name": "variables",
592
- "type": "json",
593
- "primaryKey": false,
594
- "notNull": false,
595
- "default": "'[]'::json"
596
- },
597
- "created_by": {
598
- "name": "created_by",
599
- "type": "text",
600
- "primaryKey": false,
601
- "notNull": false
602
- },
603
- "created_at": {
604
- "name": "created_at",
605
- "type": "timestamp",
606
- "primaryKey": false,
607
- "notNull": true,
608
- "default": "now()"
609
- },
610
- "updated_at": {
611
- "name": "updated_at",
612
- "type": "timestamp",
613
- "primaryKey": false,
614
- "notNull": true,
615
- "default": "now()"
616
- }
617
- },
618
- "indexes": {
619
- "email_template_org_idx": {
620
- "name": "email_template_org_idx",
621
- "columns": [
622
- {
623
- "expression": "organization_id",
624
- "isExpression": false,
625
- "asc": true,
626
- "nulls": "last"
627
- }
628
- ],
629
- "isUnique": false,
630
- "concurrently": false,
631
- "method": "btree",
632
- "with": {}
633
- }
634
- },
635
- "foreignKeys": {
636
- "email_template_organization_id_organization_id_fk": {
637
- "name": "email_template_organization_id_organization_id_fk",
638
- "tableFrom": "email_template",
639
- "tableTo": "organization",
640
- "columnsFrom": ["organization_id"],
641
- "columnsTo": ["id"],
642
- "onDelete": "cascade",
643
- "onUpdate": "no action"
644
- },
645
- "email_template_created_by_user_id_fk": {
646
- "name": "email_template_created_by_user_id_fk",
647
- "tableFrom": "email_template",
648
- "tableTo": "user",
649
- "columnsFrom": ["created_by"],
650
- "columnsTo": ["id"],
651
- "onDelete": "no action",
652
- "onUpdate": "no action"
653
- }
654
- },
655
- "compositePrimaryKeys": {},
656
- "uniqueConstraints": {},
657
- "policies": {},
658
- "checkConstraints": {},
659
- "isRLSEnabled": false
660
- },
661
- "public.organization_extension": {
662
- "name": "organization_extension",
663
- "schema": "",
664
- "columns": {
665
- "organization_id": {
666
- "name": "organization_id",
667
- "type": "text",
668
- "primaryKey": true,
669
- "notNull": true
670
- },
671
- "plan": {
672
- "name": "plan",
673
- "type": "text",
674
- "primaryKey": false,
675
- "notNull": true,
676
- "default": "'free'"
677
- },
678
- "stripe_customer_id": {
679
- "name": "stripe_customer_id",
680
- "type": "text",
681
- "primaryKey": false,
682
- "notNull": false
683
- },
684
- "stripe_subscription_id": {
685
- "name": "stripe_subscription_id",
686
- "type": "text",
687
- "primaryKey": false,
688
- "notNull": false
689
- },
690
- "aws_account_count": {
691
- "name": "aws_account_count",
692
- "type": "integer",
693
- "primaryKey": false,
694
- "notNull": true,
695
- "default": 0
696
- },
697
- "member_count": {
698
- "name": "member_count",
699
- "type": "integer",
700
- "primaryKey": false,
701
- "notNull": true,
702
- "default": 1
703
- },
704
- "updated_at": {
705
- "name": "updated_at",
706
- "type": "timestamp",
707
- "primaryKey": false,
708
- "notNull": true,
709
- "default": "now()"
710
- }
711
- },
712
- "indexes": {},
713
- "foreignKeys": {
714
- "organization_extension_organization_id_organization_id_fk": {
715
- "name": "organization_extension_organization_id_organization_id_fk",
716
- "tableFrom": "organization_extension",
717
- "tableTo": "organization",
718
- "columnsFrom": ["organization_id"],
719
- "columnsTo": ["id"],
720
- "onDelete": "cascade",
721
- "onUpdate": "no action"
722
- }
723
- },
724
- "compositePrimaryKeys": {},
725
- "uniqueConstraints": {},
726
- "policies": {},
727
- "checkConstraints": {},
728
- "isRLSEnabled": false
729
- },
730
- "public.account": {
731
- "name": "account",
732
- "schema": "",
733
- "columns": {
734
- "id": {
735
- "name": "id",
736
- "type": "text",
737
- "primaryKey": true,
738
- "notNull": true
739
- },
740
- "account_id": {
741
- "name": "account_id",
742
- "type": "text",
743
- "primaryKey": false,
744
- "notNull": true
745
- },
746
- "provider_id": {
747
- "name": "provider_id",
748
- "type": "text",
749
- "primaryKey": false,
750
- "notNull": true
751
- },
752
- "user_id": {
753
- "name": "user_id",
754
- "type": "text",
755
- "primaryKey": false,
756
- "notNull": true
757
- },
758
- "access_token": {
759
- "name": "access_token",
760
- "type": "text",
761
- "primaryKey": false,
762
- "notNull": false
763
- },
764
- "refresh_token": {
765
- "name": "refresh_token",
766
- "type": "text",
767
- "primaryKey": false,
768
- "notNull": false
769
- },
770
- "id_token": {
771
- "name": "id_token",
772
- "type": "text",
773
- "primaryKey": false,
774
- "notNull": false
775
- },
776
- "access_token_expires_at": {
777
- "name": "access_token_expires_at",
778
- "type": "timestamp",
779
- "primaryKey": false,
780
- "notNull": false
781
- },
782
- "refresh_token_expires_at": {
783
- "name": "refresh_token_expires_at",
784
- "type": "timestamp",
785
- "primaryKey": false,
786
- "notNull": false
787
- },
788
- "scope": {
789
- "name": "scope",
790
- "type": "text",
791
- "primaryKey": false,
792
- "notNull": false
793
- },
794
- "password": {
795
- "name": "password",
796
- "type": "text",
797
- "primaryKey": false,
798
- "notNull": false
799
- },
800
- "created_at": {
801
- "name": "created_at",
802
- "type": "timestamp",
803
- "primaryKey": false,
804
- "notNull": true
805
- },
806
- "updated_at": {
807
- "name": "updated_at",
808
- "type": "timestamp",
809
- "primaryKey": false,
810
- "notNull": true
811
- }
812
- },
813
- "indexes": {},
814
- "foreignKeys": {
815
- "account_user_id_user_id_fk": {
816
- "name": "account_user_id_user_id_fk",
817
- "tableFrom": "account",
818
- "tableTo": "user",
819
- "columnsFrom": ["user_id"],
820
- "columnsTo": ["id"],
821
- "onDelete": "cascade",
822
- "onUpdate": "no action"
823
- }
824
- },
825
- "compositePrimaryKeys": {},
826
- "uniqueConstraints": {},
827
- "policies": {},
828
- "checkConstraints": {},
829
- "isRLSEnabled": false
830
- },
831
- "public.invitation": {
832
- "name": "invitation",
833
- "schema": "",
834
- "columns": {
835
- "id": {
836
- "name": "id",
837
- "type": "text",
838
- "primaryKey": true,
839
- "notNull": true
840
- },
841
- "organization_id": {
842
- "name": "organization_id",
843
- "type": "text",
844
- "primaryKey": false,
845
- "notNull": true
846
- },
847
- "email": {
848
- "name": "email",
849
- "type": "text",
850
- "primaryKey": false,
851
- "notNull": true
852
- },
853
- "role": {
854
- "name": "role",
855
- "type": "text",
856
- "primaryKey": false,
857
- "notNull": false
858
- },
859
- "status": {
860
- "name": "status",
861
- "type": "text",
862
- "primaryKey": false,
863
- "notNull": true
864
- },
865
- "expires_at": {
866
- "name": "expires_at",
867
- "type": "timestamp",
868
- "primaryKey": false,
869
- "notNull": true
870
- },
871
- "inviter_id": {
872
- "name": "inviter_id",
873
- "type": "text",
874
- "primaryKey": false,
875
- "notNull": true
876
- }
877
- },
878
- "indexes": {},
879
- "foreignKeys": {
880
- "invitation_organization_id_organization_id_fk": {
881
- "name": "invitation_organization_id_organization_id_fk",
882
- "tableFrom": "invitation",
883
- "tableTo": "organization",
884
- "columnsFrom": ["organization_id"],
885
- "columnsTo": ["id"],
886
- "onDelete": "cascade",
887
- "onUpdate": "no action"
888
- },
889
- "invitation_inviter_id_user_id_fk": {
890
- "name": "invitation_inviter_id_user_id_fk",
891
- "tableFrom": "invitation",
892
- "tableTo": "user",
893
- "columnsFrom": ["inviter_id"],
894
- "columnsTo": ["id"],
895
- "onDelete": "cascade",
896
- "onUpdate": "no action"
897
- }
898
- },
899
- "compositePrimaryKeys": {},
900
- "uniqueConstraints": {},
901
- "policies": {},
902
- "checkConstraints": {},
903
- "isRLSEnabled": false
904
- },
905
- "public.member": {
906
- "name": "member",
907
- "schema": "",
908
- "columns": {
909
- "id": {
910
- "name": "id",
911
- "type": "text",
912
- "primaryKey": true,
913
- "notNull": true
914
- },
915
- "organization_id": {
916
- "name": "organization_id",
917
- "type": "text",
918
- "primaryKey": false,
919
- "notNull": true
920
- },
921
- "user_id": {
922
- "name": "user_id",
923
- "type": "text",
924
- "primaryKey": false,
925
- "notNull": true
926
- },
927
- "role": {
928
- "name": "role",
929
- "type": "text",
930
- "primaryKey": false,
931
- "notNull": true
932
- },
933
- "created_at": {
934
- "name": "created_at",
935
- "type": "timestamp",
936
- "primaryKey": false,
937
- "notNull": true
938
- }
939
- },
940
- "indexes": {},
941
- "foreignKeys": {
942
- "member_organization_id_organization_id_fk": {
943
- "name": "member_organization_id_organization_id_fk",
944
- "tableFrom": "member",
945
- "tableTo": "organization",
946
- "columnsFrom": ["organization_id"],
947
- "columnsTo": ["id"],
948
- "onDelete": "cascade",
949
- "onUpdate": "no action"
950
- },
951
- "member_user_id_user_id_fk": {
952
- "name": "member_user_id_user_id_fk",
953
- "tableFrom": "member",
954
- "tableTo": "user",
955
- "columnsFrom": ["user_id"],
956
- "columnsTo": ["id"],
957
- "onDelete": "cascade",
958
- "onUpdate": "no action"
959
- }
960
- },
961
- "compositePrimaryKeys": {},
962
- "uniqueConstraints": {},
963
- "policies": {},
964
- "checkConstraints": {},
965
- "isRLSEnabled": false
966
- },
967
- "public.organization": {
968
- "name": "organization",
969
- "schema": "",
970
- "columns": {
971
- "id": {
972
- "name": "id",
973
- "type": "text",
974
- "primaryKey": true,
975
- "notNull": true
976
- },
977
- "name": {
978
- "name": "name",
979
- "type": "text",
980
- "primaryKey": false,
981
- "notNull": true
982
- },
983
- "slug": {
984
- "name": "slug",
985
- "type": "text",
986
- "primaryKey": false,
987
- "notNull": false
988
- },
989
- "logo": {
990
- "name": "logo",
991
- "type": "text",
992
- "primaryKey": false,
993
- "notNull": false
994
- },
995
- "metadata": {
996
- "name": "metadata",
997
- "type": "text",
998
- "primaryKey": false,
999
- "notNull": false
1000
- },
1001
- "created_at": {
1002
- "name": "created_at",
1003
- "type": "timestamp",
1004
- "primaryKey": false,
1005
- "notNull": true
1006
- }
1007
- },
1008
- "indexes": {},
1009
- "foreignKeys": {},
1010
- "compositePrimaryKeys": {},
1011
- "uniqueConstraints": {
1012
- "organization_slug_unique": {
1013
- "name": "organization_slug_unique",
1014
- "nullsNotDistinct": false,
1015
- "columns": ["slug"]
1016
- }
1017
- },
1018
- "policies": {},
1019
- "checkConstraints": {},
1020
- "isRLSEnabled": false
1021
- },
1022
- "public.passkey": {
1023
- "name": "passkey",
1024
- "schema": "",
1025
- "columns": {
1026
- "id": {
1027
- "name": "id",
1028
- "type": "text",
1029
- "primaryKey": true,
1030
- "notNull": true
1031
- },
1032
- "name": {
1033
- "name": "name",
1034
- "type": "text",
1035
- "primaryKey": false,
1036
- "notNull": false
1037
- },
1038
- "public_key": {
1039
- "name": "public_key",
1040
- "type": "text",
1041
- "primaryKey": false,
1042
- "notNull": true
1043
- },
1044
- "user_id": {
1045
- "name": "user_id",
1046
- "type": "text",
1047
- "primaryKey": false,
1048
- "notNull": true
1049
- },
1050
- "credential_id": {
1051
- "name": "credential_id",
1052
- "type": "text",
1053
- "primaryKey": false,
1054
- "notNull": true
1055
- },
1056
- "counter": {
1057
- "name": "counter",
1058
- "type": "integer",
1059
- "primaryKey": false,
1060
- "notNull": true
1061
- },
1062
- "device_type": {
1063
- "name": "device_type",
1064
- "type": "text",
1065
- "primaryKey": false,
1066
- "notNull": true
1067
- },
1068
- "backed_up": {
1069
- "name": "backed_up",
1070
- "type": "boolean",
1071
- "primaryKey": false,
1072
- "notNull": true
1073
- },
1074
- "transports": {
1075
- "name": "transports",
1076
- "type": "text",
1077
- "primaryKey": false,
1078
- "notNull": false
1079
- },
1080
- "created_at": {
1081
- "name": "created_at",
1082
- "type": "timestamp",
1083
- "primaryKey": false,
1084
- "notNull": true
1085
- },
1086
- "aaguid": {
1087
- "name": "aaguid",
1088
- "type": "text",
1089
- "primaryKey": false,
1090
- "notNull": false
1091
- }
1092
- },
1093
- "indexes": {},
1094
- "foreignKeys": {
1095
- "passkey_user_id_user_id_fk": {
1096
- "name": "passkey_user_id_user_id_fk",
1097
- "tableFrom": "passkey",
1098
- "tableTo": "user",
1099
- "columnsFrom": ["user_id"],
1100
- "columnsTo": ["id"],
1101
- "onDelete": "cascade",
1102
- "onUpdate": "no action"
1103
- }
1104
- },
1105
- "compositePrimaryKeys": {},
1106
- "uniqueConstraints": {},
1107
- "policies": {},
1108
- "checkConstraints": {},
1109
- "isRLSEnabled": false
1110
- },
1111
- "public.session": {
1112
- "name": "session",
1113
- "schema": "",
1114
- "columns": {
1115
- "id": {
1116
- "name": "id",
1117
- "type": "text",
1118
- "primaryKey": true,
1119
- "notNull": true
1120
- },
1121
- "expires_at": {
1122
- "name": "expires_at",
1123
- "type": "timestamp",
1124
- "primaryKey": false,
1125
- "notNull": true
1126
- },
1127
- "token": {
1128
- "name": "token",
1129
- "type": "text",
1130
- "primaryKey": false,
1131
- "notNull": true
1132
- },
1133
- "created_at": {
1134
- "name": "created_at",
1135
- "type": "timestamp",
1136
- "primaryKey": false,
1137
- "notNull": true
1138
- },
1139
- "updated_at": {
1140
- "name": "updated_at",
1141
- "type": "timestamp",
1142
- "primaryKey": false,
1143
- "notNull": true
1144
- },
1145
- "ip_address": {
1146
- "name": "ip_address",
1147
- "type": "text",
1148
- "primaryKey": false,
1149
- "notNull": false
1150
- },
1151
- "user_agent": {
1152
- "name": "user_agent",
1153
- "type": "text",
1154
- "primaryKey": false,
1155
- "notNull": false
1156
- },
1157
- "user_id": {
1158
- "name": "user_id",
1159
- "type": "text",
1160
- "primaryKey": false,
1161
- "notNull": true
1162
- },
1163
- "active_organization_id": {
1164
- "name": "active_organization_id",
1165
- "type": "text",
1166
- "primaryKey": false,
1167
- "notNull": false
1168
- }
1169
- },
1170
- "indexes": {},
1171
- "foreignKeys": {
1172
- "session_user_id_user_id_fk": {
1173
- "name": "session_user_id_user_id_fk",
1174
- "tableFrom": "session",
1175
- "tableTo": "user",
1176
- "columnsFrom": ["user_id"],
1177
- "columnsTo": ["id"],
1178
- "onDelete": "cascade",
1179
- "onUpdate": "no action"
1180
- }
1181
- },
1182
- "compositePrimaryKeys": {},
1183
- "uniqueConstraints": {
1184
- "session_token_unique": {
1185
- "name": "session_token_unique",
1186
- "nullsNotDistinct": false,
1187
- "columns": ["token"]
1188
- }
1189
- },
1190
- "policies": {},
1191
- "checkConstraints": {},
1192
- "isRLSEnabled": false
1193
- },
1194
- "public.statement": {
1195
- "name": "statement",
1196
- "schema": "",
1197
- "columns": {
1198
- "id": {
1199
- "name": "id",
1200
- "type": "text",
1201
- "primaryKey": true,
1202
- "notNull": true
1203
- },
1204
- "user_id": {
1205
- "name": "user_id",
1206
- "type": "text",
1207
- "primaryKey": false,
1208
- "notNull": false
1209
- },
1210
- "organization_id": {
1211
- "name": "organization_id",
1212
- "type": "text",
1213
- "primaryKey": false,
1214
- "notNull": false
1215
- },
1216
- "role_id": {
1217
- "name": "role_id",
1218
- "type": "text",
1219
- "primaryKey": false,
1220
- "notNull": false
1221
- },
1222
- "effect": {
1223
- "name": "effect",
1224
- "type": "text",
1225
- "primaryKey": false,
1226
- "notNull": true
1227
- },
1228
- "action": {
1229
- "name": "action",
1230
- "type": "text",
1231
- "primaryKey": false,
1232
- "notNull": true
1233
- },
1234
- "resource": {
1235
- "name": "resource",
1236
- "type": "text",
1237
- "primaryKey": false,
1238
- "notNull": true
1239
- },
1240
- "condition": {
1241
- "name": "condition",
1242
- "type": "text",
1243
- "primaryKey": false,
1244
- "notNull": false
1245
- },
1246
- "expires_at": {
1247
- "name": "expires_at",
1248
- "type": "timestamp",
1249
- "primaryKey": false,
1250
- "notNull": false
1251
- },
1252
- "created_at": {
1253
- "name": "created_at",
1254
- "type": "timestamp",
1255
- "primaryKey": false,
1256
- "notNull": true
1257
- },
1258
- "updated_at": {
1259
- "name": "updated_at",
1260
- "type": "timestamp",
1261
- "primaryKey": false,
1262
- "notNull": true
1263
- }
1264
- },
1265
- "indexes": {},
1266
- "foreignKeys": {
1267
- "statement_user_id_user_id_fk": {
1268
- "name": "statement_user_id_user_id_fk",
1269
- "tableFrom": "statement",
1270
- "tableTo": "user",
1271
- "columnsFrom": ["user_id"],
1272
- "columnsTo": ["id"],
1273
- "onDelete": "cascade",
1274
- "onUpdate": "no action"
1275
- },
1276
- "statement_organization_id_organization_id_fk": {
1277
- "name": "statement_organization_id_organization_id_fk",
1278
- "tableFrom": "statement",
1279
- "tableTo": "organization",
1280
- "columnsFrom": ["organization_id"],
1281
- "columnsTo": ["id"],
1282
- "onDelete": "cascade",
1283
- "onUpdate": "no action"
1284
- }
1285
- },
1286
- "compositePrimaryKeys": {},
1287
- "uniqueConstraints": {},
1288
- "policies": {},
1289
- "checkConstraints": {},
1290
- "isRLSEnabled": false
1291
- },
1292
- "public.two_factor": {
1293
- "name": "two_factor",
1294
- "schema": "",
1295
- "columns": {
1296
- "id": {
1297
- "name": "id",
1298
- "type": "text",
1299
- "primaryKey": true,
1300
- "notNull": true
1301
- },
1302
- "secret": {
1303
- "name": "secret",
1304
- "type": "text",
1305
- "primaryKey": false,
1306
- "notNull": true
1307
- },
1308
- "backup_codes": {
1309
- "name": "backup_codes",
1310
- "type": "text",
1311
- "primaryKey": false,
1312
- "notNull": true
1313
- },
1314
- "user_id": {
1315
- "name": "user_id",
1316
- "type": "text",
1317
- "primaryKey": false,
1318
- "notNull": true
1319
- }
1320
- },
1321
- "indexes": {},
1322
- "foreignKeys": {
1323
- "two_factor_user_id_user_id_fk": {
1324
- "name": "two_factor_user_id_user_id_fk",
1325
- "tableFrom": "two_factor",
1326
- "tableTo": "user",
1327
- "columnsFrom": ["user_id"],
1328
- "columnsTo": ["id"],
1329
- "onDelete": "cascade",
1330
- "onUpdate": "no action"
1331
- }
1332
- },
1333
- "compositePrimaryKeys": {},
1334
- "uniqueConstraints": {},
1335
- "policies": {},
1336
- "checkConstraints": {},
1337
- "isRLSEnabled": false
1338
- },
1339
- "public.user": {
1340
- "name": "user",
1341
- "schema": "",
1342
- "columns": {
1343
- "id": {
1344
- "name": "id",
1345
- "type": "text",
1346
- "primaryKey": true,
1347
- "notNull": true
1348
- },
1349
- "name": {
1350
- "name": "name",
1351
- "type": "text",
1352
- "primaryKey": false,
1353
- "notNull": true
1354
- },
1355
- "email": {
1356
- "name": "email",
1357
- "type": "text",
1358
- "primaryKey": false,
1359
- "notNull": true
1360
- },
1361
- "email_verified": {
1362
- "name": "email_verified",
1363
- "type": "boolean",
1364
- "primaryKey": false,
1365
- "notNull": true
1366
- },
1367
- "image": {
1368
- "name": "image",
1369
- "type": "text",
1370
- "primaryKey": false,
1371
- "notNull": false
1372
- },
1373
- "created_at": {
1374
- "name": "created_at",
1375
- "type": "timestamp",
1376
- "primaryKey": false,
1377
- "notNull": true
1378
- },
1379
- "updated_at": {
1380
- "name": "updated_at",
1381
- "type": "timestamp",
1382
- "primaryKey": false,
1383
- "notNull": true
1384
- },
1385
- "two_factor_enabled": {
1386
- "name": "two_factor_enabled",
1387
- "type": "boolean",
1388
- "primaryKey": false,
1389
- "notNull": false
1390
- },
1391
- "last_login_method": {
1392
- "name": "last_login_method",
1393
- "type": "text",
1394
- "primaryKey": false,
1395
- "notNull": false
1396
- }
1397
- },
1398
- "indexes": {},
1399
- "foreignKeys": {},
1400
- "compositePrimaryKeys": {},
1401
- "uniqueConstraints": {
1402
- "user_email_unique": {
1403
- "name": "user_email_unique",
1404
- "nullsNotDistinct": false,
1405
- "columns": ["email"]
1406
- }
1407
- },
1408
- "policies": {},
1409
- "checkConstraints": {},
1410
- "isRLSEnabled": false
1411
- },
1412
- "public.verification": {
1413
- "name": "verification",
1414
- "schema": "",
1415
- "columns": {
1416
- "id": {
1417
- "name": "id",
1418
- "type": "text",
1419
- "primaryKey": true,
1420
- "notNull": true
1421
- },
1422
- "identifier": {
1423
- "name": "identifier",
1424
- "type": "text",
1425
- "primaryKey": false,
1426
- "notNull": true
1427
- },
1428
- "value": {
1429
- "name": "value",
1430
- "type": "text",
1431
- "primaryKey": false,
1432
- "notNull": true
1433
- },
1434
- "expires_at": {
1435
- "name": "expires_at",
1436
- "type": "timestamp",
1437
- "primaryKey": false,
1438
- "notNull": true
1439
- },
1440
- "created_at": {
1441
- "name": "created_at",
1442
- "type": "timestamp",
1443
- "primaryKey": false,
1444
- "notNull": false
1445
- },
1446
- "updated_at": {
1447
- "name": "updated_at",
1448
- "type": "timestamp",
1449
- "primaryKey": false,
1450
- "notNull": false
1451
- }
1452
- },
1453
- "indexes": {},
1454
- "foreignKeys": {},
1455
- "compositePrimaryKeys": {},
1456
- "uniqueConstraints": {},
1457
- "policies": {},
1458
- "checkConstraints": {},
1459
- "isRLSEnabled": false
1460
- }
1461
- },
1462
- "enums": {},
1463
- "schemas": {},
1464
- "sequences": {},
1465
- "roles": {},
1466
- "policies": {},
1467
- "views": {},
1468
- "_meta": {
1469
- "columns": {},
1470
- "schemas": {},
1471
- "tables": {}
1472
- }
1473
- }