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