Skip to content
File

Blob: drizzle/d1/meta/0002_snapshot.json

json333 lines
1{
2 "version": "6",
3 "dialect": "sqlite",
4 "id": "6fa4b0ec-0198-48b5-86bf-4f78df9a4709",
5 "prevId": "fd245a82-8e7b-4bd4-bccd-226948048e29",
6 "tables": {
7 "audit_events": {
8 "name": "audit_events",
9 "columns": {
10 "id": {
11 "name": "id",
12 "type": "text",
13 "primaryKey": true,
14 "notNull": true,
15 "autoincrement": false
16 },
17 "subject_id": {
18 "name": "subject_id",
19 "type": "text",
20 "primaryKey": false,
21 "notNull": false,
22 "autoincrement": false
23 },
24 "event_type": {
25 "name": "event_type",
26 "type": "text",
27 "primaryKey": false,
28 "notNull": true,
29 "autoincrement": false
30 },
31 "actor_subject_id": {
32 "name": "actor_subject_id",
33 "type": "text",
34 "primaryKey": false,
35 "notNull": false,
36 "autoincrement": false
37 },
38 "created_at_ms": {
39 "name": "created_at_ms",
40 "type": "integer",
41 "primaryKey": false,
42 "notNull": true,
43 "autoincrement": false
44 },
45 "data_json": {
46 "name": "data_json",
47 "type": "text",
48 "primaryKey": false,
49 "notNull": true,
50 "autoincrement": false
51 }
52 },
53 "indexes": {
54 "audit_events_subject_created_idx": {
55 "name": "audit_events_subject_created_idx",
56 "columns": [
57 "subject_id",
58 "created_at_ms"
59 ],
60 "isUnique": false
61 },
62 "audit_events_type_created_idx": {
63 "name": "audit_events_type_created_idx",
64 "columns": [
65 "event_type",
66 "created_at_ms"
67 ],
68 "isUnique": false
69 },
70 "audit_events_actor_created_idx": {
71 "name": "audit_events_actor_created_idx",
72 "columns": [
73 "actor_subject_id",
74 "created_at_ms"
75 ],
76 "isUnique": false
77 }
78 },
79 "foreignKeys": {
80 "audit_events_subject_id_subjects_id_fk": {
81 "name": "audit_events_subject_id_subjects_id_fk",
82 "tableFrom": "audit_events",
83 "tableTo": "subjects",
84 "columnsFrom": [
85 "subject_id"
86 ],
87 "columnsTo": [
88 "id"
89 ],
90 "onDelete": "set null",
91 "onUpdate": "no action"
92 }
93 },
94 "compositePrimaryKeys": {},
95 "uniqueConstraints": {},
96 "checkConstraints": {}
97 },
98 "control_plane_meta": {
99 "name": "control_plane_meta",
100 "columns": {
101 "key": {
102 "name": "key",
103 "type": "text",
104 "primaryKey": true,
105 "notNull": true,
106 "autoincrement": false
107 },
108 "value": {
109 "name": "value",
110 "type": "text",
111 "primaryKey": false,
112 "notNull": true,
113 "autoincrement": false
114 },
115 "updated_at_ms": {
116 "name": "updated_at_ms",
117 "type": "integer",
118 "primaryKey": false,
119 "notNull": true,
120 "autoincrement": false
121 }
122 },
123 "indexes": {},
124 "foreignKeys": {},
125 "compositePrimaryKeys": {},
126 "uniqueConstraints": {},
127 "checkConstraints": {}
128 },
129 "pat_projections": {
130 "name": "pat_projections",
131 "columns": {
132 "id": {
133 "name": "id",
134 "type": "text",
135 "primaryKey": true,
136 "notNull": true,
137 "autoincrement": false
138 },
139 "subject_id": {
140 "name": "subject_id",
141 "type": "text",
142 "primaryKey": false,
143 "notNull": true,
144 "autoincrement": false
145 },
146 "name": {
147 "name": "name",
148 "type": "text",
149 "primaryKey": false,
150 "notNull": true,
151 "autoincrement": false
152 },
153 "scopes_json": {
154 "name": "scopes_json",
155 "type": "text",
156 "primaryKey": false,
157 "notNull": true,
158 "autoincrement": false
159 },
160 "created_at_ms": {
161 "name": "created_at_ms",
162 "type": "integer",
163 "primaryKey": false,
164 "notNull": true,
165 "autoincrement": false
166 },
167 "expires_at_ms": {
168 "name": "expires_at_ms",
169 "type": "integer",
170 "primaryKey": false,
171 "notNull": false,
172 "autoincrement": false
173 },
174 "revoked_at_ms": {
175 "name": "revoked_at_ms",
176 "type": "integer",
177 "primaryKey": false,
178 "notNull": false,
179 "autoincrement": false
180 },
181 "last_used_at_ms": {
182 "name": "last_used_at_ms",
183 "type": "integer",
184 "primaryKey": false,
185 "notNull": false,
186 "autoincrement": false
187 }
188 },
189 "indexes": {
190 "pat_projections_subject_created_idx": {
191 "name": "pat_projections_subject_created_idx",
192 "columns": [
193 "subject_id",
194 "created_at_ms"
195 ],
196 "isUnique": false
197 },
198 "pat_projections_subject_active_idx": {
199 "name": "pat_projections_subject_active_idx",
200 "columns": [
201 "subject_id",
202 "revoked_at_ms",
203 "expires_at_ms"
204 ],
205 "isUnique": false
206 }
207 },
208 "foreignKeys": {
209 "pat_projections_subject_id_subjects_id_fk": {
210 "name": "pat_projections_subject_id_subjects_id_fk",
211 "tableFrom": "pat_projections",
212 "tableTo": "subjects",
213 "columnsFrom": [
214 "subject_id"
215 ],
216 "columnsTo": [
217 "id"
218 ],
219 "onDelete": "cascade",
220 "onUpdate": "no action"
221 }
222 },
223 "compositePrimaryKeys": {},
224 "uniqueConstraints": {},
225 "checkConstraints": {}
226 },
227 "subjects": {
228 "name": "subjects",
229 "columns": {
230 "id": {
231 "name": "id",
232 "type": "text",
233 "primaryKey": true,
234 "notNull": true,
235 "autoincrement": false
236 },
237 "storage_id": {
238 "name": "storage_id",
239 "type": "text",
240 "primaryKey": false,
241 "notNull": true,
242 "autoincrement": false
243 },
244 "host_label": {
245 "name": "host_label",
246 "type": "text",
247 "primaryKey": false,
248 "notNull": true,
249 "autoincrement": false
250 },
251 "email": {
252 "name": "email",
253 "type": "text",
254 "primaryKey": false,
255 "notNull": false,
256 "autoincrement": false
257 },
258 "display_name": {
259 "name": "display_name",
260 "type": "text",
261 "primaryKey": false,
262 "notNull": false,
263 "autoincrement": false
264 },
265 "created_at_ms": {
266 "name": "created_at_ms",
267 "type": "integer",
268 "primaryKey": false,
269 "notNull": true,
270 "autoincrement": false
271 },
272 "last_login_at_ms": {
273 "name": "last_login_at_ms",
274 "type": "integer",
275 "primaryKey": false,
276 "notNull": false,
277 "autoincrement": false
278 },
279 "host_rotated_at_ms": {
280 "name": "host_rotated_at_ms",
281 "type": "integer",
282 "primaryKey": false,
283 "notNull": false,
284 "autoincrement": false
285 },
286 "disabled_at_ms": {
287 "name": "disabled_at_ms",
288 "type": "integer",
289 "primaryKey": false,
290 "notNull": false,
291 "autoincrement": false
292 }
293 },
294 "indexes": {
295 "subjects_storage_id_unique": {
296 "name": "subjects_storage_id_unique",
297 "columns": [
298 "storage_id"
299 ],
300 "isUnique": true
301 },
302 "subjects_host_label_unique": {
303 "name": "subjects_host_label_unique",
304 "columns": [
305 "host_label"
306 ],
307 "isUnique": true
308 },
309 "subjects_disabled_idx": {
310 "name": "subjects_disabled_idx",
311 "columns": [
312 "disabled_at_ms"
313 ],
314 "isUnique": false
315 }
316 },
317 "foreignKeys": {},
318 "compositePrimaryKeys": {},
319 "uniqueConstraints": {},
320 "checkConstraints": {}
321 }
322 },
323 "views": {},
324 "enums": {},
325 "_meta": {
326 "schemas": {},
327 "tables": {},
328 "columns": {}
329 },
330 "internal": {
331 "indexes": {}
332 }
333}