@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,1460 +0,0 @@
1
- {
2
- "id": "9bf8f66c-b73d-4d4c-873f-53896cab9d59",
3
- "prevId": "48735623-a3c3-4888-8782-f09d00256346",
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.aws_account_permission": {
401
- "name": "aws_account_permission",
402
- "schema": "",
403
- "columns": {
404
- "id": {
405
- "name": "id",
406
- "type": "text",
407
- "primaryKey": true,
408
- "notNull": true
409
- },
410
- "user_id": {
411
- "name": "user_id",
412
- "type": "text",
413
- "primaryKey": false,
414
- "notNull": true
415
- },
416
- "aws_account_id": {
417
- "name": "aws_account_id",
418
- "type": "text",
419
- "primaryKey": false,
420
- "notNull": true
421
- },
422
- "permissions": {
423
- "name": "permissions",
424
- "type": "json",
425
- "primaryKey": false,
426
- "notNull": true
427
- },
428
- "granted_by": {
429
- "name": "granted_by",
430
- "type": "text",
431
- "primaryKey": false,
432
- "notNull": true
433
- },
434
- "expires_at": {
435
- "name": "expires_at",
436
- "type": "timestamp",
437
- "primaryKey": false,
438
- "notNull": false
439
- },
440
- "created_at": {
441
- "name": "created_at",
442
- "type": "timestamp",
443
- "primaryKey": false,
444
- "notNull": true,
445
- "default": "now()"
446
- },
447
- "updated_at": {
448
- "name": "updated_at",
449
- "type": "timestamp",
450
- "primaryKey": false,
451
- "notNull": true,
452
- "default": "now()"
453
- }
454
- },
455
- "indexes": {
456
- "aws_account_permission_user_idx": {
457
- "name": "aws_account_permission_user_idx",
458
- "columns": [
459
- {
460
- "expression": "user_id",
461
- "isExpression": false,
462
- "asc": true,
463
- "nulls": "last"
464
- }
465
- ],
466
- "isUnique": false,
467
- "concurrently": false,
468
- "method": "btree",
469
- "with": {}
470
- },
471
- "aws_account_permission_account_idx": {
472
- "name": "aws_account_permission_account_idx",
473
- "columns": [
474
- {
475
- "expression": "aws_account_id",
476
- "isExpression": false,
477
- "asc": true,
478
- "nulls": "last"
479
- }
480
- ],
481
- "isUnique": false,
482
- "concurrently": false,
483
- "method": "btree",
484
- "with": {}
485
- },
486
- "aws_account_permission_unique_idx": {
487
- "name": "aws_account_permission_unique_idx",
488
- "columns": [
489
- {
490
- "expression": "user_id",
491
- "isExpression": false,
492
- "asc": true,
493
- "nulls": "last"
494
- },
495
- {
496
- "expression": "aws_account_id",
497
- "isExpression": false,
498
- "asc": true,
499
- "nulls": "last"
500
- }
501
- ],
502
- "isUnique": false,
503
- "concurrently": false,
504
- "method": "btree",
505
- "with": {}
506
- }
507
- },
508
- "foreignKeys": {
509
- "aws_account_permission_user_id_user_id_fk": {
510
- "name": "aws_account_permission_user_id_user_id_fk",
511
- "tableFrom": "aws_account_permission",
512
- "tableTo": "user",
513
- "columnsFrom": ["user_id"],
514
- "columnsTo": ["id"],
515
- "onDelete": "cascade",
516
- "onUpdate": "no action"
517
- },
518
- "aws_account_permission_aws_account_id_aws_account_id_fk": {
519
- "name": "aws_account_permission_aws_account_id_aws_account_id_fk",
520
- "tableFrom": "aws_account_permission",
521
- "tableTo": "aws_account",
522
- "columnsFrom": ["aws_account_id"],
523
- "columnsTo": ["id"],
524
- "onDelete": "cascade",
525
- "onUpdate": "no action"
526
- },
527
- "aws_account_permission_granted_by_user_id_fk": {
528
- "name": "aws_account_permission_granted_by_user_id_fk",
529
- "tableFrom": "aws_account_permission",
530
- "tableTo": "user",
531
- "columnsFrom": ["granted_by"],
532
- "columnsTo": ["id"],
533
- "onDelete": "no action",
534
- "onUpdate": "no action"
535
- }
536
- },
537
- "compositePrimaryKeys": {},
538
- "uniqueConstraints": {},
539
- "policies": {},
540
- "checkConstraints": {},
541
- "isRLSEnabled": false
542
- },
543
- "public.email_template": {
544
- "name": "email_template",
545
- "schema": "",
546
- "columns": {
547
- "id": {
548
- "name": "id",
549
- "type": "text",
550
- "primaryKey": true,
551
- "notNull": true
552
- },
553
- "organization_id": {
554
- "name": "organization_id",
555
- "type": "text",
556
- "primaryKey": false,
557
- "notNull": true
558
- },
559
- "name": {
560
- "name": "name",
561
- "type": "text",
562
- "primaryKey": false,
563
- "notNull": true
564
- },
565
- "subject": {
566
- "name": "subject",
567
- "type": "text",
568
- "primaryKey": false,
569
- "notNull": false
570
- },
571
- "html": {
572
- "name": "html",
573
- "type": "text",
574
- "primaryKey": false,
575
- "notNull": false
576
- },
577
- "variables": {
578
- "name": "variables",
579
- "type": "json",
580
- "primaryKey": false,
581
- "notNull": false,
582
- "default": "'[]'::json"
583
- },
584
- "created_by": {
585
- "name": "created_by",
586
- "type": "text",
587
- "primaryKey": false,
588
- "notNull": false
589
- },
590
- "created_at": {
591
- "name": "created_at",
592
- "type": "timestamp",
593
- "primaryKey": false,
594
- "notNull": true,
595
- "default": "now()"
596
- },
597
- "updated_at": {
598
- "name": "updated_at",
599
- "type": "timestamp",
600
- "primaryKey": false,
601
- "notNull": true,
602
- "default": "now()"
603
- }
604
- },
605
- "indexes": {
606
- "email_template_org_idx": {
607
- "name": "email_template_org_idx",
608
- "columns": [
609
- {
610
- "expression": "organization_id",
611
- "isExpression": false,
612
- "asc": true,
613
- "nulls": "last"
614
- }
615
- ],
616
- "isUnique": false,
617
- "concurrently": false,
618
- "method": "btree",
619
- "with": {}
620
- }
621
- },
622
- "foreignKeys": {
623
- "email_template_organization_id_organization_id_fk": {
624
- "name": "email_template_organization_id_organization_id_fk",
625
- "tableFrom": "email_template",
626
- "tableTo": "organization",
627
- "columnsFrom": ["organization_id"],
628
- "columnsTo": ["id"],
629
- "onDelete": "cascade",
630
- "onUpdate": "no action"
631
- },
632
- "email_template_created_by_user_id_fk": {
633
- "name": "email_template_created_by_user_id_fk",
634
- "tableFrom": "email_template",
635
- "tableTo": "user",
636
- "columnsFrom": ["created_by"],
637
- "columnsTo": ["id"],
638
- "onDelete": "no action",
639
- "onUpdate": "no action"
640
- }
641
- },
642
- "compositePrimaryKeys": {},
643
- "uniqueConstraints": {},
644
- "policies": {},
645
- "checkConstraints": {},
646
- "isRLSEnabled": false
647
- },
648
- "public.organization_extension": {
649
- "name": "organization_extension",
650
- "schema": "",
651
- "columns": {
652
- "organization_id": {
653
- "name": "organization_id",
654
- "type": "text",
655
- "primaryKey": true,
656
- "notNull": true
657
- },
658
- "plan": {
659
- "name": "plan",
660
- "type": "text",
661
- "primaryKey": false,
662
- "notNull": true,
663
- "default": "'free'"
664
- },
665
- "stripe_customer_id": {
666
- "name": "stripe_customer_id",
667
- "type": "text",
668
- "primaryKey": false,
669
- "notNull": false
670
- },
671
- "stripe_subscription_id": {
672
- "name": "stripe_subscription_id",
673
- "type": "text",
674
- "primaryKey": false,
675
- "notNull": false
676
- },
677
- "aws_account_count": {
678
- "name": "aws_account_count",
679
- "type": "integer",
680
- "primaryKey": false,
681
- "notNull": true,
682
- "default": 0
683
- },
684
- "member_count": {
685
- "name": "member_count",
686
- "type": "integer",
687
- "primaryKey": false,
688
- "notNull": true,
689
- "default": 1
690
- },
691
- "updated_at": {
692
- "name": "updated_at",
693
- "type": "timestamp",
694
- "primaryKey": false,
695
- "notNull": true,
696
- "default": "now()"
697
- }
698
- },
699
- "indexes": {},
700
- "foreignKeys": {
701
- "organization_extension_organization_id_organization_id_fk": {
702
- "name": "organization_extension_organization_id_organization_id_fk",
703
- "tableFrom": "organization_extension",
704
- "tableTo": "organization",
705
- "columnsFrom": ["organization_id"],
706
- "columnsTo": ["id"],
707
- "onDelete": "cascade",
708
- "onUpdate": "no action"
709
- }
710
- },
711
- "compositePrimaryKeys": {},
712
- "uniqueConstraints": {},
713
- "policies": {},
714
- "checkConstraints": {},
715
- "isRLSEnabled": false
716
- },
717
- "public.account": {
718
- "name": "account",
719
- "schema": "",
720
- "columns": {
721
- "id": {
722
- "name": "id",
723
- "type": "text",
724
- "primaryKey": true,
725
- "notNull": true
726
- },
727
- "account_id": {
728
- "name": "account_id",
729
- "type": "text",
730
- "primaryKey": false,
731
- "notNull": true
732
- },
733
- "provider_id": {
734
- "name": "provider_id",
735
- "type": "text",
736
- "primaryKey": false,
737
- "notNull": true
738
- },
739
- "user_id": {
740
- "name": "user_id",
741
- "type": "text",
742
- "primaryKey": false,
743
- "notNull": true
744
- },
745
- "access_token": {
746
- "name": "access_token",
747
- "type": "text",
748
- "primaryKey": false,
749
- "notNull": false
750
- },
751
- "refresh_token": {
752
- "name": "refresh_token",
753
- "type": "text",
754
- "primaryKey": false,
755
- "notNull": false
756
- },
757
- "id_token": {
758
- "name": "id_token",
759
- "type": "text",
760
- "primaryKey": false,
761
- "notNull": false
762
- },
763
- "access_token_expires_at": {
764
- "name": "access_token_expires_at",
765
- "type": "timestamp",
766
- "primaryKey": false,
767
- "notNull": false
768
- },
769
- "refresh_token_expires_at": {
770
- "name": "refresh_token_expires_at",
771
- "type": "timestamp",
772
- "primaryKey": false,
773
- "notNull": false
774
- },
775
- "scope": {
776
- "name": "scope",
777
- "type": "text",
778
- "primaryKey": false,
779
- "notNull": false
780
- },
781
- "password": {
782
- "name": "password",
783
- "type": "text",
784
- "primaryKey": false,
785
- "notNull": false
786
- },
787
- "created_at": {
788
- "name": "created_at",
789
- "type": "timestamp",
790
- "primaryKey": false,
791
- "notNull": true
792
- },
793
- "updated_at": {
794
- "name": "updated_at",
795
- "type": "timestamp",
796
- "primaryKey": false,
797
- "notNull": true
798
- }
799
- },
800
- "indexes": {},
801
- "foreignKeys": {
802
- "account_user_id_user_id_fk": {
803
- "name": "account_user_id_user_id_fk",
804
- "tableFrom": "account",
805
- "tableTo": "user",
806
- "columnsFrom": ["user_id"],
807
- "columnsTo": ["id"],
808
- "onDelete": "cascade",
809
- "onUpdate": "no action"
810
- }
811
- },
812
- "compositePrimaryKeys": {},
813
- "uniqueConstraints": {},
814
- "policies": {},
815
- "checkConstraints": {},
816
- "isRLSEnabled": false
817
- },
818
- "public.invitation": {
819
- "name": "invitation",
820
- "schema": "",
821
- "columns": {
822
- "id": {
823
- "name": "id",
824
- "type": "text",
825
- "primaryKey": true,
826
- "notNull": true
827
- },
828
- "organization_id": {
829
- "name": "organization_id",
830
- "type": "text",
831
- "primaryKey": false,
832
- "notNull": true
833
- },
834
- "email": {
835
- "name": "email",
836
- "type": "text",
837
- "primaryKey": false,
838
- "notNull": true
839
- },
840
- "role": {
841
- "name": "role",
842
- "type": "text",
843
- "primaryKey": false,
844
- "notNull": false
845
- },
846
- "status": {
847
- "name": "status",
848
- "type": "text",
849
- "primaryKey": false,
850
- "notNull": true
851
- },
852
- "expires_at": {
853
- "name": "expires_at",
854
- "type": "timestamp",
855
- "primaryKey": false,
856
- "notNull": true
857
- },
858
- "inviter_id": {
859
- "name": "inviter_id",
860
- "type": "text",
861
- "primaryKey": false,
862
- "notNull": true
863
- }
864
- },
865
- "indexes": {},
866
- "foreignKeys": {
867
- "invitation_organization_id_organization_id_fk": {
868
- "name": "invitation_organization_id_organization_id_fk",
869
- "tableFrom": "invitation",
870
- "tableTo": "organization",
871
- "columnsFrom": ["organization_id"],
872
- "columnsTo": ["id"],
873
- "onDelete": "cascade",
874
- "onUpdate": "no action"
875
- },
876
- "invitation_inviter_id_user_id_fk": {
877
- "name": "invitation_inviter_id_user_id_fk",
878
- "tableFrom": "invitation",
879
- "tableTo": "user",
880
- "columnsFrom": ["inviter_id"],
881
- "columnsTo": ["id"],
882
- "onDelete": "cascade",
883
- "onUpdate": "no action"
884
- }
885
- },
886
- "compositePrimaryKeys": {},
887
- "uniqueConstraints": {},
888
- "policies": {},
889
- "checkConstraints": {},
890
- "isRLSEnabled": false
891
- },
892
- "public.member": {
893
- "name": "member",
894
- "schema": "",
895
- "columns": {
896
- "id": {
897
- "name": "id",
898
- "type": "text",
899
- "primaryKey": true,
900
- "notNull": true
901
- },
902
- "organization_id": {
903
- "name": "organization_id",
904
- "type": "text",
905
- "primaryKey": false,
906
- "notNull": true
907
- },
908
- "user_id": {
909
- "name": "user_id",
910
- "type": "text",
911
- "primaryKey": false,
912
- "notNull": true
913
- },
914
- "role": {
915
- "name": "role",
916
- "type": "text",
917
- "primaryKey": false,
918
- "notNull": true
919
- },
920
- "created_at": {
921
- "name": "created_at",
922
- "type": "timestamp",
923
- "primaryKey": false,
924
- "notNull": true
925
- }
926
- },
927
- "indexes": {},
928
- "foreignKeys": {
929
- "member_organization_id_organization_id_fk": {
930
- "name": "member_organization_id_organization_id_fk",
931
- "tableFrom": "member",
932
- "tableTo": "organization",
933
- "columnsFrom": ["organization_id"],
934
- "columnsTo": ["id"],
935
- "onDelete": "cascade",
936
- "onUpdate": "no action"
937
- },
938
- "member_user_id_user_id_fk": {
939
- "name": "member_user_id_user_id_fk",
940
- "tableFrom": "member",
941
- "tableTo": "user",
942
- "columnsFrom": ["user_id"],
943
- "columnsTo": ["id"],
944
- "onDelete": "cascade",
945
- "onUpdate": "no action"
946
- }
947
- },
948
- "compositePrimaryKeys": {},
949
- "uniqueConstraints": {},
950
- "policies": {},
951
- "checkConstraints": {},
952
- "isRLSEnabled": false
953
- },
954
- "public.organization": {
955
- "name": "organization",
956
- "schema": "",
957
- "columns": {
958
- "id": {
959
- "name": "id",
960
- "type": "text",
961
- "primaryKey": true,
962
- "notNull": true
963
- },
964
- "name": {
965
- "name": "name",
966
- "type": "text",
967
- "primaryKey": false,
968
- "notNull": true
969
- },
970
- "slug": {
971
- "name": "slug",
972
- "type": "text",
973
- "primaryKey": false,
974
- "notNull": false
975
- },
976
- "logo": {
977
- "name": "logo",
978
- "type": "text",
979
- "primaryKey": false,
980
- "notNull": false
981
- },
982
- "metadata": {
983
- "name": "metadata",
984
- "type": "text",
985
- "primaryKey": false,
986
- "notNull": false
987
- },
988
- "created_at": {
989
- "name": "created_at",
990
- "type": "timestamp",
991
- "primaryKey": false,
992
- "notNull": true
993
- }
994
- },
995
- "indexes": {},
996
- "foreignKeys": {},
997
- "compositePrimaryKeys": {},
998
- "uniqueConstraints": {
999
- "organization_slug_unique": {
1000
- "name": "organization_slug_unique",
1001
- "nullsNotDistinct": false,
1002
- "columns": ["slug"]
1003
- }
1004
- },
1005
- "policies": {},
1006
- "checkConstraints": {},
1007
- "isRLSEnabled": false
1008
- },
1009
- "public.passkey": {
1010
- "name": "passkey",
1011
- "schema": "",
1012
- "columns": {
1013
- "id": {
1014
- "name": "id",
1015
- "type": "text",
1016
- "primaryKey": true,
1017
- "notNull": true
1018
- },
1019
- "name": {
1020
- "name": "name",
1021
- "type": "text",
1022
- "primaryKey": false,
1023
- "notNull": false
1024
- },
1025
- "public_key": {
1026
- "name": "public_key",
1027
- "type": "text",
1028
- "primaryKey": false,
1029
- "notNull": true
1030
- },
1031
- "user_id": {
1032
- "name": "user_id",
1033
- "type": "text",
1034
- "primaryKey": false,
1035
- "notNull": true
1036
- },
1037
- "credential_id": {
1038
- "name": "credential_id",
1039
- "type": "text",
1040
- "primaryKey": false,
1041
- "notNull": true
1042
- },
1043
- "counter": {
1044
- "name": "counter",
1045
- "type": "integer",
1046
- "primaryKey": false,
1047
- "notNull": true
1048
- },
1049
- "device_type": {
1050
- "name": "device_type",
1051
- "type": "text",
1052
- "primaryKey": false,
1053
- "notNull": true
1054
- },
1055
- "backed_up": {
1056
- "name": "backed_up",
1057
- "type": "boolean",
1058
- "primaryKey": false,
1059
- "notNull": true
1060
- },
1061
- "transports": {
1062
- "name": "transports",
1063
- "type": "text",
1064
- "primaryKey": false,
1065
- "notNull": false
1066
- },
1067
- "created_at": {
1068
- "name": "created_at",
1069
- "type": "timestamp",
1070
- "primaryKey": false,
1071
- "notNull": true
1072
- },
1073
- "aaguid": {
1074
- "name": "aaguid",
1075
- "type": "text",
1076
- "primaryKey": false,
1077
- "notNull": false
1078
- }
1079
- },
1080
- "indexes": {},
1081
- "foreignKeys": {
1082
- "passkey_user_id_user_id_fk": {
1083
- "name": "passkey_user_id_user_id_fk",
1084
- "tableFrom": "passkey",
1085
- "tableTo": "user",
1086
- "columnsFrom": ["user_id"],
1087
- "columnsTo": ["id"],
1088
- "onDelete": "cascade",
1089
- "onUpdate": "no action"
1090
- }
1091
- },
1092
- "compositePrimaryKeys": {},
1093
- "uniqueConstraints": {},
1094
- "policies": {},
1095
- "checkConstraints": {},
1096
- "isRLSEnabled": false
1097
- },
1098
- "public.session": {
1099
- "name": "session",
1100
- "schema": "",
1101
- "columns": {
1102
- "id": {
1103
- "name": "id",
1104
- "type": "text",
1105
- "primaryKey": true,
1106
- "notNull": true
1107
- },
1108
- "expires_at": {
1109
- "name": "expires_at",
1110
- "type": "timestamp",
1111
- "primaryKey": false,
1112
- "notNull": true
1113
- },
1114
- "token": {
1115
- "name": "token",
1116
- "type": "text",
1117
- "primaryKey": false,
1118
- "notNull": true
1119
- },
1120
- "created_at": {
1121
- "name": "created_at",
1122
- "type": "timestamp",
1123
- "primaryKey": false,
1124
- "notNull": true
1125
- },
1126
- "updated_at": {
1127
- "name": "updated_at",
1128
- "type": "timestamp",
1129
- "primaryKey": false,
1130
- "notNull": true
1131
- },
1132
- "ip_address": {
1133
- "name": "ip_address",
1134
- "type": "text",
1135
- "primaryKey": false,
1136
- "notNull": false
1137
- },
1138
- "user_agent": {
1139
- "name": "user_agent",
1140
- "type": "text",
1141
- "primaryKey": false,
1142
- "notNull": false
1143
- },
1144
- "user_id": {
1145
- "name": "user_id",
1146
- "type": "text",
1147
- "primaryKey": false,
1148
- "notNull": true
1149
- },
1150
- "active_organization_id": {
1151
- "name": "active_organization_id",
1152
- "type": "text",
1153
- "primaryKey": false,
1154
- "notNull": false
1155
- }
1156
- },
1157
- "indexes": {},
1158
- "foreignKeys": {
1159
- "session_user_id_user_id_fk": {
1160
- "name": "session_user_id_user_id_fk",
1161
- "tableFrom": "session",
1162
- "tableTo": "user",
1163
- "columnsFrom": ["user_id"],
1164
- "columnsTo": ["id"],
1165
- "onDelete": "cascade",
1166
- "onUpdate": "no action"
1167
- }
1168
- },
1169
- "compositePrimaryKeys": {},
1170
- "uniqueConstraints": {
1171
- "session_token_unique": {
1172
- "name": "session_token_unique",
1173
- "nullsNotDistinct": false,
1174
- "columns": ["token"]
1175
- }
1176
- },
1177
- "policies": {},
1178
- "checkConstraints": {},
1179
- "isRLSEnabled": false
1180
- },
1181
- "public.statement": {
1182
- "name": "statement",
1183
- "schema": "",
1184
- "columns": {
1185
- "id": {
1186
- "name": "id",
1187
- "type": "text",
1188
- "primaryKey": true,
1189
- "notNull": true
1190
- },
1191
- "user_id": {
1192
- "name": "user_id",
1193
- "type": "text",
1194
- "primaryKey": false,
1195
- "notNull": false
1196
- },
1197
- "organization_id": {
1198
- "name": "organization_id",
1199
- "type": "text",
1200
- "primaryKey": false,
1201
- "notNull": false
1202
- },
1203
- "role_id": {
1204
- "name": "role_id",
1205
- "type": "text",
1206
- "primaryKey": false,
1207
- "notNull": false
1208
- },
1209
- "effect": {
1210
- "name": "effect",
1211
- "type": "text",
1212
- "primaryKey": false,
1213
- "notNull": true
1214
- },
1215
- "action": {
1216
- "name": "action",
1217
- "type": "text",
1218
- "primaryKey": false,
1219
- "notNull": true
1220
- },
1221
- "resource": {
1222
- "name": "resource",
1223
- "type": "text",
1224
- "primaryKey": false,
1225
- "notNull": true
1226
- },
1227
- "condition": {
1228
- "name": "condition",
1229
- "type": "text",
1230
- "primaryKey": false,
1231
- "notNull": false
1232
- },
1233
- "expires_at": {
1234
- "name": "expires_at",
1235
- "type": "timestamp",
1236
- "primaryKey": false,
1237
- "notNull": false
1238
- },
1239
- "created_at": {
1240
- "name": "created_at",
1241
- "type": "timestamp",
1242
- "primaryKey": false,
1243
- "notNull": true
1244
- },
1245
- "updated_at": {
1246
- "name": "updated_at",
1247
- "type": "timestamp",
1248
- "primaryKey": false,
1249
- "notNull": true
1250
- }
1251
- },
1252
- "indexes": {},
1253
- "foreignKeys": {
1254
- "statement_user_id_user_id_fk": {
1255
- "name": "statement_user_id_user_id_fk",
1256
- "tableFrom": "statement",
1257
- "tableTo": "user",
1258
- "columnsFrom": ["user_id"],
1259
- "columnsTo": ["id"],
1260
- "onDelete": "cascade",
1261
- "onUpdate": "no action"
1262
- },
1263
- "statement_organization_id_organization_id_fk": {
1264
- "name": "statement_organization_id_organization_id_fk",
1265
- "tableFrom": "statement",
1266
- "tableTo": "organization",
1267
- "columnsFrom": ["organization_id"],
1268
- "columnsTo": ["id"],
1269
- "onDelete": "cascade",
1270
- "onUpdate": "no action"
1271
- }
1272
- },
1273
- "compositePrimaryKeys": {},
1274
- "uniqueConstraints": {},
1275
- "policies": {},
1276
- "checkConstraints": {},
1277
- "isRLSEnabled": false
1278
- },
1279
- "public.two_factor": {
1280
- "name": "two_factor",
1281
- "schema": "",
1282
- "columns": {
1283
- "id": {
1284
- "name": "id",
1285
- "type": "text",
1286
- "primaryKey": true,
1287
- "notNull": true
1288
- },
1289
- "secret": {
1290
- "name": "secret",
1291
- "type": "text",
1292
- "primaryKey": false,
1293
- "notNull": true
1294
- },
1295
- "backup_codes": {
1296
- "name": "backup_codes",
1297
- "type": "text",
1298
- "primaryKey": false,
1299
- "notNull": true
1300
- },
1301
- "user_id": {
1302
- "name": "user_id",
1303
- "type": "text",
1304
- "primaryKey": false,
1305
- "notNull": true
1306
- }
1307
- },
1308
- "indexes": {},
1309
- "foreignKeys": {
1310
- "two_factor_user_id_user_id_fk": {
1311
- "name": "two_factor_user_id_user_id_fk",
1312
- "tableFrom": "two_factor",
1313
- "tableTo": "user",
1314
- "columnsFrom": ["user_id"],
1315
- "columnsTo": ["id"],
1316
- "onDelete": "cascade",
1317
- "onUpdate": "no action"
1318
- }
1319
- },
1320
- "compositePrimaryKeys": {},
1321
- "uniqueConstraints": {},
1322
- "policies": {},
1323
- "checkConstraints": {},
1324
- "isRLSEnabled": false
1325
- },
1326
- "public.user": {
1327
- "name": "user",
1328
- "schema": "",
1329
- "columns": {
1330
- "id": {
1331
- "name": "id",
1332
- "type": "text",
1333
- "primaryKey": true,
1334
- "notNull": true
1335
- },
1336
- "name": {
1337
- "name": "name",
1338
- "type": "text",
1339
- "primaryKey": false,
1340
- "notNull": true
1341
- },
1342
- "email": {
1343
- "name": "email",
1344
- "type": "text",
1345
- "primaryKey": false,
1346
- "notNull": true
1347
- },
1348
- "email_verified": {
1349
- "name": "email_verified",
1350
- "type": "boolean",
1351
- "primaryKey": false,
1352
- "notNull": true
1353
- },
1354
- "image": {
1355
- "name": "image",
1356
- "type": "text",
1357
- "primaryKey": false,
1358
- "notNull": false
1359
- },
1360
- "created_at": {
1361
- "name": "created_at",
1362
- "type": "timestamp",
1363
- "primaryKey": false,
1364
- "notNull": true
1365
- },
1366
- "updated_at": {
1367
- "name": "updated_at",
1368
- "type": "timestamp",
1369
- "primaryKey": false,
1370
- "notNull": true
1371
- },
1372
- "two_factor_enabled": {
1373
- "name": "two_factor_enabled",
1374
- "type": "boolean",
1375
- "primaryKey": false,
1376
- "notNull": false
1377
- },
1378
- "last_login_method": {
1379
- "name": "last_login_method",
1380
- "type": "text",
1381
- "primaryKey": false,
1382
- "notNull": false
1383
- }
1384
- },
1385
- "indexes": {},
1386
- "foreignKeys": {},
1387
- "compositePrimaryKeys": {},
1388
- "uniqueConstraints": {
1389
- "user_email_unique": {
1390
- "name": "user_email_unique",
1391
- "nullsNotDistinct": false,
1392
- "columns": ["email"]
1393
- }
1394
- },
1395
- "policies": {},
1396
- "checkConstraints": {},
1397
- "isRLSEnabled": false
1398
- },
1399
- "public.verification": {
1400
- "name": "verification",
1401
- "schema": "",
1402
- "columns": {
1403
- "id": {
1404
- "name": "id",
1405
- "type": "text",
1406
- "primaryKey": true,
1407
- "notNull": true
1408
- },
1409
- "identifier": {
1410
- "name": "identifier",
1411
- "type": "text",
1412
- "primaryKey": false,
1413
- "notNull": true
1414
- },
1415
- "value": {
1416
- "name": "value",
1417
- "type": "text",
1418
- "primaryKey": false,
1419
- "notNull": true
1420
- },
1421
- "expires_at": {
1422
- "name": "expires_at",
1423
- "type": "timestamp",
1424
- "primaryKey": false,
1425
- "notNull": true
1426
- },
1427
- "created_at": {
1428
- "name": "created_at",
1429
- "type": "timestamp",
1430
- "primaryKey": false,
1431
- "notNull": false
1432
- },
1433
- "updated_at": {
1434
- "name": "updated_at",
1435
- "type": "timestamp",
1436
- "primaryKey": false,
1437
- "notNull": false
1438
- }
1439
- },
1440
- "indexes": {},
1441
- "foreignKeys": {},
1442
- "compositePrimaryKeys": {},
1443
- "uniqueConstraints": {},
1444
- "policies": {},
1445
- "checkConstraints": {},
1446
- "isRLSEnabled": false
1447
- }
1448
- },
1449
- "enums": {},
1450
- "schemas": {},
1451
- "sequences": {},
1452
- "roles": {},
1453
- "policies": {},
1454
- "views": {},
1455
- "_meta": {
1456
- "columns": {},
1457
- "schemas": {},
1458
- "tables": {}
1459
- }
1460
- }