@coffre/db 0.14.5 → 0.15.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 (214) hide show
  1. package/README.md +2 -1
  2. package/dist/change-records-_fKvahvs.js +55 -0
  3. package/dist/connect.d.ts +22 -10
  4. package/dist/connect.js +74 -12
  5. package/dist/database-CVteLhp1.d.ts +410 -0
  6. package/dist/{database-BadNeeN-.js → database-D55ENPX-.js} +46 -25
  7. package/dist/dialect.d.ts +4 -3
  8. package/dist/dialect.js +14 -5
  9. package/dist/grants.d.ts +4 -4
  10. package/dist/grants.js +4 -4
  11. package/dist/hyperdrive.d.ts +48 -23
  12. package/dist/hyperdrive.js +168 -91
  13. package/dist/index.d.ts +3 -3
  14. package/dist/index.js +1 -1
  15. package/dist/log-DaD7fyUq.d.ts +722 -0
  16. package/dist/log.d.ts +2 -622
  17. package/dist/log.js +178 -13
  18. package/dist/migrate.d.ts +43 -3
  19. package/dist/migrate.js +149 -29
  20. package/dist/migrations/postgres/0022_log_015.sql +672 -0
  21. package/dist/migrations/postgres/0023_change_path.sql +153 -0
  22. package/dist/migrations/postgres/0024_use_015.sql +556 -0
  23. package/dist/migrations/postgres/0025_app_change.sql +221 -0
  24. package/dist/migrations/postgres/0026_issue_lock.sql +106 -0
  25. package/dist/migrations/postgres/0027_retention.sql +118 -0
  26. package/dist/migrations/postgres/0028_use_stalls.sql +594 -0
  27. package/dist/migrations/postgres/0029_use_objects.sql +887 -0
  28. package/dist/migrations/postgres/0030_unarchive_restores.sql +259 -0
  29. package/dist/migrations/postgres/0031_app_read.sql +65 -0
  30. package/dist/migrations/postgres/0032_secrets_live_index.sql +4 -0
  31. package/dist/migrations/postgres/0033_use_generations.sql +582 -0
  32. package/dist/migrations/postgres/0034_vault_credentials.sql +153 -0
  33. package/dist/migrations/postgres/0035_first_days.sql +3 -0
  34. package/dist/migrations/postgres/0036_vault_issues.sql +91 -0
  35. package/dist/migrations/postgres/0037_vault_bindings.sql +271 -0
  36. package/dist/migrations/postgres/0040_binding_origin.sql +159 -0
  37. package/dist/migrations/postgres/0041_cutover.sql +132 -0
  38. package/dist/migrations/postgres/0042_sign_in_index.sql +7 -0
  39. package/dist/migrations/postgres/0043_issue_revoke_index.sql +4 -0
  40. package/dist/migrations/postgres/0044_use_by_name.sql +705 -0
  41. package/dist/migrations/postgres/0045_decide_first.sql +878 -0
  42. package/dist/migrations/postgres/0046_way_in_uses.sql +1149 -0
  43. package/dist/migrations/postgres/0047_cutover_finish.sql +268 -0
  44. package/dist/migrations/postgres/0048_use_batch.sql +59 -0
  45. package/dist/migrations/postgres/0049_reads.sql +171 -0
  46. package/dist/migrations/postgres/meta/0022_snapshot.json +3831 -0
  47. package/dist/migrations/postgres/meta/0023_snapshot.json +3831 -0
  48. package/dist/migrations/postgres/meta/0024_snapshot.json +3831 -0
  49. package/dist/migrations/postgres/meta/0025_snapshot.json +3831 -0
  50. package/dist/migrations/postgres/meta/0026_snapshot.json +3831 -0
  51. package/dist/migrations/postgres/meta/0027_snapshot.json +3853 -0
  52. package/dist/migrations/postgres/meta/0028_snapshot.json +3853 -0
  53. package/dist/migrations/postgres/meta/0029_snapshot.json +3859 -0
  54. package/dist/migrations/postgres/meta/0030_snapshot.json +3859 -0
  55. package/dist/migrations/postgres/meta/0031_snapshot.json +3859 -0
  56. package/dist/migrations/postgres/meta/0032_snapshot.json +3875 -0
  57. package/dist/migrations/postgres/meta/0033_snapshot.json +3875 -0
  58. package/dist/migrations/postgres/meta/0034_snapshot.json +3875 -0
  59. package/dist/migrations/postgres/meta/0035_snapshot.json +3875 -0
  60. package/dist/migrations/postgres/meta/0036_snapshot.json +3875 -0
  61. package/dist/migrations/postgres/meta/0037_snapshot.json +3875 -0
  62. package/dist/migrations/postgres/meta/0038_snapshot.json +3881 -0
  63. package/dist/migrations/postgres/meta/0039_snapshot.json +3881 -0
  64. package/dist/migrations/postgres/meta/0040_snapshot.json +3931 -0
  65. package/dist/migrations/postgres/meta/0041_snapshot.json +3981 -0
  66. package/dist/migrations/postgres/meta/0042_snapshot.json +3981 -0
  67. package/dist/migrations/postgres/meta/0043_snapshot.json +3981 -0
  68. package/dist/migrations/postgres/meta/0044_snapshot.json +3991 -0
  69. package/dist/migrations/postgres/meta/0045_snapshot.json +3997 -0
  70. package/dist/migrations/postgres/meta/0046_snapshot.json +3997 -0
  71. package/dist/migrations/postgres/meta/0047_snapshot.json +4234 -0
  72. package/dist/migrations/postgres/meta/_journal.json +182 -0
  73. package/dist/migrations/sqlite/0018_log_015.sql +84 -0
  74. package/dist/migrations/sqlite/0019_retention.sql +2 -0
  75. package/dist/migrations/sqlite/0020_ended_references.sql +1 -0
  76. package/dist/migrations/sqlite/0021_secrets_live_index.sql +1 -0
  77. package/dist/migrations/sqlite/0022_binding_origin.sql +1 -0
  78. package/dist/migrations/sqlite/0023_sign_in_index.sql +2 -0
  79. package/dist/migrations/sqlite/0024_issue_revoke_index.sql +2 -0
  80. package/dist/migrations/sqlite/0025_way_in_uses.sql +42 -0
  81. package/dist/migrations/sqlite/0026_cutover_finish.sql +11 -0
  82. package/dist/migrations/sqlite/0027_reads.sql +38 -0
  83. package/dist/migrations/sqlite/meta/0018_snapshot.json +3529 -0
  84. package/dist/migrations/sqlite/meta/0019_snapshot.json +3538 -0
  85. package/dist/migrations/sqlite/meta/0020_snapshot.json +3545 -0
  86. package/dist/migrations/sqlite/meta/0021_snapshot.json +3553 -0
  87. package/dist/migrations/sqlite/meta/0022_snapshot.json +3560 -0
  88. package/dist/migrations/sqlite/meta/0023_snapshot.json +3579 -0
  89. package/dist/migrations/sqlite/meta/0024_snapshot.json +3598 -0
  90. package/dist/migrations/sqlite/meta/0025_snapshot.json +3609 -0
  91. package/dist/migrations/sqlite/meta/0026_snapshot.json +3616 -0
  92. package/dist/migrations/sqlite/meta/0027_snapshot.json +3834 -0
  93. package/dist/migrations/sqlite/meta/_journal.json +70 -0
  94. package/dist/platform-Y3gICK6n.d.ts +58 -0
  95. package/dist/portable.d.ts +2 -2
  96. package/dist/postgres-BI3xTnyw.js +1718 -0
  97. package/dist/postgres-platform-node.d.ts +14 -0
  98. package/dist/postgres-platform-node.js +21 -0
  99. package/dist/postgres-platform-workerd.d.ts +61 -0
  100. package/dist/postgres-platform-workerd.js +163 -0
  101. package/dist/{schema-BfQEBqFv.d.ts → schema-DgoPqqsI.d.ts} +1326 -7
  102. package/dist/schema-sqlite.d.ts +1306 -6
  103. package/dist/schema-sqlite.js +154 -18
  104. package/dist/schema-version.d.ts +1 -1
  105. package/dist/schema-version.js +254 -2
  106. package/dist/schema.d.ts +2 -2
  107. package/dist/schema.js +226 -20
  108. package/package.json +13 -5
  109. package/src/active-subject.ts +9 -0
  110. package/src/change-records.ts +38 -0
  111. package/src/connect.ts +67 -13
  112. package/src/database.ts +67 -51
  113. package/src/dialect.ts +17 -8
  114. package/src/grants.ts +3 -3
  115. package/src/hyperdrive.ts +181 -104
  116. package/src/log.ts +196 -15
  117. package/src/migrate.ts +157 -30
  118. package/src/migrations/postgres/0022_log_015.sql +672 -0
  119. package/src/migrations/postgres/0023_change_path.sql +153 -0
  120. package/src/migrations/postgres/0024_use_015.sql +556 -0
  121. package/src/migrations/postgres/0025_app_change.sql +221 -0
  122. package/src/migrations/postgres/0026_issue_lock.sql +106 -0
  123. package/src/migrations/postgres/0027_retention.sql +118 -0
  124. package/src/migrations/postgres/0028_use_stalls.sql +594 -0
  125. package/src/migrations/postgres/0029_use_objects.sql +887 -0
  126. package/src/migrations/postgres/0030_unarchive_restores.sql +259 -0
  127. package/src/migrations/postgres/0031_app_read.sql +65 -0
  128. package/src/migrations/postgres/0032_secrets_live_index.sql +4 -0
  129. package/src/migrations/postgres/0033_use_generations.sql +582 -0
  130. package/src/migrations/postgres/0034_vault_credentials.sql +153 -0
  131. package/src/migrations/postgres/0035_first_days.sql +3 -0
  132. package/src/migrations/postgres/0036_vault_issues.sql +91 -0
  133. package/src/migrations/postgres/0037_vault_bindings.sql +271 -0
  134. package/src/migrations/postgres/0040_binding_origin.sql +159 -0
  135. package/src/migrations/postgres/0041_cutover.sql +132 -0
  136. package/src/migrations/postgres/0042_sign_in_index.sql +7 -0
  137. package/src/migrations/postgres/0043_issue_revoke_index.sql +4 -0
  138. package/src/migrations/postgres/0044_use_by_name.sql +705 -0
  139. package/src/migrations/postgres/0045_decide_first.sql +878 -0
  140. package/src/migrations/postgres/0046_way_in_uses.sql +1149 -0
  141. package/src/migrations/postgres/0047_cutover_finish.sql +268 -0
  142. package/src/migrations/postgres/0048_use_batch.sql +59 -0
  143. package/src/migrations/postgres/0049_reads.sql +171 -0
  144. package/src/migrations/postgres/meta/0022_snapshot.json +3831 -0
  145. package/src/migrations/postgres/meta/0023_snapshot.json +3831 -0
  146. package/src/migrations/postgres/meta/0024_snapshot.json +3831 -0
  147. package/src/migrations/postgres/meta/0025_snapshot.json +3831 -0
  148. package/src/migrations/postgres/meta/0026_snapshot.json +3831 -0
  149. package/src/migrations/postgres/meta/0027_snapshot.json +3853 -0
  150. package/src/migrations/postgres/meta/0028_snapshot.json +3853 -0
  151. package/src/migrations/postgres/meta/0029_snapshot.json +3859 -0
  152. package/src/migrations/postgres/meta/0030_snapshot.json +3859 -0
  153. package/src/migrations/postgres/meta/0031_snapshot.json +3859 -0
  154. package/src/migrations/postgres/meta/0032_snapshot.json +3875 -0
  155. package/src/migrations/postgres/meta/0033_snapshot.json +3875 -0
  156. package/src/migrations/postgres/meta/0034_snapshot.json +3875 -0
  157. package/src/migrations/postgres/meta/0035_snapshot.json +3875 -0
  158. package/src/migrations/postgres/meta/0036_snapshot.json +3875 -0
  159. package/src/migrations/postgres/meta/0037_snapshot.json +3875 -0
  160. package/src/migrations/postgres/meta/0038_snapshot.json +3881 -0
  161. package/src/migrations/postgres/meta/0039_snapshot.json +3881 -0
  162. package/src/migrations/postgres/meta/0040_snapshot.json +3931 -0
  163. package/src/migrations/postgres/meta/0041_snapshot.json +3981 -0
  164. package/src/migrations/postgres/meta/0042_snapshot.json +3981 -0
  165. package/src/migrations/postgres/meta/0043_snapshot.json +3981 -0
  166. package/src/migrations/postgres/meta/0044_snapshot.json +3991 -0
  167. package/src/migrations/postgres/meta/0045_snapshot.json +3997 -0
  168. package/src/migrations/postgres/meta/0046_snapshot.json +3997 -0
  169. package/src/migrations/postgres/meta/0047_snapshot.json +4234 -0
  170. package/src/migrations/postgres/meta/_journal.json +182 -0
  171. package/src/migrations/sqlite/0018_log_015.sql +84 -0
  172. package/src/migrations/sqlite/0019_retention.sql +2 -0
  173. package/src/migrations/sqlite/0020_ended_references.sql +1 -0
  174. package/src/migrations/sqlite/0021_secrets_live_index.sql +1 -0
  175. package/src/migrations/sqlite/0022_binding_origin.sql +1 -0
  176. package/src/migrations/sqlite/0023_sign_in_index.sql +2 -0
  177. package/src/migrations/sqlite/0024_issue_revoke_index.sql +2 -0
  178. package/src/migrations/sqlite/0025_way_in_uses.sql +42 -0
  179. package/src/migrations/sqlite/0026_cutover_finish.sql +11 -0
  180. package/src/migrations/sqlite/0027_reads.sql +38 -0
  181. package/src/migrations/sqlite/meta/0018_snapshot.json +3529 -0
  182. package/src/migrations/sqlite/meta/0019_snapshot.json +3538 -0
  183. package/src/migrations/sqlite/meta/0020_snapshot.json +3545 -0
  184. package/src/migrations/sqlite/meta/0021_snapshot.json +3553 -0
  185. package/src/migrations/sqlite/meta/0022_snapshot.json +3560 -0
  186. package/src/migrations/sqlite/meta/0023_snapshot.json +3579 -0
  187. package/src/migrations/sqlite/meta/0024_snapshot.json +3598 -0
  188. package/src/migrations/sqlite/meta/0025_snapshot.json +3609 -0
  189. package/src/migrations/sqlite/meta/0026_snapshot.json +3616 -0
  190. package/src/migrations/sqlite/meta/0027_snapshot.json +3834 -0
  191. package/src/migrations/sqlite/meta/_journal.json +70 -0
  192. package/src/postgres-js/README.md +183 -0
  193. package/src/postgres-js/UNLICENSE +24 -0
  194. package/src/postgres-js/bytes.ts +89 -0
  195. package/src/postgres-js/connection.ts +882 -0
  196. package/src/postgres-js/errors.ts +84 -0
  197. package/src/postgres-js/index.ts +516 -0
  198. package/src/postgres-js/platform.node.ts +29 -0
  199. package/src/postgres-js/platform.ts +60 -0
  200. package/src/postgres-js/platform.workerd.ts +225 -0
  201. package/src/postgres-js/query.ts +123 -0
  202. package/src/postgres-js/queue.ts +42 -0
  203. package/src/postgres-js/result.ts +46 -0
  204. package/src/postgres-js/types.ts +52 -0
  205. package/src/postgres.ts +375 -26
  206. package/src/schema-version.ts +2 -2
  207. package/src/schema.sqlite.ts +198 -7
  208. package/src/schema.ts +291 -6
  209. package/src/verify-runtime.ts +18 -29
  210. package/LICENSE +0 -21
  211. package/dist/database-wq1AVRAP.d.ts +0 -73
  212. package/dist/postgres-Bmar8y0q.js +0 -29
  213. package/dist/relations-BfR3JjT1.js +0 -38
  214. package/src/relations.ts +0 -40
@@ -0,0 +1,3997 @@
1
+ {
2
+ "id": "db8cc7c3-a4d2-4cbc-99ad-44d21d65d926",
3
+ "prevId": "e32e4c60-a44e-4a83-ad4a-473ba5fb9607",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.audit_chain_head": {
8
+ "name": "audit_chain_head",
9
+ "schema": "",
10
+ "columns": {
11
+ "only_row": {
12
+ "name": "only_row",
13
+ "type": "boolean",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": true
17
+ },
18
+ "next_seq": {
19
+ "name": "next_seq",
20
+ "type": "bigint",
21
+ "primaryKey": false,
22
+ "notNull": true,
23
+ "default": "0"
24
+ },
25
+ "head_hash": {
26
+ "name": "head_hash",
27
+ "type": "bytea",
28
+ "primaryKey": false,
29
+ "notNull": true
30
+ }
31
+ },
32
+ "indexes": {},
33
+ "foreignKeys": {},
34
+ "compositePrimaryKeys": {},
35
+ "uniqueConstraints": {},
36
+ "policies": {},
37
+ "checkConstraints": {
38
+ "audit_chain_head_only_row_check": {
39
+ "name": "audit_chain_head_only_row_check",
40
+ "value": "\"audit_chain_head\".\"only_row\""
41
+ },
42
+ "audit_chain_head_next_seq_check": {
43
+ "name": "audit_chain_head_next_seq_check",
44
+ "value": "\"audit_chain_head\".\"next_seq\" >= 0"
45
+ },
46
+ "audit_chain_head_head_hash_check": {
47
+ "name": "audit_chain_head_head_hash_check",
48
+ "value": "octet_length(\"audit_chain_head\".\"head_hash\") = 32"
49
+ }
50
+ },
51
+ "isRLSEnabled": false
52
+ },
53
+ "public.audit_log": {
54
+ "name": "audit_log",
55
+ "schema": "",
56
+ "columns": {
57
+ "seq": {
58
+ "name": "seq",
59
+ "type": "bigint",
60
+ "primaryKey": true,
61
+ "notNull": true
62
+ },
63
+ "author": {
64
+ "name": "author",
65
+ "type": "text",
66
+ "primaryKey": false,
67
+ "notNull": true
68
+ },
69
+ "key_id": {
70
+ "name": "key_id",
71
+ "type": "text",
72
+ "primaryKey": false,
73
+ "notNull": true
74
+ },
75
+ "occurred_at": {
76
+ "name": "occurred_at",
77
+ "type": "bigint",
78
+ "primaryKey": false,
79
+ "notNull": true
80
+ },
81
+ "actor": {
82
+ "name": "actor",
83
+ "type": "text",
84
+ "primaryKey": false,
85
+ "notNull": true
86
+ },
87
+ "action": {
88
+ "name": "action",
89
+ "type": "text",
90
+ "primaryKey": false,
91
+ "notNull": true
92
+ },
93
+ "decision": {
94
+ "name": "decision",
95
+ "type": "text",
96
+ "primaryKey": false,
97
+ "notNull": true
98
+ },
99
+ "code": {
100
+ "name": "code",
101
+ "type": "text",
102
+ "primaryKey": false,
103
+ "notNull": false
104
+ },
105
+ "subject_principal": {
106
+ "name": "subject_principal",
107
+ "type": "text",
108
+ "primaryKey": false,
109
+ "notNull": false
110
+ },
111
+ "project_id": {
112
+ "name": "project_id",
113
+ "type": "uuid",
114
+ "primaryKey": false,
115
+ "notNull": false
116
+ },
117
+ "environment_id": {
118
+ "name": "environment_id",
119
+ "type": "uuid",
120
+ "primaryKey": false,
121
+ "notNull": false
122
+ },
123
+ "secret_id": {
124
+ "name": "secret_id",
125
+ "type": "uuid",
126
+ "primaryKey": false,
127
+ "notNull": false
128
+ },
129
+ "secret_version_id": {
130
+ "name": "secret_version_id",
131
+ "type": "uuid",
132
+ "primaryKey": false,
133
+ "notNull": false
134
+ },
135
+ "operation_id": {
136
+ "name": "operation_id",
137
+ "type": "uuid",
138
+ "primaryKey": false,
139
+ "notNull": false
140
+ },
141
+ "request_id": {
142
+ "name": "request_id",
143
+ "type": "text",
144
+ "primaryKey": false,
145
+ "notNull": false
146
+ },
147
+ "source_ip": {
148
+ "name": "source_ip",
149
+ "type": "text",
150
+ "primaryKey": false,
151
+ "notNull": false
152
+ },
153
+ "related_seq": {
154
+ "name": "related_seq",
155
+ "type": "bigint",
156
+ "primaryKey": false,
157
+ "notNull": false
158
+ },
159
+ "metadata": {
160
+ "name": "metadata",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "default": "'{}'"
165
+ },
166
+ "prev_hash": {
167
+ "name": "prev_hash",
168
+ "type": "bytea",
169
+ "primaryKey": false,
170
+ "notNull": true
171
+ },
172
+ "mac": {
173
+ "name": "mac",
174
+ "type": "bytea",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "hash": {
179
+ "name": "hash",
180
+ "type": "bytea",
181
+ "primaryKey": false,
182
+ "notNull": true
183
+ },
184
+ "log015": {
185
+ "name": "log015",
186
+ "type": "boolean",
187
+ "primaryKey": false,
188
+ "notNull": false
189
+ }
190
+ },
191
+ "indexes": {
192
+ "audit_log_project_idx": {
193
+ "name": "audit_log_project_idx",
194
+ "columns": [
195
+ {
196
+ "expression": "project_id",
197
+ "isExpression": false,
198
+ "asc": true,
199
+ "nulls": "last"
200
+ },
201
+ {
202
+ "expression": "seq",
203
+ "isExpression": false,
204
+ "asc": true,
205
+ "nulls": "last"
206
+ }
207
+ ],
208
+ "isUnique": false,
209
+ "concurrently": false,
210
+ "method": "btree",
211
+ "with": {}
212
+ },
213
+ "audit_log_environment_idx": {
214
+ "name": "audit_log_environment_idx",
215
+ "columns": [
216
+ {
217
+ "expression": "environment_id",
218
+ "isExpression": false,
219
+ "asc": true,
220
+ "nulls": "last"
221
+ },
222
+ {
223
+ "expression": "seq",
224
+ "isExpression": false,
225
+ "asc": true,
226
+ "nulls": "last"
227
+ }
228
+ ],
229
+ "isUnique": false,
230
+ "concurrently": false,
231
+ "method": "btree",
232
+ "with": {}
233
+ },
234
+ "audit_log_secret_idx": {
235
+ "name": "audit_log_secret_idx",
236
+ "columns": [
237
+ {
238
+ "expression": "secret_id",
239
+ "isExpression": false,
240
+ "asc": true,
241
+ "nulls": "last"
242
+ },
243
+ {
244
+ "expression": "seq",
245
+ "isExpression": false,
246
+ "asc": true,
247
+ "nulls": "last"
248
+ }
249
+ ],
250
+ "isUnique": false,
251
+ "concurrently": false,
252
+ "method": "btree",
253
+ "with": {}
254
+ },
255
+ "audit_log_actor_idx": {
256
+ "name": "audit_log_actor_idx",
257
+ "columns": [
258
+ {
259
+ "expression": "actor",
260
+ "isExpression": false,
261
+ "asc": true,
262
+ "nulls": "last"
263
+ },
264
+ {
265
+ "expression": "seq",
266
+ "isExpression": false,
267
+ "asc": true,
268
+ "nulls": "last"
269
+ }
270
+ ],
271
+ "isUnique": false,
272
+ "concurrently": false,
273
+ "method": "btree",
274
+ "with": {}
275
+ },
276
+ "audit_log_operation_idx": {
277
+ "name": "audit_log_operation_idx",
278
+ "columns": [
279
+ {
280
+ "expression": "operation_id",
281
+ "isExpression": false,
282
+ "asc": true,
283
+ "nulls": "last"
284
+ },
285
+ {
286
+ "expression": "seq",
287
+ "isExpression": false,
288
+ "asc": true,
289
+ "nulls": "last"
290
+ }
291
+ ],
292
+ "isUnique": false,
293
+ "concurrently": false,
294
+ "method": "btree",
295
+ "with": {}
296
+ },
297
+ "audit_log_action_idx": {
298
+ "name": "audit_log_action_idx",
299
+ "columns": [
300
+ {
301
+ "expression": "author",
302
+ "isExpression": false,
303
+ "asc": true,
304
+ "nulls": "last"
305
+ },
306
+ {
307
+ "expression": "action",
308
+ "isExpression": false,
309
+ "asc": true,
310
+ "nulls": "last"
311
+ },
312
+ {
313
+ "expression": "seq",
314
+ "isExpression": false,
315
+ "asc": true,
316
+ "nulls": "last"
317
+ }
318
+ ],
319
+ "isUnique": false,
320
+ "concurrently": false,
321
+ "method": "btree",
322
+ "with": {}
323
+ },
324
+ "audit_log_releases_idx": {
325
+ "name": "audit_log_releases_idx",
326
+ "columns": [
327
+ {
328
+ "expression": "author",
329
+ "isExpression": false,
330
+ "asc": true,
331
+ "nulls": "last"
332
+ },
333
+ {
334
+ "expression": "actor",
335
+ "isExpression": false,
336
+ "asc": true,
337
+ "nulls": "last"
338
+ },
339
+ {
340
+ "expression": "action",
341
+ "isExpression": false,
342
+ "asc": true,
343
+ "nulls": "last"
344
+ },
345
+ {
346
+ "expression": "decision",
347
+ "isExpression": false,
348
+ "asc": true,
349
+ "nulls": "last"
350
+ },
351
+ {
352
+ "expression": "occurred_at",
353
+ "isExpression": false,
354
+ "asc": true,
355
+ "nulls": "last"
356
+ }
357
+ ],
358
+ "isUnique": false,
359
+ "concurrently": false,
360
+ "method": "btree",
361
+ "with": {}
362
+ },
363
+ "audit_log_subject_idx": {
364
+ "name": "audit_log_subject_idx",
365
+ "columns": [
366
+ {
367
+ "expression": "author",
368
+ "isExpression": false,
369
+ "asc": true,
370
+ "nulls": "last"
371
+ },
372
+ {
373
+ "expression": "subject_principal",
374
+ "isExpression": false,
375
+ "asc": true,
376
+ "nulls": "last"
377
+ },
378
+ {
379
+ "expression": "seq",
380
+ "isExpression": false,
381
+ "asc": true,
382
+ "nulls": "last"
383
+ }
384
+ ],
385
+ "isUnique": false,
386
+ "concurrently": false,
387
+ "method": "btree",
388
+ "with": {}
389
+ },
390
+ "audit_log_unbind_idx": {
391
+ "name": "audit_log_unbind_idx",
392
+ "columns": [
393
+ {
394
+ "expression": "((\"metadata\")::jsonb ->> 'bindingId')",
395
+ "asc": true,
396
+ "isExpression": true,
397
+ "nulls": "last"
398
+ }
399
+ ],
400
+ "isUnique": false,
401
+ "where": "\"audit_log\".\"author\" = 'app' AND \"audit_log\".\"action\" = 'token.unbind' AND \"audit_log\".\"decision\" = 'allow'",
402
+ "concurrently": false,
403
+ "method": "btree",
404
+ "with": {}
405
+ },
406
+ "audit_log_freeze_idx": {
407
+ "name": "audit_log_freeze_idx",
408
+ "columns": [
409
+ {
410
+ "expression": "((\"metadata\")::jsonb ->> 'target')",
411
+ "asc": true,
412
+ "isExpression": true,
413
+ "nulls": "last"
414
+ },
415
+ {
416
+ "expression": "seq",
417
+ "isExpression": false,
418
+ "asc": false,
419
+ "nulls": "last"
420
+ }
421
+ ],
422
+ "isUnique": false,
423
+ "where": "\"audit_log\".\"author\" = 'app' AND \"audit_log\".\"action\" IN ('workload.freeze', 'workload.unfreeze') AND \"audit_log\".\"decision\" = 'allow'",
424
+ "concurrently": false,
425
+ "method": "btree",
426
+ "with": {}
427
+ },
428
+ "audit_log_supersede_idx": {
429
+ "name": "audit_log_supersede_idx",
430
+ "columns": [
431
+ {
432
+ "expression": "((\"metadata\")::jsonb ->> 'enrollmentId')",
433
+ "asc": true,
434
+ "isExpression": true,
435
+ "nulls": "last"
436
+ }
437
+ ],
438
+ "isUnique": false,
439
+ "where": "\"audit_log\".\"author\" = 'app' AND \"audit_log\".\"action\" = 'enrollment.supersede' AND \"audit_log\".\"decision\" = 'allow'",
440
+ "concurrently": false,
441
+ "method": "btree",
442
+ "with": {}
443
+ },
444
+ "audit_log_exchange_idx": {
445
+ "name": "audit_log_exchange_idx",
446
+ "columns": [
447
+ {
448
+ "expression": "((\"metadata\")::jsonb ->> 'credentialId')",
449
+ "asc": true,
450
+ "isExpression": true,
451
+ "nulls": "last"
452
+ }
453
+ ],
454
+ "isUnique": false,
455
+ "where": "\"audit_log\".\"author\" = 'app' AND \"audit_log\".\"action\" = 'token.exchange' AND \"audit_log\".\"decision\" = 'allow'",
456
+ "concurrently": false,
457
+ "method": "btree",
458
+ "with": {}
459
+ },
460
+ "audit_log_token_create_idx": {
461
+ "name": "audit_log_token_create_idx",
462
+ "columns": [
463
+ {
464
+ "expression": "((\"metadata\")::jsonb ->> 'targetCredentialId')",
465
+ "asc": true,
466
+ "isExpression": true,
467
+ "nulls": "last"
468
+ }
469
+ ],
470
+ "isUnique": false,
471
+ "where": "\"audit_log\".\"author\" = 'app' AND \"audit_log\".\"action\" = 'token.create' AND \"audit_log\".\"decision\" = 'allow'",
472
+ "concurrently": false,
473
+ "method": "btree",
474
+ "with": {}
475
+ },
476
+ "audit_log_reference_end_idx": {
477
+ "name": "audit_log_reference_end_idx",
478
+ "columns": [
479
+ {
480
+ "expression": "related_seq",
481
+ "isExpression": false,
482
+ "asc": true,
483
+ "nulls": "last"
484
+ }
485
+ ],
486
+ "isUnique": false,
487
+ "where": "\"audit_log\".\"author\" = 'vault' AND \"audit_log\".\"action\" = 'reference.end' AND \"audit_log\".\"decision\" = 'allow'",
488
+ "concurrently": false,
489
+ "method": "btree",
490
+ "with": {}
491
+ },
492
+ "audit_log_also_project_idx": {
493
+ "name": "audit_log_also_project_idx",
494
+ "columns": [
495
+ {
496
+ "expression": "(((\"metadata\")::jsonb -> 'also') ->> 'projectId')",
497
+ "asc": true,
498
+ "isExpression": true,
499
+ "nulls": "last"
500
+ },
501
+ {
502
+ "expression": "seq",
503
+ "isExpression": false,
504
+ "asc": true,
505
+ "nulls": "last"
506
+ }
507
+ ],
508
+ "isUnique": false,
509
+ "where": "((\"audit_log\".\"metadata\")::jsonb -> 'also') IS NOT NULL",
510
+ "concurrently": false,
511
+ "method": "btree",
512
+ "with": {}
513
+ },
514
+ "audit_log_also_environment_idx": {
515
+ "name": "audit_log_also_environment_idx",
516
+ "columns": [
517
+ {
518
+ "expression": "(((\"metadata\")::jsonb -> 'also') ->> 'environmentId')",
519
+ "asc": true,
520
+ "isExpression": true,
521
+ "nulls": "last"
522
+ },
523
+ {
524
+ "expression": "seq",
525
+ "isExpression": false,
526
+ "asc": true,
527
+ "nulls": "last"
528
+ }
529
+ ],
530
+ "isUnique": false,
531
+ "where": "((\"audit_log\".\"metadata\")::jsonb -> 'also') IS NOT NULL",
532
+ "concurrently": false,
533
+ "method": "btree",
534
+ "with": {}
535
+ },
536
+ "audit_log_also_secret_idx": {
537
+ "name": "audit_log_also_secret_idx",
538
+ "columns": [
539
+ {
540
+ "expression": "(((\"metadata\")::jsonb -> 'also') ->> 'secretId')",
541
+ "asc": true,
542
+ "isExpression": true,
543
+ "nulls": "last"
544
+ },
545
+ {
546
+ "expression": "seq",
547
+ "isExpression": false,
548
+ "asc": true,
549
+ "nulls": "last"
550
+ }
551
+ ],
552
+ "isUnique": false,
553
+ "where": "((\"audit_log\".\"metadata\")::jsonb -> 'also') IS NOT NULL",
554
+ "concurrently": false,
555
+ "method": "btree",
556
+ "with": {}
557
+ }
558
+ },
559
+ "foreignKeys": {
560
+ "audit_log_project_id_fkey": {
561
+ "name": "audit_log_project_id_fkey",
562
+ "tableFrom": "audit_log",
563
+ "tableTo": "projects",
564
+ "columnsFrom": [
565
+ "project_id"
566
+ ],
567
+ "columnsTo": [
568
+ "id"
569
+ ],
570
+ "onDelete": "restrict",
571
+ "onUpdate": "no action"
572
+ },
573
+ "audit_log_environment_id_fkey": {
574
+ "name": "audit_log_environment_id_fkey",
575
+ "tableFrom": "audit_log",
576
+ "tableTo": "environments",
577
+ "columnsFrom": [
578
+ "environment_id"
579
+ ],
580
+ "columnsTo": [
581
+ "id"
582
+ ],
583
+ "onDelete": "restrict",
584
+ "onUpdate": "no action"
585
+ },
586
+ "audit_log_secret_id_fkey": {
587
+ "name": "audit_log_secret_id_fkey",
588
+ "tableFrom": "audit_log",
589
+ "tableTo": "secrets",
590
+ "columnsFrom": [
591
+ "secret_id"
592
+ ],
593
+ "columnsTo": [
594
+ "id"
595
+ ],
596
+ "onDelete": "restrict",
597
+ "onUpdate": "no action"
598
+ },
599
+ "audit_log_secret_version_id_fkey": {
600
+ "name": "audit_log_secret_version_id_fkey",
601
+ "tableFrom": "audit_log",
602
+ "tableTo": "secret_versions",
603
+ "columnsFrom": [
604
+ "secret_version_id"
605
+ ],
606
+ "columnsTo": [
607
+ "id"
608
+ ],
609
+ "onDelete": "restrict",
610
+ "onUpdate": "no action"
611
+ },
612
+ "audit_log_related_seq_fkey": {
613
+ "name": "audit_log_related_seq_fkey",
614
+ "tableFrom": "audit_log",
615
+ "tableTo": "audit_log",
616
+ "columnsFrom": [
617
+ "related_seq"
618
+ ],
619
+ "columnsTo": [
620
+ "seq"
621
+ ],
622
+ "onDelete": "restrict",
623
+ "onUpdate": "no action"
624
+ }
625
+ },
626
+ "compositePrimaryKeys": {},
627
+ "uniqueConstraints": {},
628
+ "policies": {},
629
+ "checkConstraints": {
630
+ "audit_log_author_check": {
631
+ "name": "audit_log_author_check",
632
+ "value": "\"audit_log\".\"author\" IN ('app', 'vault')"
633
+ },
634
+ "audit_log_actor_check": {
635
+ "name": "audit_log_actor_check",
636
+ "value": "\"audit_log\".\"actor\" ~ '^(user|token|system):.+$'"
637
+ },
638
+ "audit_log_decision_check": {
639
+ "name": "audit_log_decision_check",
640
+ "value": "\"audit_log\".\"decision\" IN ('allow', 'deny')"
641
+ },
642
+ "audit_log_metadata_check": {
643
+ "name": "audit_log_metadata_check",
644
+ "value": "\"audit_log\".\"metadata\"::jsonb IS NOT NULL"
645
+ },
646
+ "audit_log_prev_hash_check": {
647
+ "name": "audit_log_prev_hash_check",
648
+ "value": "octet_length(\"audit_log\".\"prev_hash\") = 32"
649
+ },
650
+ "audit_log_mac_check": {
651
+ "name": "audit_log_mac_check",
652
+ "value": "octet_length(\"audit_log\".\"mac\") = 32"
653
+ },
654
+ "audit_log_hash_check": {
655
+ "name": "audit_log_hash_check",
656
+ "value": "octet_length(\"audit_log\".\"hash\") = 32"
657
+ }
658
+ },
659
+ "isRLSEnabled": false
660
+ },
661
+ "public.capped_alerts": {
662
+ "name": "capped_alerts",
663
+ "schema": "",
664
+ "columns": {
665
+ "service": {
666
+ "name": "service",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": true
670
+ },
671
+ "kind": {
672
+ "name": "kind",
673
+ "type": "text",
674
+ "primaryKey": false,
675
+ "notNull": true
676
+ },
677
+ "raised_at": {
678
+ "name": "raised_at",
679
+ "type": "timestamp with time zone",
680
+ "primaryKey": false,
681
+ "notNull": true
682
+ }
683
+ },
684
+ "indexes": {},
685
+ "foreignKeys": {},
686
+ "compositePrimaryKeys": {
687
+ "capped_alerts_pkey": {
688
+ "name": "capped_alerts_pkey",
689
+ "columns": [
690
+ "service",
691
+ "kind"
692
+ ]
693
+ }
694
+ },
695
+ "uniqueConstraints": {},
696
+ "policies": {},
697
+ "checkConstraints": {},
698
+ "isRLSEnabled": false
699
+ },
700
+ "public.consumed_tokens": {
701
+ "name": "consumed_tokens",
702
+ "schema": "",
703
+ "columns": {
704
+ "hash": {
705
+ "name": "hash",
706
+ "type": "bytea",
707
+ "primaryKey": true,
708
+ "notNull": true
709
+ },
710
+ "consumed_at": {
711
+ "name": "consumed_at",
712
+ "type": "timestamp with time zone",
713
+ "primaryKey": false,
714
+ "notNull": true,
715
+ "default": "now()"
716
+ }
717
+ },
718
+ "indexes": {},
719
+ "foreignKeys": {},
720
+ "compositePrimaryKeys": {},
721
+ "uniqueConstraints": {},
722
+ "policies": {},
723
+ "checkConstraints": {
724
+ "consumed_tokens_hash_check": {
725
+ "name": "consumed_tokens_hash_check",
726
+ "value": "octet_length(\"consumed_tokens\".\"hash\") = 32"
727
+ }
728
+ },
729
+ "isRLSEnabled": false
730
+ },
731
+ "public.credentials": {
732
+ "name": "credentials",
733
+ "schema": "",
734
+ "columns": {
735
+ "id": {
736
+ "name": "id",
737
+ "type": "uuid",
738
+ "primaryKey": true,
739
+ "notNull": true,
740
+ "default": "gen_random_uuid()"
741
+ },
742
+ "kind": {
743
+ "name": "kind",
744
+ "type": "text",
745
+ "primaryKey": false,
746
+ "notNull": true
747
+ },
748
+ "auth_mac": {
749
+ "name": "auth_mac",
750
+ "type": "bytea",
751
+ "primaryKey": false,
752
+ "notNull": true
753
+ },
754
+ "token_hash": {
755
+ "name": "token_hash",
756
+ "type": "bytea",
757
+ "primaryKey": false,
758
+ "notNull": true
759
+ },
760
+ "token_hint": {
761
+ "name": "token_hint",
762
+ "type": "text",
763
+ "primaryKey": false,
764
+ "notNull": true
765
+ },
766
+ "generation": {
767
+ "name": "generation",
768
+ "type": "integer",
769
+ "primaryKey": false,
770
+ "notNull": true
771
+ },
772
+ "principal": {
773
+ "name": "principal",
774
+ "type": "text",
775
+ "primaryKey": false,
776
+ "notNull": true
777
+ },
778
+ "identity_id": {
779
+ "name": "identity_id",
780
+ "type": "uuid",
781
+ "primaryKey": false,
782
+ "notNull": false
783
+ },
784
+ "scope": {
785
+ "name": "scope",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": false
789
+ },
790
+ "places": {
791
+ "name": "places",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": false
795
+ },
796
+ "label": {
797
+ "name": "label",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": false
801
+ },
802
+ "created_at": {
803
+ "name": "created_at",
804
+ "type": "timestamp with time zone",
805
+ "primaryKey": false,
806
+ "notNull": true,
807
+ "default": "now()"
808
+ },
809
+ "created_by": {
810
+ "name": "created_by",
811
+ "type": "text",
812
+ "primaryKey": false,
813
+ "notNull": true
814
+ },
815
+ "expires_at": {
816
+ "name": "expires_at",
817
+ "type": "timestamp with time zone",
818
+ "primaryKey": false,
819
+ "notNull": true
820
+ },
821
+ "last_used_at": {
822
+ "name": "last_used_at",
823
+ "type": "timestamp with time zone",
824
+ "primaryKey": false,
825
+ "notNull": false
826
+ },
827
+ "last_used_ip": {
828
+ "name": "last_used_ip",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false
832
+ },
833
+ "revoked_at": {
834
+ "name": "revoked_at",
835
+ "type": "timestamp with time zone",
836
+ "primaryKey": false,
837
+ "notNull": false
838
+ },
839
+ "revoked_by": {
840
+ "name": "revoked_by",
841
+ "type": "text",
842
+ "primaryKey": false,
843
+ "notNull": false
844
+ },
845
+ "jkt": {
846
+ "name": "jkt",
847
+ "type": "text",
848
+ "primaryKey": false,
849
+ "notNull": false
850
+ },
851
+ "not_after": {
852
+ "name": "not_after",
853
+ "type": "timestamp with time zone",
854
+ "primaryKey": false,
855
+ "notNull": false
856
+ },
857
+ "ancestors": {
858
+ "name": "ancestors",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": false
862
+ },
863
+ "constraints": {
864
+ "name": "constraints",
865
+ "type": "text",
866
+ "primaryKey": false,
867
+ "notNull": false
868
+ },
869
+ "enrollment_id": {
870
+ "name": "enrollment_id",
871
+ "type": "uuid",
872
+ "primaryKey": false,
873
+ "notNull": false
874
+ },
875
+ "approved_at": {
876
+ "name": "approved_at",
877
+ "type": "timestamp with time zone",
878
+ "primaryKey": false,
879
+ "notNull": false
880
+ },
881
+ "approved_by": {
882
+ "name": "approved_by",
883
+ "type": "text",
884
+ "primaryKey": false,
885
+ "notNull": false
886
+ },
887
+ "seal": {
888
+ "name": "seal",
889
+ "type": "bytea",
890
+ "primaryKey": false,
891
+ "notNull": false
892
+ }
893
+ },
894
+ "indexes": {
895
+ "credentials_principal_idx": {
896
+ "name": "credentials_principal_idx",
897
+ "columns": [
898
+ {
899
+ "expression": "principal",
900
+ "isExpression": false,
901
+ "asc": true,
902
+ "nulls": "last"
903
+ },
904
+ {
905
+ "expression": "generation",
906
+ "isExpression": false,
907
+ "asc": true,
908
+ "nulls": "last"
909
+ }
910
+ ],
911
+ "isUnique": false,
912
+ "concurrently": false,
913
+ "method": "btree",
914
+ "with": {}
915
+ },
916
+ "credentials_live_idx": {
917
+ "name": "credentials_live_idx",
918
+ "columns": [
919
+ {
920
+ "expression": "principal",
921
+ "isExpression": false,
922
+ "asc": true,
923
+ "nulls": "last"
924
+ },
925
+ {
926
+ "expression": "expires_at",
927
+ "isExpression": false,
928
+ "asc": true,
929
+ "nulls": "last"
930
+ }
931
+ ],
932
+ "isUnique": false,
933
+ "where": "\"credentials\".\"revoked_at\" IS NULL",
934
+ "concurrently": false,
935
+ "method": "btree",
936
+ "with": {}
937
+ },
938
+ "credentials_issued_by_idx": {
939
+ "name": "credentials_issued_by_idx",
940
+ "columns": [
941
+ {
942
+ "expression": "principal",
943
+ "isExpression": false,
944
+ "asc": true,
945
+ "nulls": "last"
946
+ },
947
+ {
948
+ "expression": "created_by",
949
+ "isExpression": false,
950
+ "asc": true,
951
+ "nulls": "last"
952
+ },
953
+ {
954
+ "expression": "created_at",
955
+ "isExpression": false,
956
+ "asc": true,
957
+ "nulls": "last"
958
+ }
959
+ ],
960
+ "isUnique": false,
961
+ "concurrently": false,
962
+ "method": "btree",
963
+ "with": {}
964
+ },
965
+ "credentials_enrollment_roots_idx": {
966
+ "name": "credentials_enrollment_roots_idx",
967
+ "columns": [
968
+ {
969
+ "expression": "enrollment_id",
970
+ "isExpression": false,
971
+ "asc": true,
972
+ "nulls": "last"
973
+ },
974
+ {
975
+ "expression": "created_at",
976
+ "isExpression": false,
977
+ "asc": true,
978
+ "nulls": "last"
979
+ }
980
+ ],
981
+ "isUnique": false,
982
+ "where": "\"credentials\".\"kind\" = 'workload' AND \"credentials\".\"ancestors\" IS NULL",
983
+ "concurrently": false,
984
+ "method": "btree",
985
+ "with": {}
986
+ }
987
+ },
988
+ "foreignKeys": {
989
+ "credentials_principal_fkey": {
990
+ "name": "credentials_principal_fkey",
991
+ "tableFrom": "credentials",
992
+ "tableTo": "vault_members",
993
+ "columnsFrom": [
994
+ "principal"
995
+ ],
996
+ "columnsTo": [
997
+ "principal"
998
+ ],
999
+ "onDelete": "restrict",
1000
+ "onUpdate": "no action"
1001
+ },
1002
+ "credentials_identity_id_fkey": {
1003
+ "name": "credentials_identity_id_fkey",
1004
+ "tableFrom": "credentials",
1005
+ "tableTo": "identities",
1006
+ "columnsFrom": [
1007
+ "identity_id",
1008
+ "principal",
1009
+ "generation"
1010
+ ],
1011
+ "columnsTo": [
1012
+ "id",
1013
+ "principal",
1014
+ "generation"
1015
+ ],
1016
+ "onDelete": "restrict",
1017
+ "onUpdate": "no action"
1018
+ },
1019
+ "credentials_enrollment_id_fkey": {
1020
+ "name": "credentials_enrollment_id_fkey",
1021
+ "tableFrom": "credentials",
1022
+ "tableTo": "enrollments",
1023
+ "columnsFrom": [
1024
+ "enrollment_id"
1025
+ ],
1026
+ "columnsTo": [
1027
+ "id"
1028
+ ],
1029
+ "onDelete": "restrict",
1030
+ "onUpdate": "no action"
1031
+ }
1032
+ },
1033
+ "compositePrimaryKeys": {},
1034
+ "uniqueConstraints": {
1035
+ "credentials_token_hash_key": {
1036
+ "name": "credentials_token_hash_key",
1037
+ "nullsNotDistinct": false,
1038
+ "columns": [
1039
+ "token_hash"
1040
+ ]
1041
+ }
1042
+ },
1043
+ "policies": {},
1044
+ "checkConstraints": {
1045
+ "credentials_seal_check": {
1046
+ "name": "credentials_seal_check",
1047
+ "value": "\"credentials\".\"seal\" IS NULL OR octet_length(\"credentials\".\"seal\") = 16"
1048
+ },
1049
+ "credentials_kind_check": {
1050
+ "name": "credentials_kind_check",
1051
+ "value": "\"credentials\".\"kind\" IN ('browser', 'cli', 'service', 'personal', 'handle', 'workload')"
1052
+ },
1053
+ "credentials_principal_check": {
1054
+ "name": "credentials_principal_check",
1055
+ "value": "\"credentials\".\"principal\" LIKE 'user:%' OR \"credentials\".\"principal\" LIKE 'token:%'"
1056
+ },
1057
+ "credentials_kind_matches_principal": {
1058
+ "name": "credentials_kind_matches_principal",
1059
+ "value": "(\"credentials\".\"kind\" IN ('service', 'workload')) = (\"credentials\".\"principal\" LIKE 'token:%')"
1060
+ },
1061
+ "credentials_workload_jkt_check": {
1062
+ "name": "credentials_workload_jkt_check",
1063
+ "value": "\"credentials\".\"kind\" <> 'workload' OR \"credentials\".\"jkt\" IS NOT NULL"
1064
+ },
1065
+ "credentials_token_hash_check": {
1066
+ "name": "credentials_token_hash_check",
1067
+ "value": "octet_length(\"credentials\".\"token_hash\") = 32"
1068
+ },
1069
+ "credentials_auth_mac_check": {
1070
+ "name": "credentials_auth_mac_check",
1071
+ "value": "octet_length(\"credentials\".\"auth_mac\") = 32"
1072
+ }
1073
+ },
1074
+ "isRLSEnabled": false
1075
+ },
1076
+ "public.device_authorizations": {
1077
+ "name": "device_authorizations",
1078
+ "schema": "",
1079
+ "columns": {
1080
+ "id": {
1081
+ "name": "id",
1082
+ "type": "uuid",
1083
+ "primaryKey": true,
1084
+ "notNull": true,
1085
+ "default": "gen_random_uuid()"
1086
+ },
1087
+ "device_code_hash": {
1088
+ "name": "device_code_hash",
1089
+ "type": "bytea",
1090
+ "primaryKey": false,
1091
+ "notNull": true
1092
+ },
1093
+ "auth_mac": {
1094
+ "name": "auth_mac",
1095
+ "type": "bytea",
1096
+ "primaryKey": false,
1097
+ "notNull": true
1098
+ },
1099
+ "user_code": {
1100
+ "name": "user_code",
1101
+ "type": "text",
1102
+ "primaryKey": false,
1103
+ "notNull": true
1104
+ },
1105
+ "client_label": {
1106
+ "name": "client_label",
1107
+ "type": "text",
1108
+ "primaryKey": false,
1109
+ "notNull": false
1110
+ },
1111
+ "client_ip": {
1112
+ "name": "client_ip",
1113
+ "type": "text",
1114
+ "primaryKey": false,
1115
+ "notNull": false
1116
+ },
1117
+ "created_at": {
1118
+ "name": "created_at",
1119
+ "type": "timestamp with time zone",
1120
+ "primaryKey": false,
1121
+ "notNull": true,
1122
+ "default": "now()"
1123
+ },
1124
+ "expires_at": {
1125
+ "name": "expires_at",
1126
+ "type": "timestamp with time zone",
1127
+ "primaryKey": false,
1128
+ "notNull": true
1129
+ },
1130
+ "decided_at": {
1131
+ "name": "decided_at",
1132
+ "type": "timestamp with time zone",
1133
+ "primaryKey": false,
1134
+ "notNull": false
1135
+ },
1136
+ "decision": {
1137
+ "name": "decision",
1138
+ "type": "text",
1139
+ "primaryKey": false,
1140
+ "notNull": false
1141
+ },
1142
+ "generation": {
1143
+ "name": "generation",
1144
+ "type": "integer",
1145
+ "primaryKey": false,
1146
+ "notNull": true,
1147
+ "default": 0
1148
+ },
1149
+ "principal": {
1150
+ "name": "principal",
1151
+ "type": "text",
1152
+ "primaryKey": false,
1153
+ "notNull": false
1154
+ },
1155
+ "consumed_at": {
1156
+ "name": "consumed_at",
1157
+ "type": "timestamp with time zone",
1158
+ "primaryKey": false,
1159
+ "notNull": false
1160
+ }
1161
+ },
1162
+ "indexes": {},
1163
+ "foreignKeys": {
1164
+ "device_authorizations_principal_fkey": {
1165
+ "name": "device_authorizations_principal_fkey",
1166
+ "tableFrom": "device_authorizations",
1167
+ "tableTo": "vault_members",
1168
+ "columnsFrom": [
1169
+ "principal"
1170
+ ],
1171
+ "columnsTo": [
1172
+ "principal"
1173
+ ],
1174
+ "onDelete": "restrict",
1175
+ "onUpdate": "no action"
1176
+ }
1177
+ },
1178
+ "compositePrimaryKeys": {},
1179
+ "uniqueConstraints": {
1180
+ "device_authorizations_device_code_hash_key": {
1181
+ "name": "device_authorizations_device_code_hash_key",
1182
+ "nullsNotDistinct": false,
1183
+ "columns": [
1184
+ "device_code_hash"
1185
+ ]
1186
+ },
1187
+ "device_authorizations_user_code_key": {
1188
+ "name": "device_authorizations_user_code_key",
1189
+ "nullsNotDistinct": false,
1190
+ "columns": [
1191
+ "user_code"
1192
+ ]
1193
+ }
1194
+ },
1195
+ "policies": {},
1196
+ "checkConstraints": {
1197
+ "device_authorizations_auth_mac_check": {
1198
+ "name": "device_authorizations_auth_mac_check",
1199
+ "value": "octet_length(\"device_authorizations\".\"auth_mac\") = 32"
1200
+ },
1201
+ "device_authorizations_decision_check": {
1202
+ "name": "device_authorizations_decision_check",
1203
+ "value": "\"device_authorizations\".\"decision\" IS NULL OR \"device_authorizations\".\"decision\" IN ('approved', 'denied')"
1204
+ },
1205
+ "device_authorizations_approval_names_principal": {
1206
+ "name": "device_authorizations_approval_names_principal",
1207
+ "value": "(\"device_authorizations\".\"decision\" IS NULL AND \"device_authorizations\".\"decided_at\" IS NULL AND \"device_authorizations\".\"principal\" IS NULL AND \"device_authorizations\".\"generation\" = 0 AND \"device_authorizations\".\"consumed_at\" IS NULL)\n OR (\"device_authorizations\".\"decision\" IS NOT NULL AND \"device_authorizations\".\"decided_at\" IS NOT NULL AND (\n (\"device_authorizations\".\"decision\" = 'denied' AND \"device_authorizations\".\"principal\" IS NULL AND \"device_authorizations\".\"generation\" = 0 AND \"device_authorizations\".\"consumed_at\" IS NULL)\n OR (\"device_authorizations\".\"decision\" = 'approved' AND \"device_authorizations\".\"principal\" IS NOT NULL AND \"device_authorizations\".\"principal\" LIKE 'user:%')\n ))"
1208
+ }
1209
+ },
1210
+ "isRLSEnabled": false
1211
+ },
1212
+ "public.dismissed_keys": {
1213
+ "name": "dismissed_keys",
1214
+ "schema": "",
1215
+ "columns": {
1216
+ "environment_id": {
1217
+ "name": "environment_id",
1218
+ "type": "uuid",
1219
+ "primaryKey": false,
1220
+ "notNull": true
1221
+ },
1222
+ "key": {
1223
+ "name": "key",
1224
+ "type": "text",
1225
+ "primaryKey": false,
1226
+ "notNull": true
1227
+ },
1228
+ "dismissed_at": {
1229
+ "name": "dismissed_at",
1230
+ "type": "timestamp with time zone",
1231
+ "primaryKey": false,
1232
+ "notNull": true,
1233
+ "default": "now()"
1234
+ },
1235
+ "dismissed_by": {
1236
+ "name": "dismissed_by",
1237
+ "type": "text",
1238
+ "primaryKey": false,
1239
+ "notNull": true
1240
+ },
1241
+ "restored_at": {
1242
+ "name": "restored_at",
1243
+ "type": "timestamp with time zone",
1244
+ "primaryKey": false,
1245
+ "notNull": false
1246
+ },
1247
+ "restored_by": {
1248
+ "name": "restored_by",
1249
+ "type": "text",
1250
+ "primaryKey": false,
1251
+ "notNull": false
1252
+ }
1253
+ },
1254
+ "indexes": {},
1255
+ "foreignKeys": {
1256
+ "dismissed_keys_environment_id_fkey": {
1257
+ "name": "dismissed_keys_environment_id_fkey",
1258
+ "tableFrom": "dismissed_keys",
1259
+ "tableTo": "environments",
1260
+ "columnsFrom": [
1261
+ "environment_id"
1262
+ ],
1263
+ "columnsTo": [
1264
+ "id"
1265
+ ],
1266
+ "onDelete": "restrict",
1267
+ "onUpdate": "no action"
1268
+ }
1269
+ },
1270
+ "compositePrimaryKeys": {
1271
+ "dismissed_keys_pkey": {
1272
+ "name": "dismissed_keys_pkey",
1273
+ "columns": [
1274
+ "environment_id",
1275
+ "key"
1276
+ ]
1277
+ }
1278
+ },
1279
+ "uniqueConstraints": {},
1280
+ "policies": {},
1281
+ "checkConstraints": {
1282
+ "dismissed_keys_key_check": {
1283
+ "name": "dismissed_keys_key_check",
1284
+ "value": "\"dismissed_keys\".\"key\" ~ '^[A-Za-z_][A-Za-z0-9_]{0,127}$'"
1285
+ }
1286
+ },
1287
+ "isRLSEnabled": false
1288
+ },
1289
+ "public.enrollments": {
1290
+ "name": "enrollments",
1291
+ "schema": "",
1292
+ "columns": {
1293
+ "id": {
1294
+ "name": "id",
1295
+ "type": "uuid",
1296
+ "primaryKey": true,
1297
+ "notNull": true
1298
+ },
1299
+ "auth_mac": {
1300
+ "name": "auth_mac",
1301
+ "type": "bytea",
1302
+ "primaryKey": false,
1303
+ "notNull": true
1304
+ },
1305
+ "binding_id": {
1306
+ "name": "binding_id",
1307
+ "type": "uuid",
1308
+ "primaryKey": false,
1309
+ "notNull": true
1310
+ },
1311
+ "code_hash": {
1312
+ "name": "code_hash",
1313
+ "type": "bytea",
1314
+ "primaryKey": false,
1315
+ "notNull": true
1316
+ },
1317
+ "code_hint": {
1318
+ "name": "code_hint",
1319
+ "type": "text",
1320
+ "primaryKey": false,
1321
+ "notNull": true
1322
+ },
1323
+ "scope": {
1324
+ "name": "scope",
1325
+ "type": "text",
1326
+ "primaryKey": false,
1327
+ "notNull": true
1328
+ },
1329
+ "created_at": {
1330
+ "name": "created_at",
1331
+ "type": "timestamp with time zone",
1332
+ "primaryKey": false,
1333
+ "notNull": true,
1334
+ "default": "now()"
1335
+ },
1336
+ "created_by": {
1337
+ "name": "created_by",
1338
+ "type": "text",
1339
+ "primaryKey": false,
1340
+ "notNull": true
1341
+ },
1342
+ "created_with": {
1343
+ "name": "created_with",
1344
+ "type": "uuid",
1345
+ "primaryKey": false,
1346
+ "notNull": false
1347
+ },
1348
+ "expires_at": {
1349
+ "name": "expires_at",
1350
+ "type": "timestamp with time zone",
1351
+ "primaryKey": false,
1352
+ "notNull": true
1353
+ }
1354
+ },
1355
+ "indexes": {
1356
+ "enrollments_binding_idx": {
1357
+ "name": "enrollments_binding_idx",
1358
+ "columns": [
1359
+ {
1360
+ "expression": "binding_id",
1361
+ "isExpression": false,
1362
+ "asc": true,
1363
+ "nulls": "last"
1364
+ },
1365
+ {
1366
+ "expression": "created_at",
1367
+ "isExpression": false,
1368
+ "asc": false,
1369
+ "nulls": "last"
1370
+ }
1371
+ ],
1372
+ "isUnique": false,
1373
+ "concurrently": false,
1374
+ "method": "btree",
1375
+ "with": {}
1376
+ }
1377
+ },
1378
+ "foreignKeys": {
1379
+ "enrollments_binding_id_fkey": {
1380
+ "name": "enrollments_binding_id_fkey",
1381
+ "tableFrom": "enrollments",
1382
+ "tableTo": "service_bindings",
1383
+ "columnsFrom": [
1384
+ "binding_id"
1385
+ ],
1386
+ "columnsTo": [
1387
+ "id"
1388
+ ],
1389
+ "onDelete": "restrict",
1390
+ "onUpdate": "no action"
1391
+ }
1392
+ },
1393
+ "compositePrimaryKeys": {},
1394
+ "uniqueConstraints": {
1395
+ "enrollments_code_hash_key": {
1396
+ "name": "enrollments_code_hash_key",
1397
+ "nullsNotDistinct": false,
1398
+ "columns": [
1399
+ "code_hash"
1400
+ ]
1401
+ }
1402
+ },
1403
+ "policies": {},
1404
+ "checkConstraints": {
1405
+ "enrollments_auth_mac_check": {
1406
+ "name": "enrollments_auth_mac_check",
1407
+ "value": "octet_length(\"enrollments\".\"auth_mac\") = 32"
1408
+ },
1409
+ "enrollments_code_hash_check": {
1410
+ "name": "enrollments_code_hash_check",
1411
+ "value": "octet_length(\"enrollments\".\"code_hash\") = 32"
1412
+ },
1413
+ "enrollments_scope_check": {
1414
+ "name": "enrollments_scope_check",
1415
+ "value": "\"enrollments\".\"scope\"::jsonb IS NOT NULL"
1416
+ }
1417
+ },
1418
+ "isRLSEnabled": false
1419
+ },
1420
+ "public.environments": {
1421
+ "name": "environments",
1422
+ "schema": "",
1423
+ "columns": {
1424
+ "id": {
1425
+ "name": "id",
1426
+ "type": "uuid",
1427
+ "primaryKey": true,
1428
+ "notNull": true,
1429
+ "default": "gen_random_uuid()"
1430
+ },
1431
+ "project_id": {
1432
+ "name": "project_id",
1433
+ "type": "uuid",
1434
+ "primaryKey": false,
1435
+ "notNull": true
1436
+ },
1437
+ "slug": {
1438
+ "name": "slug",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": true
1442
+ },
1443
+ "name": {
1444
+ "name": "name",
1445
+ "type": "text",
1446
+ "primaryKey": false,
1447
+ "notNull": true
1448
+ },
1449
+ "created_at": {
1450
+ "name": "created_at",
1451
+ "type": "timestamp with time zone",
1452
+ "primaryKey": false,
1453
+ "notNull": true,
1454
+ "default": "now()"
1455
+ },
1456
+ "archived_at": {
1457
+ "name": "archived_at",
1458
+ "type": "timestamp with time zone",
1459
+ "primaryKey": false,
1460
+ "notNull": false
1461
+ },
1462
+ "parent_id": {
1463
+ "name": "parent_id",
1464
+ "type": "uuid",
1465
+ "primaryKey": false,
1466
+ "notNull": false
1467
+ },
1468
+ "owner": {
1469
+ "name": "owner",
1470
+ "type": "text",
1471
+ "primaryKey": false,
1472
+ "notNull": false
1473
+ },
1474
+ "protected": {
1475
+ "name": "protected",
1476
+ "type": "boolean",
1477
+ "primaryKey": false,
1478
+ "notNull": false
1479
+ },
1480
+ "seal": {
1481
+ "name": "seal",
1482
+ "type": "bytea",
1483
+ "primaryKey": false,
1484
+ "notNull": false
1485
+ }
1486
+ },
1487
+ "indexes": {
1488
+ "environments_parent_id_owner_key": {
1489
+ "name": "environments_parent_id_owner_key",
1490
+ "columns": [
1491
+ {
1492
+ "expression": "parent_id",
1493
+ "isExpression": false,
1494
+ "asc": true,
1495
+ "nulls": "last"
1496
+ },
1497
+ {
1498
+ "expression": "owner",
1499
+ "isExpression": false,
1500
+ "asc": true,
1501
+ "nulls": "last"
1502
+ }
1503
+ ],
1504
+ "isUnique": true,
1505
+ "where": "strpos(\"environments\".\"slug\", '~') = 0",
1506
+ "concurrently": false,
1507
+ "method": "btree",
1508
+ "with": {}
1509
+ },
1510
+ "environments_parent_idx": {
1511
+ "name": "environments_parent_idx",
1512
+ "columns": [
1513
+ {
1514
+ "expression": "parent_id",
1515
+ "isExpression": false,
1516
+ "asc": true,
1517
+ "nulls": "last"
1518
+ }
1519
+ ],
1520
+ "isUnique": false,
1521
+ "concurrently": false,
1522
+ "method": "btree",
1523
+ "with": {}
1524
+ }
1525
+ },
1526
+ "foreignKeys": {
1527
+ "environments_project_id_fkey": {
1528
+ "name": "environments_project_id_fkey",
1529
+ "tableFrom": "environments",
1530
+ "tableTo": "projects",
1531
+ "columnsFrom": [
1532
+ "project_id"
1533
+ ],
1534
+ "columnsTo": [
1535
+ "id"
1536
+ ],
1537
+ "onDelete": "restrict",
1538
+ "onUpdate": "no action"
1539
+ },
1540
+ "environments_parent_in_project": {
1541
+ "name": "environments_parent_in_project",
1542
+ "tableFrom": "environments",
1543
+ "tableTo": "environments",
1544
+ "columnsFrom": [
1545
+ "parent_id",
1546
+ "project_id"
1547
+ ],
1548
+ "columnsTo": [
1549
+ "id",
1550
+ "project_id"
1551
+ ],
1552
+ "onDelete": "no action",
1553
+ "onUpdate": "no action"
1554
+ }
1555
+ },
1556
+ "compositePrimaryKeys": {},
1557
+ "uniqueConstraints": {
1558
+ "environments_project_id_slug_key": {
1559
+ "name": "environments_project_id_slug_key",
1560
+ "nullsNotDistinct": false,
1561
+ "columns": [
1562
+ "project_id",
1563
+ "slug"
1564
+ ]
1565
+ },
1566
+ "environments_project_scoped": {
1567
+ "name": "environments_project_scoped",
1568
+ "nullsNotDistinct": false,
1569
+ "columns": [
1570
+ "id",
1571
+ "project_id"
1572
+ ]
1573
+ }
1574
+ },
1575
+ "policies": {},
1576
+ "checkConstraints": {
1577
+ "environments_seal_check": {
1578
+ "name": "environments_seal_check",
1579
+ "value": "\"environments\".\"seal\" IS NULL OR octet_length(\"environments\".\"seal\") = 16"
1580
+ },
1581
+ "environments_slug_check": {
1582
+ "name": "environments_slug_check",
1583
+ "value": "\"environments\".\"slug\" ~ '^[a-z0-9][a-z0-9-]{0,62}(~[a-z0-9-]{1,40})?$'"
1584
+ },
1585
+ "environments_parent_check": {
1586
+ "name": "environments_parent_check",
1587
+ "value": "\"environments\".\"parent_id\" IS NULL OR \"environments\".\"parent_id\" <> \"environments\".\"id\""
1588
+ },
1589
+ "environments_owner_check": {
1590
+ "name": "environments_owner_check",
1591
+ "value": "\"environments\".\"owner\" IS NULL OR (\"environments\".\"parent_id\" IS NOT NULL AND \"environments\".\"owner\" LIKE 'user:_%')"
1592
+ }
1593
+ },
1594
+ "isRLSEnabled": false
1595
+ },
1596
+ "public.identities": {
1597
+ "name": "identities",
1598
+ "schema": "",
1599
+ "columns": {
1600
+ "id": {
1601
+ "name": "id",
1602
+ "type": "uuid",
1603
+ "primaryKey": true,
1604
+ "notNull": true,
1605
+ "default": "gen_random_uuid()"
1606
+ },
1607
+ "provider": {
1608
+ "name": "provider",
1609
+ "type": "text",
1610
+ "primaryKey": false,
1611
+ "notNull": true
1612
+ },
1613
+ "auth_mac": {
1614
+ "name": "auth_mac",
1615
+ "type": "bytea",
1616
+ "primaryKey": false,
1617
+ "notNull": true
1618
+ },
1619
+ "subject": {
1620
+ "name": "subject",
1621
+ "type": "text",
1622
+ "primaryKey": false,
1623
+ "notNull": true
1624
+ },
1625
+ "issuer_hash": {
1626
+ "name": "issuer_hash",
1627
+ "type": "text",
1628
+ "primaryKey": false,
1629
+ "notNull": true
1630
+ },
1631
+ "generation": {
1632
+ "name": "generation",
1633
+ "type": "integer",
1634
+ "primaryKey": false,
1635
+ "notNull": true
1636
+ },
1637
+ "principal": {
1638
+ "name": "principal",
1639
+ "type": "text",
1640
+ "primaryKey": false,
1641
+ "notNull": true
1642
+ },
1643
+ "email": {
1644
+ "name": "email",
1645
+ "type": "text",
1646
+ "primaryKey": false,
1647
+ "notNull": false
1648
+ },
1649
+ "created_at": {
1650
+ "name": "created_at",
1651
+ "type": "timestamp with time zone",
1652
+ "primaryKey": false,
1653
+ "notNull": true,
1654
+ "default": "now()"
1655
+ },
1656
+ "created_by": {
1657
+ "name": "created_by",
1658
+ "type": "text",
1659
+ "primaryKey": false,
1660
+ "notNull": true
1661
+ },
1662
+ "last_sign_in_at": {
1663
+ "name": "last_sign_in_at",
1664
+ "type": "timestamp with time zone",
1665
+ "primaryKey": false,
1666
+ "notNull": false
1667
+ },
1668
+ "revoked_at": {
1669
+ "name": "revoked_at",
1670
+ "type": "timestamp with time zone",
1671
+ "primaryKey": false,
1672
+ "notNull": false
1673
+ },
1674
+ "revoked_by": {
1675
+ "name": "revoked_by",
1676
+ "type": "text",
1677
+ "primaryKey": false,
1678
+ "notNull": false
1679
+ },
1680
+ "active_subject": {
1681
+ "name": "active_subject",
1682
+ "type": "text",
1683
+ "primaryKey": false,
1684
+ "notNull": false,
1685
+ "generated": {
1686
+ "as": "CASE WHEN revoked_at IS NULL THEN subject END",
1687
+ "type": "stored"
1688
+ }
1689
+ }
1690
+ },
1691
+ "indexes": {
1692
+ "identities_active_subject": {
1693
+ "name": "identities_active_subject",
1694
+ "columns": [
1695
+ {
1696
+ "expression": "provider",
1697
+ "isExpression": false,
1698
+ "asc": true,
1699
+ "nulls": "last"
1700
+ },
1701
+ {
1702
+ "expression": "issuer_hash",
1703
+ "isExpression": false,
1704
+ "asc": true,
1705
+ "nulls": "last"
1706
+ },
1707
+ {
1708
+ "expression": "active_subject",
1709
+ "isExpression": false,
1710
+ "asc": true,
1711
+ "nulls": "last"
1712
+ }
1713
+ ],
1714
+ "isUnique": true,
1715
+ "concurrently": false,
1716
+ "method": "btree",
1717
+ "with": {}
1718
+ },
1719
+ "identities_principal_idx": {
1720
+ "name": "identities_principal_idx",
1721
+ "columns": [
1722
+ {
1723
+ "expression": "principal",
1724
+ "isExpression": false,
1725
+ "asc": true,
1726
+ "nulls": "last"
1727
+ },
1728
+ {
1729
+ "expression": "generation",
1730
+ "isExpression": false,
1731
+ "asc": true,
1732
+ "nulls": "last"
1733
+ }
1734
+ ],
1735
+ "isUnique": false,
1736
+ "concurrently": false,
1737
+ "method": "btree",
1738
+ "with": {}
1739
+ }
1740
+ },
1741
+ "foreignKeys": {
1742
+ "identities_principal_fkey": {
1743
+ "name": "identities_principal_fkey",
1744
+ "tableFrom": "identities",
1745
+ "tableTo": "vault_members",
1746
+ "columnsFrom": [
1747
+ "principal"
1748
+ ],
1749
+ "columnsTo": [
1750
+ "principal"
1751
+ ],
1752
+ "onDelete": "restrict",
1753
+ "onUpdate": "no action"
1754
+ }
1755
+ },
1756
+ "compositePrimaryKeys": {},
1757
+ "uniqueConstraints": {
1758
+ "identities_member_generation_key": {
1759
+ "name": "identities_member_generation_key",
1760
+ "nullsNotDistinct": false,
1761
+ "columns": [
1762
+ "id",
1763
+ "principal",
1764
+ "generation"
1765
+ ]
1766
+ }
1767
+ },
1768
+ "policies": {},
1769
+ "checkConstraints": {
1770
+ "identities_principal_check": {
1771
+ "name": "identities_principal_check",
1772
+ "value": "\"identities\".\"principal\" LIKE 'user:%'"
1773
+ },
1774
+ "identities_provider_check": {
1775
+ "name": "identities_provider_check",
1776
+ "value": "\"identities\".\"provider\" ~ '^[a-z0-9][a-z0-9-]{0,31}$'"
1777
+ },
1778
+ "identities_auth_mac_check": {
1779
+ "name": "identities_auth_mac_check",
1780
+ "value": "octet_length(\"identities\".\"auth_mac\") = 32"
1781
+ }
1782
+ },
1783
+ "isRLSEnabled": false
1784
+ },
1785
+ "public.log_bulk": {
1786
+ "name": "log_bulk",
1787
+ "schema": "",
1788
+ "columns": {
1789
+ "principal": {
1790
+ "name": "principal",
1791
+ "type": "text",
1792
+ "primaryKey": false,
1793
+ "notNull": true
1794
+ },
1795
+ "secret": {
1796
+ "name": "secret",
1797
+ "type": "uuid",
1798
+ "primaryKey": false,
1799
+ "notNull": true
1800
+ },
1801
+ "last": {
1802
+ "name": "last",
1803
+ "type": "bigint",
1804
+ "primaryKey": false,
1805
+ "notNull": true
1806
+ }
1807
+ },
1808
+ "indexes": {},
1809
+ "foreignKeys": {},
1810
+ "compositePrimaryKeys": {
1811
+ "log_bulk_pkey": {
1812
+ "name": "log_bulk_pkey",
1813
+ "columns": [
1814
+ "principal",
1815
+ "secret"
1816
+ ]
1817
+ }
1818
+ },
1819
+ "uniqueConstraints": {},
1820
+ "policies": {},
1821
+ "checkConstraints": {},
1822
+ "isRLSEnabled": false
1823
+ },
1824
+ "public.log_changes": {
1825
+ "name": "log_changes",
1826
+ "schema": "",
1827
+ "columns": {
1828
+ "number": {
1829
+ "name": "number",
1830
+ "type": "bigint",
1831
+ "primaryKey": true,
1832
+ "notNull": true
1833
+ },
1834
+ "at": {
1835
+ "name": "at",
1836
+ "type": "bigint",
1837
+ "primaryKey": false,
1838
+ "notNull": true
1839
+ },
1840
+ "request_id": {
1841
+ "name": "request_id",
1842
+ "type": "text",
1843
+ "primaryKey": false,
1844
+ "notNull": true
1845
+ },
1846
+ "object": {
1847
+ "name": "object",
1848
+ "type": "uuid",
1849
+ "primaryKey": false,
1850
+ "notNull": true
1851
+ },
1852
+ "actor": {
1853
+ "name": "actor",
1854
+ "type": "text",
1855
+ "primaryKey": false,
1856
+ "notNull": true
1857
+ },
1858
+ "payload": {
1859
+ "name": "payload",
1860
+ "type": "text",
1861
+ "primaryKey": false,
1862
+ "notNull": true
1863
+ },
1864
+ "seal": {
1865
+ "name": "seal",
1866
+ "type": "bytea",
1867
+ "primaryKey": false,
1868
+ "notNull": false
1869
+ },
1870
+ "mac": {
1871
+ "name": "mac",
1872
+ "type": "bytea",
1873
+ "primaryKey": false,
1874
+ "notNull": true
1875
+ }
1876
+ },
1877
+ "indexes": {
1878
+ "log_changes_object_idx": {
1879
+ "name": "log_changes_object_idx",
1880
+ "columns": [
1881
+ {
1882
+ "expression": "object",
1883
+ "isExpression": false,
1884
+ "asc": true,
1885
+ "nulls": "last"
1886
+ },
1887
+ {
1888
+ "expression": "number",
1889
+ "isExpression": false,
1890
+ "asc": true,
1891
+ "nulls": "last"
1892
+ }
1893
+ ],
1894
+ "isUnique": false,
1895
+ "concurrently": false,
1896
+ "method": "btree",
1897
+ "with": {}
1898
+ },
1899
+ "log_changes_sign_in_idx": {
1900
+ "name": "log_changes_sign_in_idx",
1901
+ "columns": [
1902
+ {
1903
+ "expression": "at",
1904
+ "isExpression": false,
1905
+ "asc": true,
1906
+ "nulls": "last"
1907
+ },
1908
+ {
1909
+ "expression": "number",
1910
+ "isExpression": false,
1911
+ "asc": true,
1912
+ "nulls": "last"
1913
+ }
1914
+ ],
1915
+ "isUnique": false,
1916
+ "where": "strpos(\"log_changes\".\"payload\", '\"signIn\":{') > 0",
1917
+ "concurrently": false,
1918
+ "method": "btree",
1919
+ "with": {}
1920
+ },
1921
+ "log_changes_sign_in_actor_idx": {
1922
+ "name": "log_changes_sign_in_actor_idx",
1923
+ "columns": [
1924
+ {
1925
+ "expression": "actor",
1926
+ "isExpression": false,
1927
+ "asc": true,
1928
+ "nulls": "last"
1929
+ },
1930
+ {
1931
+ "expression": "at",
1932
+ "isExpression": false,
1933
+ "asc": true,
1934
+ "nulls": "last"
1935
+ },
1936
+ {
1937
+ "expression": "number",
1938
+ "isExpression": false,
1939
+ "asc": true,
1940
+ "nulls": "last"
1941
+ }
1942
+ ],
1943
+ "isUnique": false,
1944
+ "where": "strpos(\"log_changes\".\"payload\", '\"signIn\":{') > 0",
1945
+ "concurrently": false,
1946
+ "method": "btree",
1947
+ "with": {}
1948
+ },
1949
+ "log_changes_issue_revoke_idx": {
1950
+ "name": "log_changes_issue_revoke_idx",
1951
+ "columns": [
1952
+ {
1953
+ "expression": "at",
1954
+ "isExpression": false,
1955
+ "asc": true,
1956
+ "nulls": "last"
1957
+ },
1958
+ {
1959
+ "expression": "number",
1960
+ "isExpression": false,
1961
+ "asc": true,
1962
+ "nulls": "last"
1963
+ }
1964
+ ],
1965
+ "isUnique": false,
1966
+ "where": "((strpos(\"log_changes\".\"payload\", '{\"caller\":\"') = 1 AND strpos(\"log_changes\".\"payload\", '\"issue\":{\"by\":\"') > 0) OR (strpos(\"log_changes\".\"payload\", '{\"op\":\"credential.revoke\",') = 1 AND strpos(\"log_changes\".\"payload\", '\"reason\":\"revoke\"') > 0) OR (strpos(\"log_changes\".\"payload\", '{\"op\":\"credential.revoke\",') = 1 AND strpos(\"log_changes\".\"payload\", '\"reason\":\"sign_out\"') > 0))",
1967
+ "concurrently": false,
1968
+ "method": "btree",
1969
+ "with": {}
1970
+ },
1971
+ "log_changes_issue_revoke_actor_idx": {
1972
+ "name": "log_changes_issue_revoke_actor_idx",
1973
+ "columns": [
1974
+ {
1975
+ "expression": "actor",
1976
+ "isExpression": false,
1977
+ "asc": true,
1978
+ "nulls": "last"
1979
+ },
1980
+ {
1981
+ "expression": "at",
1982
+ "isExpression": false,
1983
+ "asc": true,
1984
+ "nulls": "last"
1985
+ },
1986
+ {
1987
+ "expression": "number",
1988
+ "isExpression": false,
1989
+ "asc": true,
1990
+ "nulls": "last"
1991
+ }
1992
+ ],
1993
+ "isUnique": false,
1994
+ "where": "((strpos(\"log_changes\".\"payload\", '{\"caller\":\"') = 1 AND strpos(\"log_changes\".\"payload\", '\"issue\":{\"by\":\"') > 0) OR (strpos(\"log_changes\".\"payload\", '{\"op\":\"credential.revoke\",') = 1 AND strpos(\"log_changes\".\"payload\", '\"reason\":\"revoke\"') > 0) OR (strpos(\"log_changes\".\"payload\", '{\"op\":\"credential.revoke\",') = 1 AND strpos(\"log_changes\".\"payload\", '\"reason\":\"sign_out\"') > 0))",
1995
+ "concurrently": false,
1996
+ "method": "btree",
1997
+ "with": {}
1998
+ }
1999
+ },
2000
+ "foreignKeys": {},
2001
+ "compositePrimaryKeys": {},
2002
+ "uniqueConstraints": {
2003
+ "log_changes_request_id_key": {
2004
+ "name": "log_changes_request_id_key",
2005
+ "nullsNotDistinct": false,
2006
+ "columns": [
2007
+ "request_id"
2008
+ ]
2009
+ }
2010
+ },
2011
+ "policies": {},
2012
+ "checkConstraints": {
2013
+ "log_changes_seal_check": {
2014
+ "name": "log_changes_seal_check",
2015
+ "value": "\"log_changes\".\"seal\" IS NULL OR octet_length(\"log_changes\".\"seal\") = 16"
2016
+ },
2017
+ "log_changes_mac_check": {
2018
+ "name": "log_changes_mac_check",
2019
+ "value": "octet_length(\"log_changes\".\"mac\") = 16"
2020
+ }
2021
+ },
2022
+ "isRLSEnabled": false
2023
+ },
2024
+ "public.log_checkpoints": {
2025
+ "name": "log_checkpoints",
2026
+ "schema": "",
2027
+ "columns": {
2028
+ "upto": {
2029
+ "name": "upto",
2030
+ "type": "bigint",
2031
+ "primaryKey": true,
2032
+ "notNull": true
2033
+ },
2034
+ "at": {
2035
+ "name": "at",
2036
+ "type": "bigint",
2037
+ "primaryKey": false,
2038
+ "notNull": true
2039
+ },
2040
+ "at_floor": {
2041
+ "name": "at_floor",
2042
+ "type": "bigint",
2043
+ "primaryKey": false,
2044
+ "notNull": true
2045
+ },
2046
+ "changes_size": {
2047
+ "name": "changes_size",
2048
+ "type": "bigint",
2049
+ "primaryKey": false,
2050
+ "notNull": true
2051
+ },
2052
+ "changes_root": {
2053
+ "name": "changes_root",
2054
+ "type": "bytea",
2055
+ "primaryKey": false,
2056
+ "notNull": true
2057
+ },
2058
+ "changes_note": {
2059
+ "name": "changes_note",
2060
+ "type": "text",
2061
+ "primaryKey": false,
2062
+ "notNull": true
2063
+ },
2064
+ "uses_size": {
2065
+ "name": "uses_size",
2066
+ "type": "bigint",
2067
+ "primaryKey": false,
2068
+ "notNull": true
2069
+ },
2070
+ "uses_root": {
2071
+ "name": "uses_root",
2072
+ "type": "bytea",
2073
+ "primaryKey": false,
2074
+ "notNull": true
2075
+ },
2076
+ "uses_note": {
2077
+ "name": "uses_note",
2078
+ "type": "text",
2079
+ "primaryKey": false,
2080
+ "notNull": true
2081
+ }
2082
+ },
2083
+ "indexes": {
2084
+ "log_checkpoints_floor_idx": {
2085
+ "name": "log_checkpoints_floor_idx",
2086
+ "columns": [
2087
+ {
2088
+ "expression": "at_floor",
2089
+ "isExpression": false,
2090
+ "asc": true,
2091
+ "nulls": "last"
2092
+ },
2093
+ {
2094
+ "expression": "upto",
2095
+ "isExpression": false,
2096
+ "asc": true,
2097
+ "nulls": "last"
2098
+ }
2099
+ ],
2100
+ "isUnique": false,
2101
+ "concurrently": false,
2102
+ "method": "btree",
2103
+ "with": {}
2104
+ }
2105
+ },
2106
+ "foreignKeys": {},
2107
+ "compositePrimaryKeys": {},
2108
+ "uniqueConstraints": {},
2109
+ "policies": {},
2110
+ "checkConstraints": {
2111
+ "log_checkpoints_changes_root_check": {
2112
+ "name": "log_checkpoints_changes_root_check",
2113
+ "value": "octet_length(\"log_checkpoints\".\"changes_root\") = 32"
2114
+ },
2115
+ "log_checkpoints_uses_root_check": {
2116
+ "name": "log_checkpoints_uses_root_check",
2117
+ "value": "octet_length(\"log_checkpoints\".\"uses_root\") = 32"
2118
+ }
2119
+ },
2120
+ "isRLSEnabled": false
2121
+ },
2122
+ "public.log_config": {
2123
+ "name": "log_config",
2124
+ "schema": "",
2125
+ "columns": {
2126
+ "name": {
2127
+ "name": "name",
2128
+ "type": "text",
2129
+ "primaryKey": true,
2130
+ "notNull": true
2131
+ },
2132
+ "value": {
2133
+ "name": "value",
2134
+ "type": "text",
2135
+ "primaryKey": false,
2136
+ "notNull": true
2137
+ },
2138
+ "seal": {
2139
+ "name": "seal",
2140
+ "type": "bytea",
2141
+ "primaryKey": false,
2142
+ "notNull": false
2143
+ }
2144
+ },
2145
+ "indexes": {},
2146
+ "foreignKeys": {},
2147
+ "compositePrimaryKeys": {},
2148
+ "uniqueConstraints": {},
2149
+ "policies": {},
2150
+ "checkConstraints": {
2151
+ "log_config_name_check": {
2152
+ "name": "log_config_name_check",
2153
+ "value": "\"log_config\".\"name\" IN ('policy', 'roles')"
2154
+ },
2155
+ "log_config_value_check": {
2156
+ "name": "log_config_value_check",
2157
+ "value": "\"log_config\".\"value\"::jsonb IS NOT NULL"
2158
+ },
2159
+ "log_config_seal_check": {
2160
+ "name": "log_config_seal_check",
2161
+ "value": "\"log_config\".\"seal\" IS NULL OR octet_length(\"log_config\".\"seal\") = 16"
2162
+ }
2163
+ },
2164
+ "isRLSEnabled": false
2165
+ },
2166
+ "public.log_fence": {
2167
+ "name": "log_fence",
2168
+ "schema": "",
2169
+ "columns": {
2170
+ "only_row": {
2171
+ "name": "only_row",
2172
+ "type": "boolean",
2173
+ "primaryKey": true,
2174
+ "notNull": true,
2175
+ "default": true
2176
+ },
2177
+ "at_floor": {
2178
+ "name": "at_floor",
2179
+ "type": "bigint",
2180
+ "primaryKey": false,
2181
+ "notNull": true
2182
+ }
2183
+ },
2184
+ "indexes": {},
2185
+ "foreignKeys": {},
2186
+ "compositePrimaryKeys": {},
2187
+ "uniqueConstraints": {},
2188
+ "policies": {},
2189
+ "checkConstraints": {
2190
+ "log_fence_only_row_check": {
2191
+ "name": "log_fence_only_row_check",
2192
+ "value": "\"log_fence\".\"only_row\""
2193
+ }
2194
+ },
2195
+ "isRLSEnabled": false
2196
+ },
2197
+ "public.log_tiles": {
2198
+ "name": "log_tiles",
2199
+ "schema": "",
2200
+ "columns": {
2201
+ "tree": {
2202
+ "name": "tree",
2203
+ "type": "text",
2204
+ "primaryKey": false,
2205
+ "notNull": true
2206
+ },
2207
+ "level": {
2208
+ "name": "level",
2209
+ "type": "smallint",
2210
+ "primaryKey": false,
2211
+ "notNull": true
2212
+ },
2213
+ "leaf": {
2214
+ "name": "leaf",
2215
+ "type": "bigint",
2216
+ "primaryKey": false,
2217
+ "notNull": true
2218
+ },
2219
+ "hashes": {
2220
+ "name": "hashes",
2221
+ "type": "bytea",
2222
+ "primaryKey": false,
2223
+ "notNull": true
2224
+ }
2225
+ },
2226
+ "indexes": {},
2227
+ "foreignKeys": {},
2228
+ "compositePrimaryKeys": {
2229
+ "log_tiles_pkey": {
2230
+ "name": "log_tiles_pkey",
2231
+ "columns": [
2232
+ "tree",
2233
+ "level",
2234
+ "leaf"
2235
+ ]
2236
+ }
2237
+ },
2238
+ "uniqueConstraints": {},
2239
+ "policies": {},
2240
+ "checkConstraints": {
2241
+ "log_tiles_tree_check": {
2242
+ "name": "log_tiles_tree_check",
2243
+ "value": "\"log_tiles\".\"tree\" IN ('changes', 'uses')"
2244
+ },
2245
+ "log_tiles_level_check": {
2246
+ "name": "log_tiles_level_check",
2247
+ "value": "\"log_tiles\".\"level\" BETWEEN 0 AND 7"
2248
+ },
2249
+ "log_tiles_leaf_check": {
2250
+ "name": "log_tiles_leaf_check",
2251
+ "value": "\"log_tiles\".\"leaf\" >= 0 AND \"log_tiles\".\"leaf\" % (256::numeric ^ (\"log_tiles\".\"level\" + 1)) = 0"
2252
+ },
2253
+ "log_tiles_hashes_check": {
2254
+ "name": "log_tiles_hashes_check",
2255
+ "value": "octet_length(\"log_tiles\".\"hashes\") BETWEEN 32 AND 8192 AND octet_length(\"log_tiles\".\"hashes\") % 32 = 0"
2256
+ }
2257
+ },
2258
+ "isRLSEnabled": false
2259
+ },
2260
+ "public.log_uses": {
2261
+ "name": "log_uses",
2262
+ "schema": "",
2263
+ "columns": {
2264
+ "number": {
2265
+ "name": "number",
2266
+ "type": "bigint",
2267
+ "primaryKey": false,
2268
+ "notNull": true
2269
+ },
2270
+ "at": {
2271
+ "name": "at",
2272
+ "type": "bigint",
2273
+ "primaryKey": false,
2274
+ "notNull": true
2275
+ },
2276
+ "request_id": {
2277
+ "name": "request_id",
2278
+ "type": "bigint",
2279
+ "primaryKey": false,
2280
+ "notNull": true
2281
+ },
2282
+ "credential": {
2283
+ "name": "credential",
2284
+ "type": "uuid",
2285
+ "primaryKey": false,
2286
+ "notNull": true
2287
+ },
2288
+ "secret": {
2289
+ "name": "secret",
2290
+ "type": "uuid",
2291
+ "primaryKey": false,
2292
+ "notNull": true
2293
+ },
2294
+ "purpose": {
2295
+ "name": "purpose",
2296
+ "type": "smallint",
2297
+ "primaryKey": false,
2298
+ "notNull": true
2299
+ },
2300
+ "mac": {
2301
+ "name": "mac",
2302
+ "type": "bytea",
2303
+ "primaryKey": false,
2304
+ "notNull": true
2305
+ },
2306
+ "place": {
2307
+ "name": "place",
2308
+ "type": "uuid",
2309
+ "primaryKey": false,
2310
+ "notNull": false
2311
+ }
2312
+ },
2313
+ "indexes": {
2314
+ "log_uses_request_idx": {
2315
+ "name": "log_uses_request_idx",
2316
+ "columns": [
2317
+ {
2318
+ "expression": "at",
2319
+ "isExpression": false,
2320
+ "asc": true,
2321
+ "nulls": "last"
2322
+ },
2323
+ {
2324
+ "expression": "request_id",
2325
+ "isExpression": false,
2326
+ "asc": true,
2327
+ "nulls": "last"
2328
+ }
2329
+ ],
2330
+ "isUnique": true,
2331
+ "concurrently": false,
2332
+ "method": "btree",
2333
+ "with": {}
2334
+ }
2335
+ },
2336
+ "foreignKeys": {},
2337
+ "compositePrimaryKeys": {},
2338
+ "uniqueConstraints": {},
2339
+ "policies": {},
2340
+ "checkConstraints": {
2341
+ "log_uses_mac_check": {
2342
+ "name": "log_uses_mac_check",
2343
+ "value": "octet_length(\"log_uses\".\"mac\") = 16"
2344
+ }
2345
+ },
2346
+ "isRLSEnabled": false
2347
+ },
2348
+ "public.mcp_approvals": {
2349
+ "name": "mcp_approvals",
2350
+ "schema": "",
2351
+ "columns": {
2352
+ "id": {
2353
+ "name": "id",
2354
+ "type": "uuid",
2355
+ "primaryKey": true,
2356
+ "notNull": true
2357
+ },
2358
+ "connection_id": {
2359
+ "name": "connection_id",
2360
+ "type": "uuid",
2361
+ "primaryKey": false,
2362
+ "notNull": true
2363
+ },
2364
+ "tool": {
2365
+ "name": "tool",
2366
+ "type": "text",
2367
+ "primaryKey": false,
2368
+ "notNull": true
2369
+ },
2370
+ "arguments": {
2371
+ "name": "arguments",
2372
+ "type": "text",
2373
+ "primaryKey": false,
2374
+ "notNull": true
2375
+ },
2376
+ "digest": {
2377
+ "name": "digest",
2378
+ "type": "bytea",
2379
+ "primaryKey": false,
2380
+ "notNull": true
2381
+ },
2382
+ "status": {
2383
+ "name": "status",
2384
+ "type": "text",
2385
+ "primaryKey": false,
2386
+ "notNull": true,
2387
+ "default": "'pending'"
2388
+ },
2389
+ "outcome": {
2390
+ "name": "outcome",
2391
+ "type": "text",
2392
+ "primaryKey": false,
2393
+ "notNull": false
2394
+ },
2395
+ "created_at": {
2396
+ "name": "created_at",
2397
+ "type": "timestamp with time zone",
2398
+ "primaryKey": false,
2399
+ "notNull": true,
2400
+ "default": "now()"
2401
+ },
2402
+ "expires_at": {
2403
+ "name": "expires_at",
2404
+ "type": "timestamp with time zone",
2405
+ "primaryKey": false,
2406
+ "notNull": true
2407
+ },
2408
+ "decided_at": {
2409
+ "name": "decided_at",
2410
+ "type": "timestamp with time zone",
2411
+ "primaryKey": false,
2412
+ "notNull": false
2413
+ },
2414
+ "reported_at": {
2415
+ "name": "reported_at",
2416
+ "type": "timestamp with time zone",
2417
+ "primaryKey": false,
2418
+ "notNull": false
2419
+ }
2420
+ },
2421
+ "indexes": {
2422
+ "mcp_approvals_open_idx": {
2423
+ "name": "mcp_approvals_open_idx",
2424
+ "columns": [
2425
+ {
2426
+ "expression": "connection_id",
2427
+ "isExpression": false,
2428
+ "asc": true,
2429
+ "nulls": "last"
2430
+ },
2431
+ {
2432
+ "expression": "digest",
2433
+ "isExpression": false,
2434
+ "asc": true,
2435
+ "nulls": "last"
2436
+ }
2437
+ ],
2438
+ "isUnique": false,
2439
+ "where": "\"mcp_approvals\".\"reported_at\" IS NULL",
2440
+ "concurrently": false,
2441
+ "method": "btree",
2442
+ "with": {}
2443
+ }
2444
+ },
2445
+ "foreignKeys": {
2446
+ "mcp_approvals_connection_fkey": {
2447
+ "name": "mcp_approvals_connection_fkey",
2448
+ "tableFrom": "mcp_approvals",
2449
+ "tableTo": "mcp_connections",
2450
+ "columnsFrom": [
2451
+ "connection_id"
2452
+ ],
2453
+ "columnsTo": [
2454
+ "id"
2455
+ ],
2456
+ "onDelete": "restrict",
2457
+ "onUpdate": "no action"
2458
+ }
2459
+ },
2460
+ "compositePrimaryKeys": {},
2461
+ "uniqueConstraints": {},
2462
+ "policies": {},
2463
+ "checkConstraints": {
2464
+ "mcp_approvals_status_check": {
2465
+ "name": "mcp_approvals_status_check",
2466
+ "value": "\"mcp_approvals\".\"status\" IN ('pending', 'approved', 'denied', 'cancelled', 'failed')"
2467
+ },
2468
+ "mcp_approvals_digest_check": {
2469
+ "name": "mcp_approvals_digest_check",
2470
+ "value": "octet_length(\"mcp_approvals\".\"digest\") = 32"
2471
+ },
2472
+ "mcp_approvals_arguments_check": {
2473
+ "name": "mcp_approvals_arguments_check",
2474
+ "value": "\"mcp_approvals\".\"arguments\"::jsonb IS NOT NULL"
2475
+ }
2476
+ },
2477
+ "isRLSEnabled": false
2478
+ },
2479
+ "public.mcp_connections": {
2480
+ "name": "mcp_connections",
2481
+ "schema": "",
2482
+ "columns": {
2483
+ "id": {
2484
+ "name": "id",
2485
+ "type": "uuid",
2486
+ "primaryKey": true,
2487
+ "notNull": true
2488
+ },
2489
+ "auth_mac": {
2490
+ "name": "auth_mac",
2491
+ "type": "bytea",
2492
+ "primaryKey": false,
2493
+ "notNull": true
2494
+ },
2495
+ "principal": {
2496
+ "name": "principal",
2497
+ "type": "text",
2498
+ "primaryKey": false,
2499
+ "notNull": true
2500
+ },
2501
+ "generation": {
2502
+ "name": "generation",
2503
+ "type": "integer",
2504
+ "primaryKey": false,
2505
+ "notNull": true
2506
+ },
2507
+ "client_id": {
2508
+ "name": "client_id",
2509
+ "type": "text",
2510
+ "primaryKey": false,
2511
+ "notNull": true
2512
+ },
2513
+ "client_name": {
2514
+ "name": "client_name",
2515
+ "type": "text",
2516
+ "primaryKey": false,
2517
+ "notNull": true
2518
+ },
2519
+ "client_host": {
2520
+ "name": "client_host",
2521
+ "type": "text",
2522
+ "primaryKey": false,
2523
+ "notNull": false
2524
+ },
2525
+ "registration": {
2526
+ "name": "registration",
2527
+ "type": "text",
2528
+ "primaryKey": false,
2529
+ "notNull": true
2530
+ },
2531
+ "scopes": {
2532
+ "name": "scopes",
2533
+ "type": "text",
2534
+ "primaryKey": false,
2535
+ "notNull": true
2536
+ },
2537
+ "redirect_uri": {
2538
+ "name": "redirect_uri",
2539
+ "type": "text",
2540
+ "primaryKey": false,
2541
+ "notNull": true
2542
+ },
2543
+ "code_hash": {
2544
+ "name": "code_hash",
2545
+ "type": "bytea",
2546
+ "primaryKey": false,
2547
+ "notNull": false
2548
+ },
2549
+ "code_challenge": {
2550
+ "name": "code_challenge",
2551
+ "type": "text",
2552
+ "primaryKey": false,
2553
+ "notNull": false
2554
+ },
2555
+ "code_expires_at": {
2556
+ "name": "code_expires_at",
2557
+ "type": "timestamp with time zone",
2558
+ "primaryKey": false,
2559
+ "notNull": false
2560
+ },
2561
+ "refresh_hash": {
2562
+ "name": "refresh_hash",
2563
+ "type": "bytea",
2564
+ "primaryKey": false,
2565
+ "notNull": false
2566
+ },
2567
+ "refresh_previous_hash": {
2568
+ "name": "refresh_previous_hash",
2569
+ "type": "bytea",
2570
+ "primaryKey": false,
2571
+ "notNull": false
2572
+ },
2573
+ "expires_at": {
2574
+ "name": "expires_at",
2575
+ "type": "timestamp with time zone",
2576
+ "primaryKey": false,
2577
+ "notNull": true
2578
+ },
2579
+ "created_at": {
2580
+ "name": "created_at",
2581
+ "type": "timestamp with time zone",
2582
+ "primaryKey": false,
2583
+ "notNull": true,
2584
+ "default": "now()"
2585
+ },
2586
+ "last_used_at": {
2587
+ "name": "last_used_at",
2588
+ "type": "timestamp with time zone",
2589
+ "primaryKey": false,
2590
+ "notNull": false
2591
+ },
2592
+ "last_used_ip": {
2593
+ "name": "last_used_ip",
2594
+ "type": "text",
2595
+ "primaryKey": false,
2596
+ "notNull": false
2597
+ },
2598
+ "revoked_at": {
2599
+ "name": "revoked_at",
2600
+ "type": "timestamp with time zone",
2601
+ "primaryKey": false,
2602
+ "notNull": false
2603
+ },
2604
+ "revoked_by": {
2605
+ "name": "revoked_by",
2606
+ "type": "text",
2607
+ "primaryKey": false,
2608
+ "notNull": false
2609
+ },
2610
+ "seal": {
2611
+ "name": "seal",
2612
+ "type": "bytea",
2613
+ "primaryKey": false,
2614
+ "notNull": false
2615
+ }
2616
+ },
2617
+ "indexes": {
2618
+ "mcp_connections_refresh_previous_idx": {
2619
+ "name": "mcp_connections_refresh_previous_idx",
2620
+ "columns": [
2621
+ {
2622
+ "expression": "refresh_previous_hash",
2623
+ "isExpression": false,
2624
+ "asc": true,
2625
+ "nulls": "last"
2626
+ }
2627
+ ],
2628
+ "isUnique": false,
2629
+ "concurrently": false,
2630
+ "method": "btree",
2631
+ "with": {}
2632
+ },
2633
+ "mcp_connections_live_idx": {
2634
+ "name": "mcp_connections_live_idx",
2635
+ "columns": [
2636
+ {
2637
+ "expression": "principal",
2638
+ "isExpression": false,
2639
+ "asc": true,
2640
+ "nulls": "last"
2641
+ },
2642
+ {
2643
+ "expression": "expires_at",
2644
+ "isExpression": false,
2645
+ "asc": true,
2646
+ "nulls": "last"
2647
+ }
2648
+ ],
2649
+ "isUnique": false,
2650
+ "where": "\"mcp_connections\".\"revoked_at\" IS NULL",
2651
+ "concurrently": false,
2652
+ "method": "btree",
2653
+ "with": {}
2654
+ }
2655
+ },
2656
+ "foreignKeys": {
2657
+ "mcp_connections_principal_fkey": {
2658
+ "name": "mcp_connections_principal_fkey",
2659
+ "tableFrom": "mcp_connections",
2660
+ "tableTo": "vault_members",
2661
+ "columnsFrom": [
2662
+ "principal"
2663
+ ],
2664
+ "columnsTo": [
2665
+ "principal"
2666
+ ],
2667
+ "onDelete": "restrict",
2668
+ "onUpdate": "no action"
2669
+ }
2670
+ },
2671
+ "compositePrimaryKeys": {},
2672
+ "uniqueConstraints": {
2673
+ "mcp_connections_code_hash_key": {
2674
+ "name": "mcp_connections_code_hash_key",
2675
+ "nullsNotDistinct": false,
2676
+ "columns": [
2677
+ "code_hash"
2678
+ ]
2679
+ },
2680
+ "mcp_connections_refresh_hash_key": {
2681
+ "name": "mcp_connections_refresh_hash_key",
2682
+ "nullsNotDistinct": false,
2683
+ "columns": [
2684
+ "refresh_hash"
2685
+ ]
2686
+ }
2687
+ },
2688
+ "policies": {},
2689
+ "checkConstraints": {
2690
+ "mcp_connections_seal_check": {
2691
+ "name": "mcp_connections_seal_check",
2692
+ "value": "\"mcp_connections\".\"seal\" IS NULL OR octet_length(\"mcp_connections\".\"seal\") = 16"
2693
+ },
2694
+ "mcp_connections_principal_check": {
2695
+ "name": "mcp_connections_principal_check",
2696
+ "value": "\"mcp_connections\".\"principal\" LIKE 'user:%'"
2697
+ },
2698
+ "mcp_connections_registration_check": {
2699
+ "name": "mcp_connections_registration_check",
2700
+ "value": "\"mcp_connections\".\"registration\" IN ('cimd', 'dcr')"
2701
+ },
2702
+ "mcp_connections_auth_mac_check": {
2703
+ "name": "mcp_connections_auth_mac_check",
2704
+ "value": "octet_length(\"mcp_connections\".\"auth_mac\") = 32"
2705
+ },
2706
+ "mcp_connections_code_hash_check": {
2707
+ "name": "mcp_connections_code_hash_check",
2708
+ "value": "\"mcp_connections\".\"code_hash\" IS NULL OR octet_length(\"mcp_connections\".\"code_hash\") = 32"
2709
+ },
2710
+ "mcp_connections_refresh_hash_check": {
2711
+ "name": "mcp_connections_refresh_hash_check",
2712
+ "value": "\"mcp_connections\".\"refresh_hash\" IS NULL OR octet_length(\"mcp_connections\".\"refresh_hash\") = 32"
2713
+ }
2714
+ },
2715
+ "isRLSEnabled": false
2716
+ },
2717
+ "public.oauth_clients": {
2718
+ "name": "oauth_clients",
2719
+ "schema": "",
2720
+ "columns": {
2721
+ "id": {
2722
+ "name": "id",
2723
+ "type": "uuid",
2724
+ "primaryKey": true,
2725
+ "notNull": true
2726
+ },
2727
+ "auth_mac": {
2728
+ "name": "auth_mac",
2729
+ "type": "bytea",
2730
+ "primaryKey": false,
2731
+ "notNull": true
2732
+ },
2733
+ "name": {
2734
+ "name": "name",
2735
+ "type": "text",
2736
+ "primaryKey": false,
2737
+ "notNull": true
2738
+ },
2739
+ "redirect_uris": {
2740
+ "name": "redirect_uris",
2741
+ "type": "text",
2742
+ "primaryKey": false,
2743
+ "notNull": true
2744
+ },
2745
+ "created_at": {
2746
+ "name": "created_at",
2747
+ "type": "timestamp with time zone",
2748
+ "primaryKey": false,
2749
+ "notNull": true,
2750
+ "default": "now()"
2751
+ },
2752
+ "created_ip": {
2753
+ "name": "created_ip",
2754
+ "type": "text",
2755
+ "primaryKey": false,
2756
+ "notNull": false
2757
+ },
2758
+ "revoked_at": {
2759
+ "name": "revoked_at",
2760
+ "type": "timestamp with time zone",
2761
+ "primaryKey": false,
2762
+ "notNull": false
2763
+ }
2764
+ },
2765
+ "indexes": {},
2766
+ "foreignKeys": {},
2767
+ "compositePrimaryKeys": {},
2768
+ "uniqueConstraints": {},
2769
+ "policies": {},
2770
+ "checkConstraints": {
2771
+ "oauth_clients_auth_mac_check": {
2772
+ "name": "oauth_clients_auth_mac_check",
2773
+ "value": "octet_length(\"oauth_clients\".\"auth_mac\") = 32"
2774
+ },
2775
+ "oauth_clients_redirect_uris_check": {
2776
+ "name": "oauth_clients_redirect_uris_check",
2777
+ "value": "\"oauth_clients\".\"redirect_uris\"::jsonb IS NOT NULL"
2778
+ }
2779
+ },
2780
+ "isRLSEnabled": false
2781
+ },
2782
+ "public.projects": {
2783
+ "name": "projects",
2784
+ "schema": "",
2785
+ "columns": {
2786
+ "id": {
2787
+ "name": "id",
2788
+ "type": "uuid",
2789
+ "primaryKey": true,
2790
+ "notNull": true,
2791
+ "default": "gen_random_uuid()"
2792
+ },
2793
+ "slug": {
2794
+ "name": "slug",
2795
+ "type": "text",
2796
+ "primaryKey": false,
2797
+ "notNull": true
2798
+ },
2799
+ "name": {
2800
+ "name": "name",
2801
+ "type": "text",
2802
+ "primaryKey": false,
2803
+ "notNull": true
2804
+ },
2805
+ "created_at": {
2806
+ "name": "created_at",
2807
+ "type": "timestamp with time zone",
2808
+ "primaryKey": false,
2809
+ "notNull": true,
2810
+ "default": "now()"
2811
+ },
2812
+ "archived_at": {
2813
+ "name": "archived_at",
2814
+ "type": "timestamp with time zone",
2815
+ "primaryKey": false,
2816
+ "notNull": false
2817
+ },
2818
+ "folder": {
2819
+ "name": "folder",
2820
+ "type": "text",
2821
+ "primaryKey": false,
2822
+ "notNull": false
2823
+ }
2824
+ },
2825
+ "indexes": {},
2826
+ "foreignKeys": {},
2827
+ "compositePrimaryKeys": {},
2828
+ "uniqueConstraints": {
2829
+ "projects_slug_key": {
2830
+ "name": "projects_slug_key",
2831
+ "nullsNotDistinct": false,
2832
+ "columns": [
2833
+ "slug"
2834
+ ]
2835
+ }
2836
+ },
2837
+ "policies": {},
2838
+ "checkConstraints": {
2839
+ "projects_slug_check": {
2840
+ "name": "projects_slug_check",
2841
+ "value": "\"projects\".\"slug\" ~ '^[a-z0-9][a-z0-9-]{0,62}(~[a-z0-9-]{1,40})?$'"
2842
+ },
2843
+ "projects_folder_check": {
2844
+ "name": "projects_folder_check",
2845
+ "value": "\"projects\".\"folder\" IS NULL OR (char_length(\"projects\".\"folder\") BETWEEN 1 AND 64 AND \"projects\".\"folder\" !~ '[/[:cntrl:]]' AND \"projects\".\"folder\" = btrim(\"projects\".\"folder\"))"
2846
+ }
2847
+ },
2848
+ "isRLSEnabled": false
2849
+ },
2850
+ "public.secret_references": {
2851
+ "name": "secret_references",
2852
+ "schema": "",
2853
+ "columns": {
2854
+ "id": {
2855
+ "name": "id",
2856
+ "type": "uuid",
2857
+ "primaryKey": true,
2858
+ "notNull": true
2859
+ },
2860
+ "project_id": {
2861
+ "name": "project_id",
2862
+ "type": "uuid",
2863
+ "primaryKey": false,
2864
+ "notNull": true
2865
+ },
2866
+ "environment_id": {
2867
+ "name": "environment_id",
2868
+ "type": "uuid",
2869
+ "primaryKey": false,
2870
+ "notNull": true
2871
+ },
2872
+ "secret_id": {
2873
+ "name": "secret_id",
2874
+ "type": "uuid",
2875
+ "primaryKey": false,
2876
+ "notNull": true
2877
+ },
2878
+ "source_project_id": {
2879
+ "name": "source_project_id",
2880
+ "type": "uuid",
2881
+ "primaryKey": false,
2882
+ "notNull": true
2883
+ },
2884
+ "source_environment_id": {
2885
+ "name": "source_environment_id",
2886
+ "type": "uuid",
2887
+ "primaryKey": false,
2888
+ "notNull": true
2889
+ },
2890
+ "source_secret_id": {
2891
+ "name": "source_secret_id",
2892
+ "type": "uuid",
2893
+ "primaryKey": false,
2894
+ "notNull": true
2895
+ },
2896
+ "created_seq": {
2897
+ "name": "created_seq",
2898
+ "type": "bigint",
2899
+ "primaryKey": false,
2900
+ "notNull": true
2901
+ },
2902
+ "created_at": {
2903
+ "name": "created_at",
2904
+ "type": "timestamp with time zone",
2905
+ "primaryKey": false,
2906
+ "notNull": true,
2907
+ "default": "now()"
2908
+ },
2909
+ "created_by": {
2910
+ "name": "created_by",
2911
+ "type": "text",
2912
+ "primaryKey": false,
2913
+ "notNull": true
2914
+ },
2915
+ "ended_at": {
2916
+ "name": "ended_at",
2917
+ "type": "timestamp with time zone",
2918
+ "primaryKey": false,
2919
+ "notNull": false
2920
+ }
2921
+ },
2922
+ "indexes": {
2923
+ "secret_references_holder_idx": {
2924
+ "name": "secret_references_holder_idx",
2925
+ "columns": [
2926
+ {
2927
+ "expression": "secret_id",
2928
+ "isExpression": false,
2929
+ "asc": true,
2930
+ "nulls": "last"
2931
+ },
2932
+ {
2933
+ "expression": "created_seq",
2934
+ "isExpression": false,
2935
+ "asc": true,
2936
+ "nulls": "last"
2937
+ }
2938
+ ],
2939
+ "isUnique": false,
2940
+ "concurrently": false,
2941
+ "method": "btree",
2942
+ "with": {}
2943
+ },
2944
+ "secret_references_source_idx": {
2945
+ "name": "secret_references_source_idx",
2946
+ "columns": [
2947
+ {
2948
+ "expression": "source_secret_id",
2949
+ "isExpression": false,
2950
+ "asc": true,
2951
+ "nulls": "last"
2952
+ }
2953
+ ],
2954
+ "isUnique": false,
2955
+ "concurrently": false,
2956
+ "method": "btree",
2957
+ "with": {}
2958
+ },
2959
+ "secret_references_project_idx": {
2960
+ "name": "secret_references_project_idx",
2961
+ "columns": [
2962
+ {
2963
+ "expression": "project_id",
2964
+ "isExpression": false,
2965
+ "asc": true,
2966
+ "nulls": "last"
2967
+ }
2968
+ ],
2969
+ "isUnique": false,
2970
+ "concurrently": false,
2971
+ "method": "btree",
2972
+ "with": {}
2973
+ },
2974
+ "secret_references_source_project_idx": {
2975
+ "name": "secret_references_source_project_idx",
2976
+ "columns": [
2977
+ {
2978
+ "expression": "source_project_id",
2979
+ "isExpression": false,
2980
+ "asc": true,
2981
+ "nulls": "last"
2982
+ }
2983
+ ],
2984
+ "isUnique": false,
2985
+ "concurrently": false,
2986
+ "method": "btree",
2987
+ "with": {}
2988
+ },
2989
+ "secret_references_created_by_idx": {
2990
+ "name": "secret_references_created_by_idx",
2991
+ "columns": [
2992
+ {
2993
+ "expression": "created_by",
2994
+ "isExpression": false,
2995
+ "asc": true,
2996
+ "nulls": "last"
2997
+ }
2998
+ ],
2999
+ "isUnique": false,
3000
+ "concurrently": false,
3001
+ "method": "btree",
3002
+ "with": {}
3003
+ }
3004
+ },
3005
+ "foreignKeys": {
3006
+ "secret_references_secret_id_fkey": {
3007
+ "name": "secret_references_secret_id_fkey",
3008
+ "tableFrom": "secret_references",
3009
+ "tableTo": "secrets",
3010
+ "columnsFrom": [
3011
+ "secret_id"
3012
+ ],
3013
+ "columnsTo": [
3014
+ "id"
3015
+ ],
3016
+ "onDelete": "restrict",
3017
+ "onUpdate": "no action"
3018
+ },
3019
+ "secret_references_source_secret_id_fkey": {
3020
+ "name": "secret_references_source_secret_id_fkey",
3021
+ "tableFrom": "secret_references",
3022
+ "tableTo": "secrets",
3023
+ "columnsFrom": [
3024
+ "source_secret_id"
3025
+ ],
3026
+ "columnsTo": [
3027
+ "id"
3028
+ ],
3029
+ "onDelete": "restrict",
3030
+ "onUpdate": "no action"
3031
+ },
3032
+ "secret_references_created_seq_fkey": {
3033
+ "name": "secret_references_created_seq_fkey",
3034
+ "tableFrom": "secret_references",
3035
+ "tableTo": "audit_log",
3036
+ "columnsFrom": [
3037
+ "created_seq"
3038
+ ],
3039
+ "columnsTo": [
3040
+ "seq"
3041
+ ],
3042
+ "onDelete": "restrict",
3043
+ "onUpdate": "no action"
3044
+ }
3045
+ },
3046
+ "compositePrimaryKeys": {},
3047
+ "uniqueConstraints": {
3048
+ "secret_references_created_seq_key": {
3049
+ "name": "secret_references_created_seq_key",
3050
+ "nullsNotDistinct": false,
3051
+ "columns": [
3052
+ "created_seq"
3053
+ ]
3054
+ }
3055
+ },
3056
+ "policies": {},
3057
+ "checkConstraints": {},
3058
+ "isRLSEnabled": false
3059
+ },
3060
+ "public.secret_versions": {
3061
+ "name": "secret_versions",
3062
+ "schema": "",
3063
+ "columns": {
3064
+ "id": {
3065
+ "name": "id",
3066
+ "type": "uuid",
3067
+ "primaryKey": true,
3068
+ "notNull": true,
3069
+ "default": "gen_random_uuid()"
3070
+ },
3071
+ "secret_id": {
3072
+ "name": "secret_id",
3073
+ "type": "uuid",
3074
+ "primaryKey": false,
3075
+ "notNull": true
3076
+ },
3077
+ "version": {
3078
+ "name": "version",
3079
+ "type": "integer",
3080
+ "primaryKey": false,
3081
+ "notNull": true
3082
+ },
3083
+ "envelope_version": {
3084
+ "name": "envelope_version",
3085
+ "type": "integer",
3086
+ "primaryKey": false,
3087
+ "notNull": true
3088
+ },
3089
+ "ciphertext": {
3090
+ "name": "ciphertext",
3091
+ "type": "bytea",
3092
+ "primaryKey": false,
3093
+ "notNull": true
3094
+ },
3095
+ "iv": {
3096
+ "name": "iv",
3097
+ "type": "bytea",
3098
+ "primaryKey": false,
3099
+ "notNull": true
3100
+ },
3101
+ "auth_tag": {
3102
+ "name": "auth_tag",
3103
+ "type": "bytea",
3104
+ "primaryKey": false,
3105
+ "notNull": true
3106
+ },
3107
+ "wrapped_dek": {
3108
+ "name": "wrapped_dek",
3109
+ "type": "bytea",
3110
+ "primaryKey": false,
3111
+ "notNull": true
3112
+ },
3113
+ "kek_provider": {
3114
+ "name": "kek_provider",
3115
+ "type": "text",
3116
+ "primaryKey": false,
3117
+ "notNull": true
3118
+ },
3119
+ "kek_id": {
3120
+ "name": "kek_id",
3121
+ "type": "text",
3122
+ "primaryKey": false,
3123
+ "notNull": true
3124
+ },
3125
+ "kek_version": {
3126
+ "name": "kek_version",
3127
+ "type": "text",
3128
+ "primaryKey": false,
3129
+ "notNull": true
3130
+ },
3131
+ "created_at": {
3132
+ "name": "created_at",
3133
+ "type": "timestamp with time zone",
3134
+ "primaryKey": false,
3135
+ "notNull": true,
3136
+ "default": "now()"
3137
+ },
3138
+ "created_by": {
3139
+ "name": "created_by",
3140
+ "type": "text",
3141
+ "primaryKey": false,
3142
+ "notNull": true
3143
+ },
3144
+ "recipe": {
3145
+ "name": "recipe",
3146
+ "type": "text",
3147
+ "primaryKey": false,
3148
+ "notNull": false
3149
+ },
3150
+ "pair_id": {
3151
+ "name": "pair_id",
3152
+ "type": "uuid",
3153
+ "primaryKey": false,
3154
+ "notNull": false
3155
+ },
3156
+ "pair_half": {
3157
+ "name": "pair_half",
3158
+ "type": "text",
3159
+ "primaryKey": false,
3160
+ "notNull": false
3161
+ },
3162
+ "plaintext": {
3163
+ "name": "plaintext",
3164
+ "type": "text",
3165
+ "primaryKey": false,
3166
+ "notNull": false
3167
+ },
3168
+ "sensitive": {
3169
+ "name": "sensitive",
3170
+ "type": "boolean",
3171
+ "primaryKey": false,
3172
+ "notNull": true,
3173
+ "default": false
3174
+ }
3175
+ },
3176
+ "indexes": {
3177
+ "secret_versions_secret_idx": {
3178
+ "name": "secret_versions_secret_idx",
3179
+ "columns": [
3180
+ {
3181
+ "expression": "secret_id",
3182
+ "isExpression": false,
3183
+ "asc": true,
3184
+ "nulls": "last"
3185
+ },
3186
+ {
3187
+ "expression": "version",
3188
+ "isExpression": false,
3189
+ "asc": false,
3190
+ "nulls": "last"
3191
+ }
3192
+ ],
3193
+ "isUnique": false,
3194
+ "concurrently": false,
3195
+ "method": "btree",
3196
+ "with": {}
3197
+ }
3198
+ },
3199
+ "foreignKeys": {
3200
+ "secret_versions_secret_id_fkey": {
3201
+ "name": "secret_versions_secret_id_fkey",
3202
+ "tableFrom": "secret_versions",
3203
+ "tableTo": "secrets",
3204
+ "columnsFrom": [
3205
+ "secret_id"
3206
+ ],
3207
+ "columnsTo": [
3208
+ "id"
3209
+ ],
3210
+ "onDelete": "restrict",
3211
+ "onUpdate": "no action"
3212
+ }
3213
+ },
3214
+ "compositePrimaryKeys": {},
3215
+ "uniqueConstraints": {
3216
+ "secret_versions_secret_id_version_key": {
3217
+ "name": "secret_versions_secret_id_version_key",
3218
+ "nullsNotDistinct": false,
3219
+ "columns": [
3220
+ "secret_id",
3221
+ "version"
3222
+ ]
3223
+ }
3224
+ },
3225
+ "policies": {},
3226
+ "checkConstraints": {
3227
+ "secret_versions_version_check": {
3228
+ "name": "secret_versions_version_check",
3229
+ "value": "\"secret_versions\".\"version\" > 0"
3230
+ },
3231
+ "secret_versions_iv_check": {
3232
+ "name": "secret_versions_iv_check",
3233
+ "value": "octet_length(\"secret_versions\".\"iv\") = 12"
3234
+ },
3235
+ "secret_versions_auth_tag_check": {
3236
+ "name": "secret_versions_auth_tag_check",
3237
+ "value": "octet_length(\"secret_versions\".\"auth_tag\") = 16"
3238
+ }
3239
+ },
3240
+ "isRLSEnabled": false
3241
+ },
3242
+ "public.secrets": {
3243
+ "name": "secrets",
3244
+ "schema": "",
3245
+ "columns": {
3246
+ "id": {
3247
+ "name": "id",
3248
+ "type": "uuid",
3249
+ "primaryKey": true,
3250
+ "notNull": true,
3251
+ "default": "gen_random_uuid()"
3252
+ },
3253
+ "project_id": {
3254
+ "name": "project_id",
3255
+ "type": "uuid",
3256
+ "primaryKey": false,
3257
+ "notNull": true
3258
+ },
3259
+ "environment_id": {
3260
+ "name": "environment_id",
3261
+ "type": "uuid",
3262
+ "primaryKey": false,
3263
+ "notNull": true
3264
+ },
3265
+ "key": {
3266
+ "name": "key",
3267
+ "type": "text",
3268
+ "primaryKey": false,
3269
+ "notNull": true
3270
+ },
3271
+ "created_at": {
3272
+ "name": "created_at",
3273
+ "type": "timestamp with time zone",
3274
+ "primaryKey": false,
3275
+ "notNull": true,
3276
+ "default": "now()"
3277
+ },
3278
+ "updated_at": {
3279
+ "name": "updated_at",
3280
+ "type": "timestamp with time zone",
3281
+ "primaryKey": false,
3282
+ "notNull": true,
3283
+ "default": "now()"
3284
+ },
3285
+ "current_version_id": {
3286
+ "name": "current_version_id",
3287
+ "type": "uuid",
3288
+ "primaryKey": false,
3289
+ "notNull": false
3290
+ },
3291
+ "current_version": {
3292
+ "name": "current_version",
3293
+ "type": "integer",
3294
+ "primaryKey": false,
3295
+ "notNull": true,
3296
+ "default": 0
3297
+ },
3298
+ "archived_at": {
3299
+ "name": "archived_at",
3300
+ "type": "timestamp with time zone",
3301
+ "primaryKey": false,
3302
+ "notNull": false
3303
+ },
3304
+ "folder": {
3305
+ "name": "folder",
3306
+ "type": "text",
3307
+ "primaryKey": false,
3308
+ "notNull": false
3309
+ },
3310
+ "seal": {
3311
+ "name": "seal",
3312
+ "type": "bytea",
3313
+ "primaryKey": false,
3314
+ "notNull": false
3315
+ }
3316
+ },
3317
+ "indexes": {
3318
+ "secrets_lookup_idx": {
3319
+ "name": "secrets_lookup_idx",
3320
+ "columns": [
3321
+ {
3322
+ "expression": "project_id",
3323
+ "isExpression": false,
3324
+ "asc": true,
3325
+ "nulls": "last"
3326
+ },
3327
+ {
3328
+ "expression": "environment_id",
3329
+ "isExpression": false,
3330
+ "asc": true,
3331
+ "nulls": "last"
3332
+ },
3333
+ {
3334
+ "expression": "key",
3335
+ "isExpression": false,
3336
+ "asc": true,
3337
+ "nulls": "last"
3338
+ }
3339
+ ],
3340
+ "isUnique": false,
3341
+ "concurrently": false,
3342
+ "method": "btree",
3343
+ "with": {}
3344
+ },
3345
+ "secrets_live_idx": {
3346
+ "name": "secrets_live_idx",
3347
+ "columns": [
3348
+ {
3349
+ "expression": "environment_id",
3350
+ "isExpression": false,
3351
+ "asc": true,
3352
+ "nulls": "last"
3353
+ }
3354
+ ],
3355
+ "isUnique": false,
3356
+ "where": "\"secrets\".\"archived_at\" IS NULL",
3357
+ "concurrently": false,
3358
+ "method": "btree",
3359
+ "with": {}
3360
+ }
3361
+ },
3362
+ "foreignKeys": {
3363
+ "secrets_current_version_id_secret_versions_id_fk": {
3364
+ "name": "secrets_current_version_id_secret_versions_id_fk",
3365
+ "tableFrom": "secrets",
3366
+ "tableTo": "secret_versions",
3367
+ "columnsFrom": [
3368
+ "current_version_id"
3369
+ ],
3370
+ "columnsTo": [
3371
+ "id"
3372
+ ],
3373
+ "onDelete": "no action",
3374
+ "onUpdate": "no action"
3375
+ },
3376
+ "secrets_project_id_fkey": {
3377
+ "name": "secrets_project_id_fkey",
3378
+ "tableFrom": "secrets",
3379
+ "tableTo": "projects",
3380
+ "columnsFrom": [
3381
+ "project_id"
3382
+ ],
3383
+ "columnsTo": [
3384
+ "id"
3385
+ ],
3386
+ "onDelete": "restrict",
3387
+ "onUpdate": "no action"
3388
+ },
3389
+ "secrets_environment_id_fkey": {
3390
+ "name": "secrets_environment_id_fkey",
3391
+ "tableFrom": "secrets",
3392
+ "tableTo": "environments",
3393
+ "columnsFrom": [
3394
+ "environment_id"
3395
+ ],
3396
+ "columnsTo": [
3397
+ "id"
3398
+ ],
3399
+ "onDelete": "restrict",
3400
+ "onUpdate": "no action"
3401
+ },
3402
+ "secrets_environment_in_project": {
3403
+ "name": "secrets_environment_in_project",
3404
+ "tableFrom": "secrets",
3405
+ "tableTo": "environments",
3406
+ "columnsFrom": [
3407
+ "environment_id",
3408
+ "project_id"
3409
+ ],
3410
+ "columnsTo": [
3411
+ "id",
3412
+ "project_id"
3413
+ ],
3414
+ "onDelete": "no action",
3415
+ "onUpdate": "no action"
3416
+ }
3417
+ },
3418
+ "compositePrimaryKeys": {},
3419
+ "uniqueConstraints": {
3420
+ "secrets_project_id_environment_id_key_key": {
3421
+ "name": "secrets_project_id_environment_id_key_key",
3422
+ "nullsNotDistinct": false,
3423
+ "columns": [
3424
+ "project_id",
3425
+ "environment_id",
3426
+ "key"
3427
+ ]
3428
+ }
3429
+ },
3430
+ "policies": {},
3431
+ "checkConstraints": {
3432
+ "secrets_seal_check": {
3433
+ "name": "secrets_seal_check",
3434
+ "value": "\"secrets\".\"seal\" IS NULL OR octet_length(\"secrets\".\"seal\") = 16"
3435
+ },
3436
+ "secrets_key_check": {
3437
+ "name": "secrets_key_check",
3438
+ "value": "\"secrets\".\"key\" ~ '^[A-Za-z_][A-Za-z0-9_]{0,127}$'"
3439
+ },
3440
+ "secrets_folder_check": {
3441
+ "name": "secrets_folder_check",
3442
+ "value": "\"secrets\".\"folder\" IS NULL OR (char_length(\"secrets\".\"folder\") BETWEEN 1 AND 64 AND \"secrets\".\"folder\" !~ '[/[:cntrl:]]' AND \"secrets\".\"folder\" = btrim(\"secrets\".\"folder\"))"
3443
+ }
3444
+ },
3445
+ "isRLSEnabled": false
3446
+ },
3447
+ "public.service_bindings": {
3448
+ "name": "service_bindings",
3449
+ "schema": "",
3450
+ "columns": {
3451
+ "id": {
3452
+ "name": "id",
3453
+ "type": "uuid",
3454
+ "primaryKey": true,
3455
+ "notNull": true
3456
+ },
3457
+ "auth_mac": {
3458
+ "name": "auth_mac",
3459
+ "type": "bytea",
3460
+ "primaryKey": false,
3461
+ "notNull": true
3462
+ },
3463
+ "principal": {
3464
+ "name": "principal",
3465
+ "type": "text",
3466
+ "primaryKey": false,
3467
+ "notNull": true
3468
+ },
3469
+ "generation": {
3470
+ "name": "generation",
3471
+ "type": "integer",
3472
+ "primaryKey": false,
3473
+ "notNull": true
3474
+ },
3475
+ "profile": {
3476
+ "name": "profile",
3477
+ "type": "text",
3478
+ "primaryKey": false,
3479
+ "notNull": true
3480
+ },
3481
+ "issuer": {
3482
+ "name": "issuer",
3483
+ "type": "text",
3484
+ "primaryKey": false,
3485
+ "notNull": true
3486
+ },
3487
+ "jwks_uri": {
3488
+ "name": "jwks_uri",
3489
+ "type": "text",
3490
+ "primaryKey": false,
3491
+ "notNull": true
3492
+ },
3493
+ "jwks": {
3494
+ "name": "jwks",
3495
+ "type": "text",
3496
+ "primaryKey": false,
3497
+ "notNull": false
3498
+ },
3499
+ "claims": {
3500
+ "name": "claims",
3501
+ "type": "text",
3502
+ "primaryKey": false,
3503
+ "notNull": true
3504
+ },
3505
+ "scope": {
3506
+ "name": "scope",
3507
+ "type": "text",
3508
+ "primaryKey": false,
3509
+ "notNull": false
3510
+ },
3511
+ "policy": {
3512
+ "name": "policy",
3513
+ "type": "text",
3514
+ "primaryKey": false,
3515
+ "notNull": false
3516
+ },
3517
+ "origin": {
3518
+ "name": "origin",
3519
+ "type": "text",
3520
+ "primaryKey": false,
3521
+ "notNull": false
3522
+ },
3523
+ "label": {
3524
+ "name": "label",
3525
+ "type": "text",
3526
+ "primaryKey": false,
3527
+ "notNull": false
3528
+ },
3529
+ "created_at": {
3530
+ "name": "created_at",
3531
+ "type": "timestamp with time zone",
3532
+ "primaryKey": false,
3533
+ "notNull": true,
3534
+ "default": "now()"
3535
+ },
3536
+ "created_by": {
3537
+ "name": "created_by",
3538
+ "type": "text",
3539
+ "primaryKey": false,
3540
+ "notNull": true
3541
+ },
3542
+ "last_used_at": {
3543
+ "name": "last_used_at",
3544
+ "type": "timestamp with time zone",
3545
+ "primaryKey": false,
3546
+ "notNull": false
3547
+ },
3548
+ "revoked_at": {
3549
+ "name": "revoked_at",
3550
+ "type": "timestamp with time zone",
3551
+ "primaryKey": false,
3552
+ "notNull": false
3553
+ },
3554
+ "revoked_by": {
3555
+ "name": "revoked_by",
3556
+ "type": "text",
3557
+ "primaryKey": false,
3558
+ "notNull": false
3559
+ },
3560
+ "seal": {
3561
+ "name": "seal",
3562
+ "type": "bytea",
3563
+ "primaryKey": false,
3564
+ "notNull": false
3565
+ }
3566
+ },
3567
+ "indexes": {
3568
+ "service_bindings_principal_idx": {
3569
+ "name": "service_bindings_principal_idx",
3570
+ "columns": [
3571
+ {
3572
+ "expression": "principal",
3573
+ "isExpression": false,
3574
+ "asc": true,
3575
+ "nulls": "last"
3576
+ },
3577
+ {
3578
+ "expression": "issuer",
3579
+ "isExpression": false,
3580
+ "asc": true,
3581
+ "nulls": "last"
3582
+ }
3583
+ ],
3584
+ "isUnique": false,
3585
+ "concurrently": false,
3586
+ "method": "btree",
3587
+ "with": {}
3588
+ },
3589
+ "service_bindings_live_idx": {
3590
+ "name": "service_bindings_live_idx",
3591
+ "columns": [
3592
+ {
3593
+ "expression": "principal",
3594
+ "isExpression": false,
3595
+ "asc": true,
3596
+ "nulls": "last"
3597
+ },
3598
+ {
3599
+ "expression": "issuer",
3600
+ "isExpression": false,
3601
+ "asc": true,
3602
+ "nulls": "last"
3603
+ },
3604
+ {
3605
+ "expression": "generation",
3606
+ "isExpression": false,
3607
+ "asc": true,
3608
+ "nulls": "last"
3609
+ },
3610
+ {
3611
+ "expression": "created_at",
3612
+ "isExpression": false,
3613
+ "asc": true,
3614
+ "nulls": "last"
3615
+ },
3616
+ {
3617
+ "expression": "id",
3618
+ "isExpression": false,
3619
+ "asc": true,
3620
+ "nulls": "last"
3621
+ }
3622
+ ],
3623
+ "isUnique": false,
3624
+ "where": "\"service_bindings\".\"revoked_at\" IS NULL",
3625
+ "concurrently": false,
3626
+ "method": "btree",
3627
+ "with": {}
3628
+ }
3629
+ },
3630
+ "foreignKeys": {
3631
+ "service_bindings_principal_fkey": {
3632
+ "name": "service_bindings_principal_fkey",
3633
+ "tableFrom": "service_bindings",
3634
+ "tableTo": "vault_members",
3635
+ "columnsFrom": [
3636
+ "principal"
3637
+ ],
3638
+ "columnsTo": [
3639
+ "principal"
3640
+ ],
3641
+ "onDelete": "restrict",
3642
+ "onUpdate": "no action"
3643
+ }
3644
+ },
3645
+ "compositePrimaryKeys": {},
3646
+ "uniqueConstraints": {},
3647
+ "policies": {},
3648
+ "checkConstraints": {
3649
+ "service_bindings_seal_check": {
3650
+ "name": "service_bindings_seal_check",
3651
+ "value": "\"service_bindings\".\"seal\" IS NULL OR octet_length(\"service_bindings\".\"seal\") = 16"
3652
+ },
3653
+ "service_bindings_principal_check": {
3654
+ "name": "service_bindings_principal_check",
3655
+ "value": "\"service_bindings\".\"principal\" LIKE 'token:%'"
3656
+ },
3657
+ "service_bindings_auth_mac_check": {
3658
+ "name": "service_bindings_auth_mac_check",
3659
+ "value": "octet_length(\"service_bindings\".\"auth_mac\") = 32"
3660
+ },
3661
+ "service_bindings_claims_check": {
3662
+ "name": "service_bindings_claims_check",
3663
+ "value": "\"service_bindings\".\"claims\"::jsonb IS NOT NULL"
3664
+ }
3665
+ },
3666
+ "isRLSEnabled": false
3667
+ },
3668
+ "public.vault_grants": {
3669
+ "name": "vault_grants",
3670
+ "schema": "",
3671
+ "columns": {
3672
+ "principal": {
3673
+ "name": "principal",
3674
+ "type": "text",
3675
+ "primaryKey": false,
3676
+ "notNull": true
3677
+ },
3678
+ "project_id": {
3679
+ "name": "project_id",
3680
+ "type": "uuid",
3681
+ "primaryKey": false,
3682
+ "notNull": false
3683
+ },
3684
+ "environment_id": {
3685
+ "name": "environment_id",
3686
+ "type": "uuid",
3687
+ "primaryKey": false,
3688
+ "notNull": false
3689
+ },
3690
+ "environment_slug": {
3691
+ "name": "environment_slug",
3692
+ "type": "text",
3693
+ "primaryKey": false,
3694
+ "notNull": false
3695
+ },
3696
+ "role": {
3697
+ "name": "role",
3698
+ "type": "text",
3699
+ "primaryKey": false,
3700
+ "notNull": true
3701
+ },
3702
+ "expires_at": {
3703
+ "name": "expires_at",
3704
+ "type": "bigint",
3705
+ "primaryKey": false,
3706
+ "notNull": false
3707
+ },
3708
+ "granted_at": {
3709
+ "name": "granted_at",
3710
+ "type": "bigint",
3711
+ "primaryKey": false,
3712
+ "notNull": true
3713
+ },
3714
+ "granted_by": {
3715
+ "name": "granted_by",
3716
+ "type": "text",
3717
+ "primaryKey": false,
3718
+ "notNull": true
3719
+ }
3720
+ },
3721
+ "indexes": {
3722
+ "vault_grants_on_every_project": {
3723
+ "name": "vault_grants_on_every_project",
3724
+ "columns": [
3725
+ {
3726
+ "expression": "principal",
3727
+ "isExpression": false,
3728
+ "asc": true,
3729
+ "nulls": "last"
3730
+ }
3731
+ ],
3732
+ "isUnique": true,
3733
+ "where": "\"vault_grants\".\"project_id\" IS NULL AND \"vault_grants\".\"environment_id\" IS NULL AND \"vault_grants\".\"environment_slug\" IS NULL",
3734
+ "concurrently": false,
3735
+ "method": "btree",
3736
+ "with": {}
3737
+ }
3738
+ },
3739
+ "foreignKeys": {
3740
+ "vault_grants_principal_fkey": {
3741
+ "name": "vault_grants_principal_fkey",
3742
+ "tableFrom": "vault_grants",
3743
+ "tableTo": "vault_members",
3744
+ "columnsFrom": [
3745
+ "principal"
3746
+ ],
3747
+ "columnsTo": [
3748
+ "principal"
3749
+ ],
3750
+ "onDelete": "restrict",
3751
+ "onUpdate": "no action"
3752
+ },
3753
+ "vault_grants_project_id_fkey": {
3754
+ "name": "vault_grants_project_id_fkey",
3755
+ "tableFrom": "vault_grants",
3756
+ "tableTo": "projects",
3757
+ "columnsFrom": [
3758
+ "project_id"
3759
+ ],
3760
+ "columnsTo": [
3761
+ "id"
3762
+ ],
3763
+ "onDelete": "restrict",
3764
+ "onUpdate": "no action"
3765
+ },
3766
+ "vault_grants_environment_id_fkey": {
3767
+ "name": "vault_grants_environment_id_fkey",
3768
+ "tableFrom": "vault_grants",
3769
+ "tableTo": "environments",
3770
+ "columnsFrom": [
3771
+ "environment_id"
3772
+ ],
3773
+ "columnsTo": [
3774
+ "id"
3775
+ ],
3776
+ "onDelete": "restrict",
3777
+ "onUpdate": "no action"
3778
+ }
3779
+ },
3780
+ "compositePrimaryKeys": {},
3781
+ "uniqueConstraints": {
3782
+ "vault_grants_on_project": {
3783
+ "name": "vault_grants_on_project",
3784
+ "nullsNotDistinct": false,
3785
+ "columns": [
3786
+ "principal",
3787
+ "project_id"
3788
+ ]
3789
+ },
3790
+ "vault_grants_on_environment": {
3791
+ "name": "vault_grants_on_environment",
3792
+ "nullsNotDistinct": false,
3793
+ "columns": [
3794
+ "principal",
3795
+ "environment_id"
3796
+ ]
3797
+ },
3798
+ "vault_grants_on_environment_slug": {
3799
+ "name": "vault_grants_on_environment_slug",
3800
+ "nullsNotDistinct": false,
3801
+ "columns": [
3802
+ "principal",
3803
+ "environment_slug"
3804
+ ]
3805
+ }
3806
+ },
3807
+ "policies": {},
3808
+ "checkConstraints": {
3809
+ "vault_grants_one_place": {
3810
+ "name": "vault_grants_one_place",
3811
+ "value": "((\"vault_grants\".\"project_id\" IS NULL) <> (\"vault_grants\".\"environment_id\" IS NULL) AND \"vault_grants\".\"environment_slug\" IS NULL) OR (\"vault_grants\".\"project_id\" IS NULL AND \"vault_grants\".\"environment_id\" IS NULL)"
3812
+ },
3813
+ "vault_grants_environment_slug_check": {
3814
+ "name": "vault_grants_environment_slug_check",
3815
+ "value": "\"vault_grants\".\"environment_slug\" IS NULL OR \"vault_grants\".\"environment_slug\" ~ '^[a-z0-9][a-z0-9-]{0,62}$'"
3816
+ },
3817
+ "vault_grants_role_check": {
3818
+ "name": "vault_grants_role_check",
3819
+ "value": "\"vault_grants\".\"role\" ~ '^[a-z][a-z0-9-]{1,31}$'"
3820
+ }
3821
+ },
3822
+ "isRLSEnabled": false
3823
+ },
3824
+ "public.vault_members": {
3825
+ "name": "vault_members",
3826
+ "schema": "",
3827
+ "columns": {
3828
+ "principal": {
3829
+ "name": "principal",
3830
+ "type": "text",
3831
+ "primaryKey": true,
3832
+ "notNull": true
3833
+ },
3834
+ "status": {
3835
+ "name": "status",
3836
+ "type": "text",
3837
+ "primaryKey": false,
3838
+ "notNull": true
3839
+ },
3840
+ "owner": {
3841
+ "name": "owner",
3842
+ "type": "boolean",
3843
+ "primaryKey": false,
3844
+ "notNull": true,
3845
+ "default": false
3846
+ },
3847
+ "role": {
3848
+ "name": "role",
3849
+ "type": "text",
3850
+ "primaryKey": false,
3851
+ "notNull": false
3852
+ },
3853
+ "scope": {
3854
+ "name": "scope",
3855
+ "type": "text",
3856
+ "primaryKey": false,
3857
+ "notNull": false
3858
+ },
3859
+ "generation": {
3860
+ "name": "generation",
3861
+ "type": "integer",
3862
+ "primaryKey": false,
3863
+ "notNull": true,
3864
+ "default": 0
3865
+ },
3866
+ "created_at": {
3867
+ "name": "created_at",
3868
+ "type": "bigint",
3869
+ "primaryKey": false,
3870
+ "notNull": true
3871
+ },
3872
+ "created_by": {
3873
+ "name": "created_by",
3874
+ "type": "text",
3875
+ "primaryKey": false,
3876
+ "notNull": true
3877
+ },
3878
+ "status_changed_at": {
3879
+ "name": "status_changed_at",
3880
+ "type": "bigint",
3881
+ "primaryKey": false,
3882
+ "notNull": true
3883
+ },
3884
+ "status_changed_by": {
3885
+ "name": "status_changed_by",
3886
+ "type": "text",
3887
+ "primaryKey": false,
3888
+ "notNull": true
3889
+ },
3890
+ "access_seq": {
3891
+ "name": "access_seq",
3892
+ "type": "bigint",
3893
+ "primaryKey": false,
3894
+ "notNull": true
3895
+ },
3896
+ "mac": {
3897
+ "name": "mac",
3898
+ "type": "bytea",
3899
+ "primaryKey": false,
3900
+ "notNull": true
3901
+ },
3902
+ "seal": {
3903
+ "name": "seal",
3904
+ "type": "bytea",
3905
+ "primaryKey": false,
3906
+ "notNull": false
3907
+ }
3908
+ },
3909
+ "indexes": {},
3910
+ "foreignKeys": {},
3911
+ "compositePrimaryKeys": {},
3912
+ "uniqueConstraints": {},
3913
+ "policies": {},
3914
+ "checkConstraints": {
3915
+ "vault_members_seal_check": {
3916
+ "name": "vault_members_seal_check",
3917
+ "value": "\"vault_members\".\"seal\" IS NULL OR octet_length(\"vault_members\".\"seal\") = 16"
3918
+ },
3919
+ "vault_members_mac_check": {
3920
+ "name": "vault_members_mac_check",
3921
+ "value": "octet_length(\"vault_members\".\"mac\") = 32"
3922
+ },
3923
+ "vault_members_principal_check": {
3924
+ "name": "vault_members_principal_check",
3925
+ "value": "\"vault_members\".\"principal\" ~ '^(user|token):[^[:space:]:][^[:space:]]*$'"
3926
+ },
3927
+ "vault_members_user_lowercase": {
3928
+ "name": "vault_members_user_lowercase",
3929
+ "value": "\"vault_members\".\"principal\" NOT LIKE 'user:%' OR \"vault_members\".\"principal\" = lower(\"vault_members\".\"principal\")"
3930
+ },
3931
+ "vault_members_status_check": {
3932
+ "name": "vault_members_status_check",
3933
+ "value": "\"vault_members\".\"status\" IN ('active', 'removed')"
3934
+ },
3935
+ "vault_members_owner_check": {
3936
+ "name": "vault_members_owner_check",
3937
+ "value": "NOT \"vault_members\".\"owner\" OR (\"vault_members\".\"status\" = 'active' AND \"vault_members\".\"principal\" LIKE 'user:%')"
3938
+ },
3939
+ "vault_members_generation_check": {
3940
+ "name": "vault_members_generation_check",
3941
+ "value": "\"vault_members\".\"generation\" >= 0"
3942
+ }
3943
+ },
3944
+ "isRLSEnabled": false
3945
+ },
3946
+ "public.vault_releases": {
3947
+ "name": "vault_releases",
3948
+ "schema": "",
3949
+ "columns": {
3950
+ "principal": {
3951
+ "name": "principal",
3952
+ "type": "text",
3953
+ "primaryKey": false,
3954
+ "notNull": true
3955
+ },
3956
+ "key": {
3957
+ "name": "key",
3958
+ "type": "text",
3959
+ "primaryKey": false,
3960
+ "notNull": true
3961
+ },
3962
+ "released_at": {
3963
+ "name": "released_at",
3964
+ "type": "bigint",
3965
+ "primaryKey": false,
3966
+ "notNull": true
3967
+ }
3968
+ },
3969
+ "indexes": {},
3970
+ "foreignKeys": {},
3971
+ "compositePrimaryKeys": {
3972
+ "vault_releases_pkey": {
3973
+ "name": "vault_releases_pkey",
3974
+ "columns": [
3975
+ "principal",
3976
+ "key"
3977
+ ]
3978
+ }
3979
+ },
3980
+ "uniqueConstraints": {},
3981
+ "policies": {},
3982
+ "checkConstraints": {},
3983
+ "isRLSEnabled": false
3984
+ }
3985
+ },
3986
+ "enums": {},
3987
+ "schemas": {},
3988
+ "sequences": {},
3989
+ "roles": {},
3990
+ "policies": {},
3991
+ "views": {},
3992
+ "_meta": {
3993
+ "columns": {},
3994
+ "schemas": {},
3995
+ "tables": {}
3996
+ }
3997
+ }