Skip to content
File

Blob: drizzle/project-do/meta/0000_snapshot.json

json563 lines
1{
2 "version": "6",
3 "dialect": "sqlite",
4 "id": "2e21fbee-e691-4b67-9950-ad87f4a561f3",
5 "prevId": "00000000-0000-0000-0000-000000000000",
6 "tables": {
7 "project_config": {
8 "name": "project_config",
9 "columns": {
10 "project_id": {
11 "name": "project_id",
12 "type": "text",
13 "primaryKey": true,
14 "notNull": true,
15 "autoincrement": false
16 },
17 "name": {
18 "name": "name",
19 "type": "text",
20 "primaryKey": false,
21 "notNull": true,
22 "autoincrement": false
23 },
24 "repo_url": {
25 "name": "repo_url",
26 "type": "text",
27 "primaryKey": false,
28 "notNull": true,
29 "autoincrement": false
30 },
31 "default_branch": {
32 "name": "default_branch",
33 "type": "text",
34 "primaryKey": false,
35 "notNull": true,
36 "autoincrement": false
37 },
38 "config_path": {
39 "name": "config_path",
40 "type": "text",
41 "primaryKey": false,
42 "notNull": true,
43 "autoincrement": false
44 },
45 "repo_token_ciphertext": {
46 "name": "repo_token_ciphertext",
47 "type": "blob",
48 "primaryKey": false,
49 "notNull": false,
50 "autoincrement": false
51 },
52 "repo_token_key_version": {
53 "name": "repo_token_key_version",
54 "type": "integer",
55 "primaryKey": false,
56 "notNull": false,
57 "autoincrement": false
58 },
59 "repo_token_nonce": {
60 "name": "repo_token_nonce",
61 "type": "blob",
62 "primaryKey": false,
63 "notNull": false,
64 "autoincrement": false
65 },
66 "dispatch_mode": {
67 "name": "dispatch_mode",
68 "type": "text",
69 "primaryKey": false,
70 "notNull": true,
71 "autoincrement": false
72 },
73 "execution_runtime": {
74 "name": "execution_runtime",
75 "type": "text",
76 "primaryKey": false,
77 "notNull": true,
78 "autoincrement": false
79 },
80 "created_at": {
81 "name": "created_at",
82 "type": "integer",
83 "primaryKey": false,
84 "notNull": true,
85 "autoincrement": false
86 },
87 "updated_at": {
88 "name": "updated_at",
89 "type": "integer",
90 "primaryKey": false,
91 "notNull": true,
92 "autoincrement": false
93 }
94 },
95 "indexes": {},
96 "foreignKeys": {},
97 "compositePrimaryKeys": {},
98 "uniqueConstraints": {},
99 "checkConstraints": {}
100 },
101 "project_runs": {
102 "name": "project_runs",
103 "columns": {
104 "id": {
105 "name": "id",
106 "type": "text",
107 "primaryKey": true,
108 "notNull": true,
109 "autoincrement": false
110 },
111 "project_id": {
112 "name": "project_id",
113 "type": "text",
114 "primaryKey": false,
115 "notNull": true,
116 "autoincrement": false
117 },
118 "run_id": {
119 "name": "run_id",
120 "type": "text",
121 "primaryKey": false,
122 "notNull": true,
123 "autoincrement": false
124 },
125 "trigger_type": {
126 "name": "trigger_type",
127 "type": "text",
128 "primaryKey": false,
129 "notNull": true,
130 "autoincrement": false
131 },
132 "triggered_by_user_id": {
133 "name": "triggered_by_user_id",
134 "type": "text",
135 "primaryKey": false,
136 "notNull": false,
137 "autoincrement": false
138 },
139 "branch": {
140 "name": "branch",
141 "type": "text",
142 "primaryKey": false,
143 "notNull": true,
144 "autoincrement": false
145 },
146 "commit_sha": {
147 "name": "commit_sha",
148 "type": "text",
149 "primaryKey": false,
150 "notNull": false,
151 "autoincrement": false
152 },
153 "provider": {
154 "name": "provider",
155 "type": "text",
156 "primaryKey": false,
157 "notNull": false,
158 "autoincrement": false
159 },
160 "delivery_id": {
161 "name": "delivery_id",
162 "type": "text",
163 "primaryKey": false,
164 "notNull": false,
165 "autoincrement": false
166 },
167 "repo_url": {
168 "name": "repo_url",
169 "type": "text",
170 "primaryKey": false,
171 "notNull": true,
172 "autoincrement": false
173 },
174 "config_path": {
175 "name": "config_path",
176 "type": "text",
177 "primaryKey": false,
178 "notNull": true,
179 "autoincrement": false
180 },
181 "position": {
182 "name": "position",
183 "type": "integer",
184 "primaryKey": false,
185 "notNull": false,
186 "autoincrement": false
187 },
188 "status": {
189 "name": "status",
190 "type": "text",
191 "primaryKey": false,
192 "notNull": true,
193 "autoincrement": false
194 },
195 "d1_sync_status": {
196 "name": "d1_sync_status",
197 "type": "text",
198 "primaryKey": false,
199 "notNull": true,
200 "autoincrement": false
201 },
202 "dispatch_mode": {
203 "name": "dispatch_mode",
204 "type": "text",
205 "primaryKey": false,
206 "notNull": true,
207 "autoincrement": false
208 },
209 "execution_runtime": {
210 "name": "execution_runtime",
211 "type": "text",
212 "primaryKey": false,
213 "notNull": true,
214 "autoincrement": false
215 },
216 "dispatch_status": {
217 "name": "dispatch_status",
218 "type": "text",
219 "primaryKey": false,
220 "notNull": true,
221 "autoincrement": false
222 },
223 "dispatch_attempts": {
224 "name": "dispatch_attempts",
225 "type": "integer",
226 "primaryKey": false,
227 "notNull": true,
228 "autoincrement": false
229 },
230 "last_error": {
231 "name": "last_error",
232 "type": "text",
233 "primaryKey": false,
234 "notNull": false,
235 "autoincrement": false
236 },
237 "created_at": {
238 "name": "created_at",
239 "type": "integer",
240 "primaryKey": false,
241 "notNull": true,
242 "autoincrement": false
243 },
244 "cancel_requested_at": {
245 "name": "cancel_requested_at",
246 "type": "integer",
247 "primaryKey": false,
248 "notNull": false,
249 "autoincrement": false
250 }
251 },
252 "indexes": {
253 "idx_project_runs_project_position": {
254 "name": "idx_project_runs_project_position",
255 "columns": [
256 "project_id",
257 "position"
258 ],
259 "isUnique": true
260 },
261 "idx_project_runs_project_status_position": {
262 "name": "idx_project_runs_project_status_position",
263 "columns": [
264 "project_id",
265 "status",
266 "position"
267 ],
268 "isUnique": false
269 },
270 "idx_project_runs_run_id": {
271 "name": "idx_project_runs_run_id",
272 "columns": [
273 "run_id"
274 ],
275 "isUnique": true
276 }
277 },
278 "foreignKeys": {},
279 "compositePrimaryKeys": {},
280 "uniqueConstraints": {},
281 "checkConstraints": {}
282 },
283 "project_state": {
284 "name": "project_state",
285 "columns": {
286 "project_id": {
287 "name": "project_id",
288 "type": "text",
289 "primaryKey": true,
290 "notNull": true,
291 "autoincrement": false
292 },
293 "active_run_id": {
294 "name": "active_run_id",
295 "type": "text",
296 "primaryKey": false,
297 "notNull": false,
298 "autoincrement": false
299 },
300 "project_index_sync_status": {
301 "name": "project_index_sync_status",
302 "type": "text",
303 "primaryKey": false,
304 "notNull": true,
305 "autoincrement": false
306 },
307 "updated_at": {
308 "name": "updated_at",
309 "type": "integer",
310 "primaryKey": false,
311 "notNull": true,
312 "autoincrement": false
313 }
314 },
315 "indexes": {},
316 "foreignKeys": {},
317 "compositePrimaryKeys": {},
318 "uniqueConstraints": {},
319 "checkConstraints": {}
320 },
321 "project_webhook_deliveries": {
322 "name": "project_webhook_deliveries",
323 "columns": {
324 "id": {
325 "name": "id",
326 "type": "text",
327 "primaryKey": true,
328 "notNull": true,
329 "autoincrement": false
330 },
331 "project_id": {
332 "name": "project_id",
333 "type": "text",
334 "primaryKey": false,
335 "notNull": true,
336 "autoincrement": false
337 },
338 "provider": {
339 "name": "provider",
340 "type": "text",
341 "primaryKey": false,
342 "notNull": true,
343 "autoincrement": false
344 },
345 "delivery_id": {
346 "name": "delivery_id",
347 "type": "text",
348 "primaryKey": false,
349 "notNull": true,
350 "autoincrement": false
351 },
352 "event_kind": {
353 "name": "event_kind",
354 "type": "text",
355 "primaryKey": false,
356 "notNull": true,
357 "autoincrement": false
358 },
359 "event_name": {
360 "name": "event_name",
361 "type": "text",
362 "primaryKey": false,
363 "notNull": true,
364 "autoincrement": false
365 },
366 "outcome": {
367 "name": "outcome",
368 "type": "text",
369 "primaryKey": false,
370 "notNull": true,
371 "autoincrement": false
372 },
373 "repo_url": {
374 "name": "repo_url",
375 "type": "text",
376 "primaryKey": false,
377 "notNull": true,
378 "autoincrement": false
379 },
380 "ref": {
381 "name": "ref",
382 "type": "text",
383 "primaryKey": false,
384 "notNull": false,
385 "autoincrement": false
386 },
387 "branch": {
388 "name": "branch",
389 "type": "text",
390 "primaryKey": false,
391 "notNull": false,
392 "autoincrement": false
393 },
394 "commit_sha": {
395 "name": "commit_sha",
396 "type": "text",
397 "primaryKey": false,
398 "notNull": false,
399 "autoincrement": false
400 },
401 "before_sha": {
402 "name": "before_sha",
403 "type": "text",
404 "primaryKey": false,
405 "notNull": false,
406 "autoincrement": false
407 },
408 "run_id": {
409 "name": "run_id",
410 "type": "text",
411 "primaryKey": false,
412 "notNull": false,
413 "autoincrement": false
414 },
415 "received_at": {
416 "name": "received_at",
417 "type": "integer",
418 "primaryKey": false,
419 "notNull": true,
420 "autoincrement": false
421 }
422 },
423 "indexes": {
424 "idx_project_webhook_deliveries_project_provider_delivery": {
425 "name": "idx_project_webhook_deliveries_project_provider_delivery",
426 "columns": [
427 "project_id",
428 "provider",
429 "delivery_id"
430 ],
431 "isUnique": true
432 },
433 "idx_project_webhook_deliveries_project_received_at": {
434 "name": "idx_project_webhook_deliveries_project_received_at",
435 "columns": [
436 "project_id",
437 "received_at"
438 ],
439 "isUnique": false
440 }
441 },
442 "foreignKeys": {},
443 "compositePrimaryKeys": {},
444 "uniqueConstraints": {},
445 "checkConstraints": {}
446 },
447 "project_webhooks": {
448 "name": "project_webhooks",
449 "columns": {
450 "id": {
451 "name": "id",
452 "type": "text",
453 "primaryKey": true,
454 "notNull": true,
455 "autoincrement": false
456 },
457 "project_id": {
458 "name": "project_id",
459 "type": "text",
460 "primaryKey": false,
461 "notNull": true,
462 "autoincrement": false
463 },
464 "provider": {
465 "name": "provider",
466 "type": "text",
467 "primaryKey": false,
468 "notNull": true,
469 "autoincrement": false
470 },
471 "config_json": {
472 "name": "config_json",
473 "type": "text",
474 "primaryKey": false,
475 "notNull": false,
476 "autoincrement": false
477 },
478 "secret_ciphertext": {
479 "name": "secret_ciphertext",
480 "type": "blob",
481 "primaryKey": false,
482 "notNull": true,
483 "autoincrement": false
484 },
485 "secret_key_version": {
486 "name": "secret_key_version",
487 "type": "integer",
488 "primaryKey": false,
489 "notNull": true,
490 "autoincrement": false
491 },
492 "secret_nonce": {
493 "name": "secret_nonce",
494 "type": "blob",
495 "primaryKey": false,
496 "notNull": true,
497 "autoincrement": false
498 },
499 "enabled": {
500 "name": "enabled",
501 "type": "integer",
502 "primaryKey": false,
503 "notNull": true,
504 "autoincrement": false
505 },
506 "created_at": {
507 "name": "created_at",
508 "type": "integer",
509 "primaryKey": false,
510 "notNull": true,
511 "autoincrement": false
512 },
513 "updated_at": {
514 "name": "updated_at",
515 "type": "integer",
516 "primaryKey": false,
517 "notNull": true,
518 "autoincrement": false
519 }
520 },
521 "indexes": {
522 "idx_project_webhooks_project_provider": {
523 "name": "idx_project_webhooks_project_provider",
524 "columns": [
525 "project_id",
526 "provider"
527 ],
528 "isUnique": true
529 },
530 "idx_project_webhooks_provider_enabled": {
531 "name": "idx_project_webhooks_provider_enabled",
532 "columns": [
533 "provider",
534 "enabled"
535 ],
536 "isUnique": false
537 },
538 "idx_project_webhooks_project_enabled": {
539 "name": "idx_project_webhooks_project_enabled",
540 "columns": [
541 "project_id",
542 "enabled"
543 ],
544 "isUnique": false
545 }
546 },
547 "foreignKeys": {},
548 "compositePrimaryKeys": {},
549 "uniqueConstraints": {},
550 "checkConstraints": {}
551 }
552 },
553 "views": {},
554 "enums": {},
555 "_meta": {
556 "schemas": {},
557 "tables": {},
558 "columns": {}
559 },
560 "internal": {
561 "indexes": {}
562 }
563}