@yeyo11/shipcast 0.0.0-stage → 0.3.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 (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +41 -2
  3. package/dist/cli/shipcast.js +25240 -0
  4. package/dist/fonts/Fraunces-Roman.ttf +0 -0
  5. package/dist/fonts/Fraunces-WonkItalic.ttf +0 -0
  6. package/dist/fonts/InstrumentSans-Regular.ttf +0 -0
  7. package/dist/fonts/InstrumentSans-SemiBold.ttf +0 -0
  8. package/dist/fonts/OFL-Fraunces.txt +93 -0
  9. package/dist/fonts/OFL-InstrumentSans.txt +93 -0
  10. package/dist/fonts/README.md +14 -0
  11. package/drizzle/0000_registry.sql +54 -0
  12. package/drizzle/0001_post_model.sql +144 -0
  13. package/drizzle/0002_api_tokens.sql +9 -0
  14. package/drizzle/0003_jobs.sql +20 -0
  15. package/drizzle/0004_account_snapshots.sql +15 -0
  16. package/drizzle/0006_comments.sql +29 -0
  17. package/drizzle/0007_comments_paging.sql +2 -0
  18. package/drizzle/0008_assistant_sessions.sql +25 -0
  19. package/drizzle/0009_attention_dismissals.sql +4 -0
  20. package/drizzle/0010_comments_search.sql +4 -0
  21. package/drizzle/0011_launches_list.sql +3 -0
  22. package/drizzle/0012_telemetry.sql +40 -0
  23. package/drizzle/0013_publish_attempts.sql +18 -0
  24. package/drizzle/0014_secrets.sql +8 -0
  25. package/drizzle/0015_draft_snapshots.sql +13 -0
  26. package/drizzle/0016_metrics_checked_at.sql +1 -0
  27. package/drizzle/0017_metric_days.sql +25 -0
  28. package/drizzle/0018_launch_model.sql +124 -0
  29. package/drizzle/0019_launch_imports.sql +20 -0
  30. package/drizzle/0020_launch_deletions.sql +15 -0
  31. package/drizzle/0021_dedupe_key_backfill.sql +22 -0
  32. package/drizzle/0022_drop_draft_snapshots.sql +4 -0
  33. package/drizzle/0023_push_subscriptions.sql +14 -0
  34. package/drizzle/meta/0000_snapshot.json +400 -0
  35. package/drizzle/meta/0001_snapshot.json +537 -0
  36. package/drizzle/meta/0002_snapshot.json +604 -0
  37. package/drizzle/meta/0003_snapshot.json +732 -0
  38. package/drizzle/meta/0004_snapshot.json +816 -0
  39. package/drizzle/meta/0006_snapshot.json +1036 -0
  40. package/drizzle/meta/0007_snapshot.json +1084 -0
  41. package/drizzle/meta/0008_snapshot.json +1298 -0
  42. package/drizzle/meta/0009_snapshot.json +1324 -0
  43. package/drizzle/meta/0010_snapshot.json +1372 -0
  44. package/drizzle/meta/0011_snapshot.json +1448 -0
  45. package/drizzle/meta/0012_snapshot.json +1717 -0
  46. package/drizzle/meta/0013_snapshot.json +1844 -0
  47. package/drizzle/meta/0014_snapshot.json +1896 -0
  48. package/drizzle/meta/0015_snapshot.json +1978 -0
  49. package/drizzle/meta/0016_snapshot.json +1984 -0
  50. package/drizzle/meta/0017_snapshot.json +2112 -0
  51. package/drizzle/meta/0018_snapshot.json +3051 -0
  52. package/drizzle/meta/0019_snapshot.json +3198 -0
  53. package/drizzle/meta/0020_snapshot.json +3315 -0
  54. package/drizzle/meta/0021_snapshot.json +3315 -0
  55. package/drizzle/meta/0022_snapshot.json +3233 -0
  56. package/drizzle/meta/0023_snapshot.json +3333 -0
  57. package/drizzle/meta/_journal.json +167 -0
  58. package/package.json +62 -4
@@ -0,0 +1,3315 @@
1
+ {
2
+ "id": "5276928f-df05-451a-8fc8-f83826379e36",
3
+ "prevId": "7cebb264-5842-4f99-871f-6e1904c2f823",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.account_snapshots": {
8
+ "name": "account_snapshots",
9
+ "schema": "",
10
+ "columns": {
11
+ "account_id": {
12
+ "name": "account_id",
13
+ "type": "integer",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "day": {
18
+ "name": "day",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "taken_at": {
24
+ "name": "taken_at",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "followers": {
30
+ "name": "followers",
31
+ "type": "integer",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "following": {
36
+ "name": "following",
37
+ "type": "integer",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "posts": {
42
+ "name": "posts",
43
+ "type": "integer",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "extra": {
48
+ "name": "extra",
49
+ "type": "jsonb",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "default": "'{}'::jsonb"
53
+ }
54
+ },
55
+ "indexes": {},
56
+ "foreignKeys": {
57
+ "account_snapshots_account_id_accounts_id_fk": {
58
+ "name": "account_snapshots_account_id_accounts_id_fk",
59
+ "tableFrom": "account_snapshots",
60
+ "tableTo": "accounts",
61
+ "columnsFrom": [
62
+ "account_id"
63
+ ],
64
+ "columnsTo": [
65
+ "id"
66
+ ],
67
+ "onDelete": "cascade",
68
+ "onUpdate": "no action"
69
+ }
70
+ },
71
+ "compositePrimaryKeys": {
72
+ "account_snapshots_account_day": {
73
+ "name": "account_snapshots_account_day",
74
+ "columns": [
75
+ "account_id",
76
+ "day"
77
+ ]
78
+ }
79
+ },
80
+ "uniqueConstraints": {},
81
+ "policies": {},
82
+ "checkConstraints": {},
83
+ "isRLSEnabled": false
84
+ },
85
+ "public.accounts": {
86
+ "name": "accounts",
87
+ "schema": "",
88
+ "columns": {
89
+ "id": {
90
+ "name": "id",
91
+ "type": "integer",
92
+ "primaryKey": true,
93
+ "notNull": true,
94
+ "identity": {
95
+ "type": "byDefault",
96
+ "name": "accounts_id_seq",
97
+ "schema": "public",
98
+ "increment": "1",
99
+ "startWith": "1",
100
+ "minValue": "1",
101
+ "maxValue": "2147483647",
102
+ "cache": "1",
103
+ "cycle": false
104
+ }
105
+ },
106
+ "network": {
107
+ "name": "network",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true
111
+ },
112
+ "brand": {
113
+ "name": "brand",
114
+ "type": "text",
115
+ "primaryKey": false,
116
+ "notNull": true
117
+ },
118
+ "label": {
119
+ "name": "label",
120
+ "type": "text",
121
+ "primaryKey": false,
122
+ "notNull": true
123
+ },
124
+ "settings": {
125
+ "name": "settings",
126
+ "type": "text",
127
+ "primaryKey": false,
128
+ "notNull": true,
129
+ "default": "'{}'"
130
+ },
131
+ "is_primary": {
132
+ "name": "is_primary",
133
+ "type": "integer",
134
+ "primaryKey": false,
135
+ "notNull": true,
136
+ "default": 0
137
+ },
138
+ "status": {
139
+ "name": "status",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true,
143
+ "default": "'unchecked'"
144
+ },
145
+ "identity": {
146
+ "name": "identity",
147
+ "type": "text",
148
+ "primaryKey": false,
149
+ "notNull": false
150
+ },
151
+ "problem": {
152
+ "name": "problem",
153
+ "type": "text",
154
+ "primaryKey": false,
155
+ "notNull": false
156
+ },
157
+ "checked_at": {
158
+ "name": "checked_at",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": false
162
+ },
163
+ "created_at": {
164
+ "name": "created_at",
165
+ "type": "text",
166
+ "primaryKey": false,
167
+ "notNull": true,
168
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
169
+ },
170
+ "avatar_url": {
171
+ "name": "avatar_url",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": false
175
+ }
176
+ },
177
+ "indexes": {},
178
+ "foreignKeys": {},
179
+ "compositePrimaryKeys": {},
180
+ "uniqueConstraints": {
181
+ "accounts_network_brand_label_unique": {
182
+ "name": "accounts_network_brand_label_unique",
183
+ "nullsNotDistinct": false,
184
+ "columns": [
185
+ "network",
186
+ "brand",
187
+ "label"
188
+ ]
189
+ }
190
+ },
191
+ "policies": {},
192
+ "checkConstraints": {},
193
+ "isRLSEnabled": false
194
+ },
195
+ "public.api_tokens": {
196
+ "name": "api_tokens",
197
+ "schema": "",
198
+ "columns": {
199
+ "id": {
200
+ "name": "id",
201
+ "type": "integer",
202
+ "primaryKey": true,
203
+ "notNull": true,
204
+ "identity": {
205
+ "type": "byDefault",
206
+ "name": "api_tokens_id_seq",
207
+ "schema": "public",
208
+ "increment": "1",
209
+ "startWith": "1",
210
+ "minValue": "1",
211
+ "maxValue": "2147483647",
212
+ "cache": "1",
213
+ "cycle": false
214
+ }
215
+ },
216
+ "name": {
217
+ "name": "name",
218
+ "type": "text",
219
+ "primaryKey": false,
220
+ "notNull": true
221
+ },
222
+ "hash": {
223
+ "name": "hash",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ },
228
+ "scopes": {
229
+ "name": "scopes",
230
+ "type": "text[]",
231
+ "primaryKey": false,
232
+ "notNull": true
233
+ },
234
+ "created_at": {
235
+ "name": "created_at",
236
+ "type": "text",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
240
+ },
241
+ "last_used_at": {
242
+ "name": "last_used_at",
243
+ "type": "text",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "revoked_at": {
248
+ "name": "revoked_at",
249
+ "type": "text",
250
+ "primaryKey": false,
251
+ "notNull": false
252
+ }
253
+ },
254
+ "indexes": {},
255
+ "foreignKeys": {},
256
+ "compositePrimaryKeys": {},
257
+ "uniqueConstraints": {},
258
+ "policies": {},
259
+ "checkConstraints": {},
260
+ "isRLSEnabled": false
261
+ },
262
+ "public.approvals": {
263
+ "name": "approvals",
264
+ "schema": "",
265
+ "columns": {
266
+ "id": {
267
+ "name": "id",
268
+ "type": "integer",
269
+ "primaryKey": true,
270
+ "notNull": true,
271
+ "identity": {
272
+ "type": "byDefault",
273
+ "name": "approvals_id_seq",
274
+ "schema": "public",
275
+ "increment": "1",
276
+ "startWith": "1",
277
+ "minValue": "1",
278
+ "maxValue": "2147483647",
279
+ "cache": "1",
280
+ "cycle": false
281
+ }
282
+ },
283
+ "launch_id": {
284
+ "name": "launch_id",
285
+ "type": "integer",
286
+ "primaryKey": false,
287
+ "notNull": true
288
+ },
289
+ "by": {
290
+ "name": "by",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true
294
+ },
295
+ "at": {
296
+ "name": "at",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true,
300
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
301
+ },
302
+ "versions": {
303
+ "name": "versions",
304
+ "type": "jsonb",
305
+ "primaryKey": false,
306
+ "notNull": true
307
+ },
308
+ "import_batch": {
309
+ "name": "import_batch",
310
+ "type": "text",
311
+ "primaryKey": false,
312
+ "notNull": false
313
+ },
314
+ "revoked_at": {
315
+ "name": "revoked_at",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": false
319
+ },
320
+ "note": {
321
+ "name": "note",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": false
325
+ }
326
+ },
327
+ "indexes": {
328
+ "approvals_by_launch": {
329
+ "name": "approvals_by_launch",
330
+ "columns": [
331
+ {
332
+ "expression": "launch_id",
333
+ "isExpression": false,
334
+ "asc": true,
335
+ "nulls": "last"
336
+ },
337
+ {
338
+ "expression": "at",
339
+ "isExpression": false,
340
+ "asc": true,
341
+ "nulls": "last"
342
+ }
343
+ ],
344
+ "isUnique": false,
345
+ "concurrently": false,
346
+ "method": "btree",
347
+ "with": {}
348
+ }
349
+ },
350
+ "foreignKeys": {
351
+ "approvals_launch_id_launches_id_fk": {
352
+ "name": "approvals_launch_id_launches_id_fk",
353
+ "tableFrom": "approvals",
354
+ "tableTo": "launches",
355
+ "columnsFrom": [
356
+ "launch_id"
357
+ ],
358
+ "columnsTo": [
359
+ "id"
360
+ ],
361
+ "onDelete": "cascade",
362
+ "onUpdate": "no action"
363
+ }
364
+ },
365
+ "compositePrimaryKeys": {},
366
+ "uniqueConstraints": {},
367
+ "policies": {},
368
+ "checkConstraints": {},
369
+ "isRLSEnabled": false
370
+ },
371
+ "public.assistant_messages": {
372
+ "name": "assistant_messages",
373
+ "schema": "",
374
+ "columns": {
375
+ "id": {
376
+ "name": "id",
377
+ "type": "integer",
378
+ "primaryKey": true,
379
+ "notNull": true,
380
+ "identity": {
381
+ "type": "byDefault",
382
+ "name": "assistant_messages_id_seq",
383
+ "schema": "public",
384
+ "increment": "1",
385
+ "startWith": "1",
386
+ "minValue": "1",
387
+ "maxValue": "2147483647",
388
+ "cache": "1",
389
+ "cycle": false
390
+ }
391
+ },
392
+ "session_id": {
393
+ "name": "session_id",
394
+ "type": "integer",
395
+ "primaryKey": false,
396
+ "notNull": true
397
+ },
398
+ "role": {
399
+ "name": "role",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": true
403
+ },
404
+ "content": {
405
+ "name": "content",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true
409
+ },
410
+ "proposals": {
411
+ "name": "proposals",
412
+ "type": "jsonb",
413
+ "primaryKey": false,
414
+ "notNull": true,
415
+ "default": "'[]'::jsonb"
416
+ },
417
+ "selection": {
418
+ "name": "selection",
419
+ "type": "jsonb",
420
+ "primaryKey": false,
421
+ "notNull": false
422
+ },
423
+ "problem": {
424
+ "name": "problem",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": false
428
+ },
429
+ "created_at": {
430
+ "name": "created_at",
431
+ "type": "text",
432
+ "primaryKey": false,
433
+ "notNull": true,
434
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
435
+ }
436
+ },
437
+ "indexes": {
438
+ "assistant_messages_by_session": {
439
+ "name": "assistant_messages_by_session",
440
+ "columns": [
441
+ {
442
+ "expression": "session_id",
443
+ "isExpression": false,
444
+ "asc": true,
445
+ "nulls": "last"
446
+ },
447
+ {
448
+ "expression": "id",
449
+ "isExpression": false,
450
+ "asc": true,
451
+ "nulls": "last"
452
+ }
453
+ ],
454
+ "isUnique": false,
455
+ "concurrently": false,
456
+ "method": "btree",
457
+ "with": {}
458
+ }
459
+ },
460
+ "foreignKeys": {
461
+ "assistant_messages_session_id_assistant_sessions_id_fk": {
462
+ "name": "assistant_messages_session_id_assistant_sessions_id_fk",
463
+ "tableFrom": "assistant_messages",
464
+ "tableTo": "assistant_sessions",
465
+ "columnsFrom": [
466
+ "session_id"
467
+ ],
468
+ "columnsTo": [
469
+ "id"
470
+ ],
471
+ "onDelete": "cascade",
472
+ "onUpdate": "no action"
473
+ }
474
+ },
475
+ "compositePrimaryKeys": {},
476
+ "uniqueConstraints": {},
477
+ "policies": {},
478
+ "checkConstraints": {},
479
+ "isRLSEnabled": false
480
+ },
481
+ "public.assistant_sessions": {
482
+ "name": "assistant_sessions",
483
+ "schema": "",
484
+ "columns": {
485
+ "id": {
486
+ "name": "id",
487
+ "type": "integer",
488
+ "primaryKey": true,
489
+ "notNull": true,
490
+ "identity": {
491
+ "type": "byDefault",
492
+ "name": "assistant_sessions_id_seq",
493
+ "schema": "public",
494
+ "increment": "1",
495
+ "startWith": "1",
496
+ "minValue": "1",
497
+ "maxValue": "2147483647",
498
+ "cache": "1",
499
+ "cycle": false
500
+ }
501
+ },
502
+ "title": {
503
+ "name": "title",
504
+ "type": "text",
505
+ "primaryKey": false,
506
+ "notNull": true
507
+ },
508
+ "launch_id": {
509
+ "name": "launch_id",
510
+ "type": "integer",
511
+ "primaryKey": false,
512
+ "notNull": false
513
+ },
514
+ "draft_path": {
515
+ "name": "draft_path",
516
+ "type": "text",
517
+ "primaryKey": false,
518
+ "notNull": false
519
+ },
520
+ "draft_label": {
521
+ "name": "draft_label",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": false
525
+ },
526
+ "created_at": {
527
+ "name": "created_at",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": true,
531
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
532
+ },
533
+ "updated_at": {
534
+ "name": "updated_at",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": true,
538
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
539
+ }
540
+ },
541
+ "indexes": {
542
+ "assistant_sessions_by_updated": {
543
+ "name": "assistant_sessions_by_updated",
544
+ "columns": [
545
+ {
546
+ "expression": "updated_at",
547
+ "isExpression": false,
548
+ "asc": true,
549
+ "nulls": "last"
550
+ },
551
+ {
552
+ "expression": "id",
553
+ "isExpression": false,
554
+ "asc": true,
555
+ "nulls": "last"
556
+ }
557
+ ],
558
+ "isUnique": false,
559
+ "concurrently": false,
560
+ "method": "btree",
561
+ "with": {}
562
+ }
563
+ },
564
+ "foreignKeys": {
565
+ "assistant_sessions_launch_id_launches_id_fk": {
566
+ "name": "assistant_sessions_launch_id_launches_id_fk",
567
+ "tableFrom": "assistant_sessions",
568
+ "tableTo": "launches",
569
+ "columnsFrom": [
570
+ "launch_id"
571
+ ],
572
+ "columnsTo": [
573
+ "id"
574
+ ],
575
+ "onDelete": "set null",
576
+ "onUpdate": "no action"
577
+ }
578
+ },
579
+ "compositePrimaryKeys": {},
580
+ "uniqueConstraints": {},
581
+ "policies": {},
582
+ "checkConstraints": {},
583
+ "isRLSEnabled": false
584
+ },
585
+ "public.attention_dismissals": {
586
+ "name": "attention_dismissals",
587
+ "schema": "",
588
+ "columns": {
589
+ "key": {
590
+ "name": "key",
591
+ "type": "text",
592
+ "primaryKey": true,
593
+ "notNull": true
594
+ },
595
+ "dismissed_at": {
596
+ "name": "dismissed_at",
597
+ "type": "text",
598
+ "primaryKey": false,
599
+ "notNull": true,
600
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
601
+ }
602
+ },
603
+ "indexes": {},
604
+ "foreignKeys": {},
605
+ "compositePrimaryKeys": {},
606
+ "uniqueConstraints": {},
607
+ "policies": {},
608
+ "checkConstraints": {},
609
+ "isRLSEnabled": false
610
+ },
611
+ "public.checks": {
612
+ "name": "checks",
613
+ "schema": "",
614
+ "columns": {
615
+ "id": {
616
+ "name": "id",
617
+ "type": "integer",
618
+ "primaryKey": true,
619
+ "notNull": true,
620
+ "identity": {
621
+ "type": "byDefault",
622
+ "name": "checks_id_seq",
623
+ "schema": "public",
624
+ "increment": "1",
625
+ "startWith": "1",
626
+ "minValue": "1",
627
+ "maxValue": "2147483647",
628
+ "cache": "1",
629
+ "cycle": false
630
+ }
631
+ },
632
+ "taken_at": {
633
+ "name": "taken_at",
634
+ "type": "text",
635
+ "primaryKey": false,
636
+ "notNull": true,
637
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
638
+ },
639
+ "name": {
640
+ "name": "name",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": true
644
+ },
645
+ "ok": {
646
+ "name": "ok",
647
+ "type": "boolean",
648
+ "primaryKey": false,
649
+ "notNull": true
650
+ },
651
+ "value": {
652
+ "name": "value",
653
+ "type": "double precision",
654
+ "primaryKey": false,
655
+ "notNull": true
656
+ },
657
+ "detail": {
658
+ "name": "detail",
659
+ "type": "jsonb",
660
+ "primaryKey": false,
661
+ "notNull": true,
662
+ "default": "'{}'::jsonb"
663
+ }
664
+ },
665
+ "indexes": {
666
+ "checks_by_name": {
667
+ "name": "checks_by_name",
668
+ "columns": [
669
+ {
670
+ "expression": "name",
671
+ "isExpression": false,
672
+ "asc": true,
673
+ "nulls": "last"
674
+ },
675
+ {
676
+ "expression": "taken_at",
677
+ "isExpression": false,
678
+ "asc": true,
679
+ "nulls": "last"
680
+ }
681
+ ],
682
+ "isUnique": false,
683
+ "concurrently": false,
684
+ "method": "btree",
685
+ "with": {}
686
+ }
687
+ },
688
+ "foreignKeys": {},
689
+ "compositePrimaryKeys": {},
690
+ "uniqueConstraints": {},
691
+ "policies": {},
692
+ "checkConstraints": {},
693
+ "isRLSEnabled": false
694
+ },
695
+ "public.comments": {
696
+ "name": "comments",
697
+ "schema": "",
698
+ "columns": {
699
+ "id": {
700
+ "name": "id",
701
+ "type": "integer",
702
+ "primaryKey": true,
703
+ "notNull": true,
704
+ "identity": {
705
+ "type": "byDefault",
706
+ "name": "comments_id_seq",
707
+ "schema": "public",
708
+ "increment": "1",
709
+ "startWith": "1",
710
+ "minValue": "1",
711
+ "maxValue": "2147483647",
712
+ "cache": "1",
713
+ "cycle": false
714
+ }
715
+ },
716
+ "post_id": {
717
+ "name": "post_id",
718
+ "type": "integer",
719
+ "primaryKey": false,
720
+ "notNull": true
721
+ },
722
+ "channel": {
723
+ "name": "channel",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": true
727
+ },
728
+ "external_id": {
729
+ "name": "external_id",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": true
733
+ },
734
+ "author_handle": {
735
+ "name": "author_handle",
736
+ "type": "text",
737
+ "primaryKey": false,
738
+ "notNull": true
739
+ },
740
+ "author_name": {
741
+ "name": "author_name",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": false
745
+ },
746
+ "author_avatar_url": {
747
+ "name": "author_avatar_url",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": false
751
+ },
752
+ "text": {
753
+ "name": "text",
754
+ "type": "text",
755
+ "primaryKey": false,
756
+ "notNull": true
757
+ },
758
+ "url": {
759
+ "name": "url",
760
+ "type": "text",
761
+ "primaryKey": false,
762
+ "notNull": false
763
+ },
764
+ "created_at": {
765
+ "name": "created_at",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": true
769
+ },
770
+ "in_reply_to": {
771
+ "name": "in_reply_to",
772
+ "type": "text",
773
+ "primaryKey": false,
774
+ "notNull": false
775
+ },
776
+ "own": {
777
+ "name": "own",
778
+ "type": "boolean",
779
+ "primaryKey": false,
780
+ "notNull": true,
781
+ "default": false
782
+ },
783
+ "fetched_at": {
784
+ "name": "fetched_at",
785
+ "type": "text",
786
+ "primaryKey": false,
787
+ "notNull": true,
788
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
789
+ },
790
+ "status": {
791
+ "name": "status",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": true,
795
+ "default": "'new'"
796
+ },
797
+ "classification": {
798
+ "name": "classification",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": false
802
+ },
803
+ "draft": {
804
+ "name": "draft",
805
+ "type": "text",
806
+ "primaryKey": false,
807
+ "notNull": false
808
+ },
809
+ "note": {
810
+ "name": "note",
811
+ "type": "text",
812
+ "primaryKey": false,
813
+ "notNull": false
814
+ },
815
+ "problem": {
816
+ "name": "problem",
817
+ "type": "text",
818
+ "primaryKey": false,
819
+ "notNull": false
820
+ },
821
+ "sent_external_id": {
822
+ "name": "sent_external_id",
823
+ "type": "text",
824
+ "primaryKey": false,
825
+ "notNull": false
826
+ },
827
+ "sent_url": {
828
+ "name": "sent_url",
829
+ "type": "text",
830
+ "primaryKey": false,
831
+ "notNull": false
832
+ },
833
+ "sent_at": {
834
+ "name": "sent_at",
835
+ "type": "text",
836
+ "primaryKey": false,
837
+ "notNull": false
838
+ },
839
+ "updated_at": {
840
+ "name": "updated_at",
841
+ "type": "text",
842
+ "primaryKey": false,
843
+ "notNull": true,
844
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
845
+ }
846
+ },
847
+ "indexes": {
848
+ "comments_by_post": {
849
+ "name": "comments_by_post",
850
+ "columns": [
851
+ {
852
+ "expression": "post_id",
853
+ "isExpression": false,
854
+ "asc": true,
855
+ "nulls": "last"
856
+ }
857
+ ],
858
+ "isUnique": false,
859
+ "concurrently": false,
860
+ "method": "btree",
861
+ "with": {}
862
+ },
863
+ "comments_by_status": {
864
+ "name": "comments_by_status",
865
+ "columns": [
866
+ {
867
+ "expression": "status",
868
+ "isExpression": false,
869
+ "asc": true,
870
+ "nulls": "last"
871
+ },
872
+ {
873
+ "expression": "created_at",
874
+ "isExpression": false,
875
+ "asc": true,
876
+ "nulls": "last"
877
+ }
878
+ ],
879
+ "isUnique": false,
880
+ "concurrently": false,
881
+ "method": "btree",
882
+ "with": {}
883
+ },
884
+ "comments_by_channel": {
885
+ "name": "comments_by_channel",
886
+ "columns": [
887
+ {
888
+ "expression": "channel",
889
+ "isExpression": false,
890
+ "asc": true,
891
+ "nulls": "last"
892
+ },
893
+ {
894
+ "expression": "created_at",
895
+ "isExpression": false,
896
+ "asc": false,
897
+ "nulls": "last"
898
+ },
899
+ {
900
+ "expression": "id",
901
+ "isExpression": false,
902
+ "asc": false,
903
+ "nulls": "last"
904
+ }
905
+ ],
906
+ "isUnique": false,
907
+ "concurrently": false,
908
+ "method": "btree",
909
+ "with": {}
910
+ },
911
+ "comments_by_newest": {
912
+ "name": "comments_by_newest",
913
+ "columns": [
914
+ {
915
+ "expression": "created_at",
916
+ "isExpression": false,
917
+ "asc": false,
918
+ "nulls": "last"
919
+ },
920
+ {
921
+ "expression": "id",
922
+ "isExpression": false,
923
+ "asc": false,
924
+ "nulls": "last"
925
+ }
926
+ ],
927
+ "isUnique": false,
928
+ "concurrently": false,
929
+ "method": "btree",
930
+ "with": {}
931
+ },
932
+ "comments_text_trgm": {
933
+ "name": "comments_text_trgm",
934
+ "columns": [
935
+ {
936
+ "expression": "text",
937
+ "isExpression": false,
938
+ "asc": true,
939
+ "nulls": "last",
940
+ "opclass": "gin_trgm_ops"
941
+ }
942
+ ],
943
+ "isUnique": false,
944
+ "concurrently": false,
945
+ "method": "gin",
946
+ "with": {}
947
+ },
948
+ "comments_author_handle_trgm": {
949
+ "name": "comments_author_handle_trgm",
950
+ "columns": [
951
+ {
952
+ "expression": "author_handle",
953
+ "isExpression": false,
954
+ "asc": true,
955
+ "nulls": "last",
956
+ "opclass": "gin_trgm_ops"
957
+ }
958
+ ],
959
+ "isUnique": false,
960
+ "concurrently": false,
961
+ "method": "gin",
962
+ "with": {}
963
+ },
964
+ "comments_author_name_trgm": {
965
+ "name": "comments_author_name_trgm",
966
+ "columns": [
967
+ {
968
+ "expression": "author_name",
969
+ "isExpression": false,
970
+ "asc": true,
971
+ "nulls": "last",
972
+ "opclass": "gin_trgm_ops"
973
+ }
974
+ ],
975
+ "isUnique": false,
976
+ "concurrently": false,
977
+ "method": "gin",
978
+ "with": {}
979
+ }
980
+ },
981
+ "foreignKeys": {
982
+ "comments_post_id_posts_id_fk": {
983
+ "name": "comments_post_id_posts_id_fk",
984
+ "tableFrom": "comments",
985
+ "tableTo": "posts",
986
+ "columnsFrom": [
987
+ "post_id"
988
+ ],
989
+ "columnsTo": [
990
+ "id"
991
+ ],
992
+ "onDelete": "no action",
993
+ "onUpdate": "no action"
994
+ }
995
+ },
996
+ "compositePrimaryKeys": {},
997
+ "uniqueConstraints": {
998
+ "comments_channel_external_unique": {
999
+ "name": "comments_channel_external_unique",
1000
+ "nullsNotDistinct": false,
1001
+ "columns": [
1002
+ "channel",
1003
+ "external_id"
1004
+ ]
1005
+ }
1006
+ },
1007
+ "policies": {},
1008
+ "checkConstraints": {},
1009
+ "isRLSEnabled": false
1010
+ },
1011
+ "public.cursors": {
1012
+ "name": "cursors",
1013
+ "schema": "",
1014
+ "columns": {
1015
+ "key": {
1016
+ "name": "key",
1017
+ "type": "text",
1018
+ "primaryKey": true,
1019
+ "notNull": true
1020
+ },
1021
+ "value": {
1022
+ "name": "value",
1023
+ "type": "text",
1024
+ "primaryKey": false,
1025
+ "notNull": true
1026
+ }
1027
+ },
1028
+ "indexes": {},
1029
+ "foreignKeys": {},
1030
+ "compositePrimaryKeys": {},
1031
+ "uniqueConstraints": {},
1032
+ "policies": {},
1033
+ "checkConstraints": {},
1034
+ "isRLSEnabled": false
1035
+ },
1036
+ "public.draft_snapshots": {
1037
+ "name": "draft_snapshots",
1038
+ "schema": "",
1039
+ "columns": {
1040
+ "launch_id": {
1041
+ "name": "launch_id",
1042
+ "type": "integer",
1043
+ "primaryKey": true,
1044
+ "notNull": true
1045
+ },
1046
+ "pr_number": {
1047
+ "name": "pr_number",
1048
+ "type": "integer",
1049
+ "primaryKey": false,
1050
+ "notNull": true
1051
+ },
1052
+ "url": {
1053
+ "name": "url",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": true
1057
+ },
1058
+ "branch": {
1059
+ "name": "branch",
1060
+ "type": "text",
1061
+ "primaryKey": false,
1062
+ "notNull": true
1063
+ },
1064
+ "head_sha": {
1065
+ "name": "head_sha",
1066
+ "type": "text",
1067
+ "primaryKey": false,
1068
+ "notNull": false
1069
+ },
1070
+ "state": {
1071
+ "name": "state",
1072
+ "type": "text",
1073
+ "primaryKey": false,
1074
+ "notNull": true
1075
+ },
1076
+ "launch_yml": {
1077
+ "name": "launch_yml",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": false
1081
+ },
1082
+ "files": {
1083
+ "name": "files",
1084
+ "type": "jsonb",
1085
+ "primaryKey": false,
1086
+ "notNull": true
1087
+ },
1088
+ "read_at": {
1089
+ "name": "read_at",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true,
1093
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1094
+ }
1095
+ },
1096
+ "indexes": {},
1097
+ "foreignKeys": {
1098
+ "draft_snapshots_launch_id_launches_id_fk": {
1099
+ "name": "draft_snapshots_launch_id_launches_id_fk",
1100
+ "tableFrom": "draft_snapshots",
1101
+ "tableTo": "launches",
1102
+ "columnsFrom": [
1103
+ "launch_id"
1104
+ ],
1105
+ "columnsTo": [
1106
+ "id"
1107
+ ],
1108
+ "onDelete": "no action",
1109
+ "onUpdate": "no action"
1110
+ }
1111
+ },
1112
+ "compositePrimaryKeys": {},
1113
+ "uniqueConstraints": {},
1114
+ "policies": {},
1115
+ "checkConstraints": {},
1116
+ "isRLSEnabled": false
1117
+ },
1118
+ "public.draft_versions": {
1119
+ "name": "draft_versions",
1120
+ "schema": "",
1121
+ "columns": {
1122
+ "id": {
1123
+ "name": "id",
1124
+ "type": "integer",
1125
+ "primaryKey": true,
1126
+ "notNull": true,
1127
+ "identity": {
1128
+ "type": "byDefault",
1129
+ "name": "draft_versions_id_seq",
1130
+ "schema": "public",
1131
+ "increment": "1",
1132
+ "startWith": "1",
1133
+ "minValue": "1",
1134
+ "maxValue": "2147483647",
1135
+ "cache": "1",
1136
+ "cycle": false
1137
+ }
1138
+ },
1139
+ "draft_id": {
1140
+ "name": "draft_id",
1141
+ "type": "integer",
1142
+ "primaryKey": false,
1143
+ "notNull": true
1144
+ },
1145
+ "n": {
1146
+ "name": "n",
1147
+ "type": "integer",
1148
+ "primaryKey": false,
1149
+ "notNull": true
1150
+ },
1151
+ "body": {
1152
+ "name": "body",
1153
+ "type": "text",
1154
+ "primaryKey": false,
1155
+ "notNull": true
1156
+ },
1157
+ "fields": {
1158
+ "name": "fields",
1159
+ "type": "jsonb",
1160
+ "primaryKey": false,
1161
+ "notNull": true,
1162
+ "default": "'{}'::jsonb"
1163
+ },
1164
+ "origin": {
1165
+ "name": "origin",
1166
+ "type": "text",
1167
+ "primaryKey": false,
1168
+ "notNull": true
1169
+ },
1170
+ "author": {
1171
+ "name": "author",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": false
1175
+ },
1176
+ "pack_id": {
1177
+ "name": "pack_id",
1178
+ "type": "integer",
1179
+ "primaryKey": false,
1180
+ "notNull": false
1181
+ },
1182
+ "import_batch": {
1183
+ "name": "import_batch",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": false
1187
+ },
1188
+ "created_at": {
1189
+ "name": "created_at",
1190
+ "type": "text",
1191
+ "primaryKey": false,
1192
+ "notNull": true,
1193
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1194
+ }
1195
+ },
1196
+ "indexes": {},
1197
+ "foreignKeys": {
1198
+ "draft_versions_draft_id_drafts_id_fk": {
1199
+ "name": "draft_versions_draft_id_drafts_id_fk",
1200
+ "tableFrom": "draft_versions",
1201
+ "tableTo": "drafts",
1202
+ "columnsFrom": [
1203
+ "draft_id"
1204
+ ],
1205
+ "columnsTo": [
1206
+ "id"
1207
+ ],
1208
+ "onDelete": "cascade",
1209
+ "onUpdate": "no action"
1210
+ },
1211
+ "draft_versions_pack_id_packs_id_fk": {
1212
+ "name": "draft_versions_pack_id_packs_id_fk",
1213
+ "tableFrom": "draft_versions",
1214
+ "tableTo": "packs",
1215
+ "columnsFrom": [
1216
+ "pack_id"
1217
+ ],
1218
+ "columnsTo": [
1219
+ "id"
1220
+ ],
1221
+ "onDelete": "set null",
1222
+ "onUpdate": "no action"
1223
+ }
1224
+ },
1225
+ "compositePrimaryKeys": {},
1226
+ "uniqueConstraints": {
1227
+ "draft_versions_n_unique": {
1228
+ "name": "draft_versions_n_unique",
1229
+ "nullsNotDistinct": false,
1230
+ "columns": [
1231
+ "draft_id",
1232
+ "n"
1233
+ ]
1234
+ }
1235
+ },
1236
+ "policies": {},
1237
+ "checkConstraints": {},
1238
+ "isRLSEnabled": false
1239
+ },
1240
+ "public.drafts": {
1241
+ "name": "drafts",
1242
+ "schema": "",
1243
+ "columns": {
1244
+ "id": {
1245
+ "name": "id",
1246
+ "type": "integer",
1247
+ "primaryKey": true,
1248
+ "notNull": true,
1249
+ "identity": {
1250
+ "type": "byDefault",
1251
+ "name": "drafts_id_seq",
1252
+ "schema": "public",
1253
+ "increment": "1",
1254
+ "startWith": "1",
1255
+ "minValue": "1",
1256
+ "maxValue": "2147483647",
1257
+ "cache": "1",
1258
+ "cycle": false
1259
+ }
1260
+ },
1261
+ "launch_id": {
1262
+ "name": "launch_id",
1263
+ "type": "integer",
1264
+ "primaryKey": false,
1265
+ "notNull": true
1266
+ },
1267
+ "channel": {
1268
+ "name": "channel",
1269
+ "type": "text",
1270
+ "primaryKey": false,
1271
+ "notNull": true
1272
+ },
1273
+ "piece": {
1274
+ "name": "piece",
1275
+ "type": "text",
1276
+ "primaryKey": false,
1277
+ "notNull": true
1278
+ },
1279
+ "current_version_id": {
1280
+ "name": "current_version_id",
1281
+ "type": "integer",
1282
+ "primaryKey": false,
1283
+ "notNull": false
1284
+ },
1285
+ "import_batch": {
1286
+ "name": "import_batch",
1287
+ "type": "text",
1288
+ "primaryKey": false,
1289
+ "notNull": false
1290
+ },
1291
+ "created_at": {
1292
+ "name": "created_at",
1293
+ "type": "text",
1294
+ "primaryKey": false,
1295
+ "notNull": true,
1296
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1297
+ },
1298
+ "updated_at": {
1299
+ "name": "updated_at",
1300
+ "type": "text",
1301
+ "primaryKey": false,
1302
+ "notNull": true,
1303
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1304
+ }
1305
+ },
1306
+ "indexes": {},
1307
+ "foreignKeys": {
1308
+ "drafts_launch_id_launches_id_fk": {
1309
+ "name": "drafts_launch_id_launches_id_fk",
1310
+ "tableFrom": "drafts",
1311
+ "tableTo": "launches",
1312
+ "columnsFrom": [
1313
+ "launch_id"
1314
+ ],
1315
+ "columnsTo": [
1316
+ "id"
1317
+ ],
1318
+ "onDelete": "cascade",
1319
+ "onUpdate": "no action"
1320
+ },
1321
+ "drafts_current_version_id_draft_versions_id_fk": {
1322
+ "name": "drafts_current_version_id_draft_versions_id_fk",
1323
+ "tableFrom": "drafts",
1324
+ "tableTo": "draft_versions",
1325
+ "columnsFrom": [
1326
+ "current_version_id"
1327
+ ],
1328
+ "columnsTo": [
1329
+ "id"
1330
+ ],
1331
+ "onDelete": "set null",
1332
+ "onUpdate": "no action"
1333
+ }
1334
+ },
1335
+ "compositePrimaryKeys": {},
1336
+ "uniqueConstraints": {
1337
+ "drafts_piece_unique": {
1338
+ "name": "drafts_piece_unique",
1339
+ "nullsNotDistinct": false,
1340
+ "columns": [
1341
+ "launch_id",
1342
+ "channel",
1343
+ "piece"
1344
+ ]
1345
+ }
1346
+ },
1347
+ "policies": {},
1348
+ "checkConstraints": {},
1349
+ "isRLSEnabled": false
1350
+ },
1351
+ "public.jobs": {
1352
+ "name": "jobs",
1353
+ "schema": "",
1354
+ "columns": {
1355
+ "id": {
1356
+ "name": "id",
1357
+ "type": "text",
1358
+ "primaryKey": true,
1359
+ "notNull": true
1360
+ },
1361
+ "queue": {
1362
+ "name": "queue",
1363
+ "type": "text",
1364
+ "primaryKey": false,
1365
+ "notNull": true
1366
+ },
1367
+ "title": {
1368
+ "name": "title",
1369
+ "type": "text",
1370
+ "primaryKey": false,
1371
+ "notNull": true
1372
+ },
1373
+ "launch_id": {
1374
+ "name": "launch_id",
1375
+ "type": "integer",
1376
+ "primaryKey": false,
1377
+ "notNull": false
1378
+ },
1379
+ "state": {
1380
+ "name": "state",
1381
+ "type": "text",
1382
+ "primaryKey": false,
1383
+ "notNull": true,
1384
+ "default": "'created'"
1385
+ },
1386
+ "attempts": {
1387
+ "name": "attempts",
1388
+ "type": "integer",
1389
+ "primaryKey": false,
1390
+ "notNull": true,
1391
+ "default": 0
1392
+ },
1393
+ "log": {
1394
+ "name": "log",
1395
+ "type": "jsonb",
1396
+ "primaryKey": false,
1397
+ "notNull": true,
1398
+ "default": "'[]'::jsonb"
1399
+ },
1400
+ "link": {
1401
+ "name": "link",
1402
+ "type": "text",
1403
+ "primaryKey": false,
1404
+ "notNull": false
1405
+ },
1406
+ "created_at": {
1407
+ "name": "created_at",
1408
+ "type": "text",
1409
+ "primaryKey": false,
1410
+ "notNull": true,
1411
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1412
+ },
1413
+ "started_at": {
1414
+ "name": "started_at",
1415
+ "type": "text",
1416
+ "primaryKey": false,
1417
+ "notNull": false
1418
+ },
1419
+ "ended_at": {
1420
+ "name": "ended_at",
1421
+ "type": "text",
1422
+ "primaryKey": false,
1423
+ "notNull": false
1424
+ }
1425
+ },
1426
+ "indexes": {
1427
+ "jobs_by_created": {
1428
+ "name": "jobs_by_created",
1429
+ "columns": [
1430
+ {
1431
+ "expression": "created_at",
1432
+ "isExpression": false,
1433
+ "asc": true,
1434
+ "nulls": "last"
1435
+ }
1436
+ ],
1437
+ "isUnique": false,
1438
+ "concurrently": false,
1439
+ "method": "btree",
1440
+ "with": {}
1441
+ },
1442
+ "jobs_by_launch": {
1443
+ "name": "jobs_by_launch",
1444
+ "columns": [
1445
+ {
1446
+ "expression": "launch_id",
1447
+ "isExpression": false,
1448
+ "asc": true,
1449
+ "nulls": "last"
1450
+ }
1451
+ ],
1452
+ "isUnique": false,
1453
+ "concurrently": false,
1454
+ "method": "btree",
1455
+ "with": {}
1456
+ }
1457
+ },
1458
+ "foreignKeys": {
1459
+ "jobs_launch_id_launches_id_fk": {
1460
+ "name": "jobs_launch_id_launches_id_fk",
1461
+ "tableFrom": "jobs",
1462
+ "tableTo": "launches",
1463
+ "columnsFrom": [
1464
+ "launch_id"
1465
+ ],
1466
+ "columnsTo": [
1467
+ "id"
1468
+ ],
1469
+ "onDelete": "set null",
1470
+ "onUpdate": "no action"
1471
+ }
1472
+ },
1473
+ "compositePrimaryKeys": {},
1474
+ "uniqueConstraints": {},
1475
+ "policies": {},
1476
+ "checkConstraints": {},
1477
+ "isRLSEnabled": false
1478
+ },
1479
+ "public.launch_channels": {
1480
+ "name": "launch_channels",
1481
+ "schema": "",
1482
+ "columns": {
1483
+ "launch_id": {
1484
+ "name": "launch_id",
1485
+ "type": "integer",
1486
+ "primaryKey": false,
1487
+ "notNull": true
1488
+ },
1489
+ "channel": {
1490
+ "name": "channel",
1491
+ "type": "text",
1492
+ "primaryKey": false,
1493
+ "notNull": true
1494
+ },
1495
+ "mode": {
1496
+ "name": "mode",
1497
+ "type": "text",
1498
+ "primaryKey": false,
1499
+ "notNull": true
1500
+ },
1501
+ "account_id": {
1502
+ "name": "account_id",
1503
+ "type": "integer",
1504
+ "primaryKey": false,
1505
+ "notNull": false
1506
+ },
1507
+ "options": {
1508
+ "name": "options",
1509
+ "type": "jsonb",
1510
+ "primaryKey": false,
1511
+ "notNull": true,
1512
+ "default": "'{}'::jsonb"
1513
+ },
1514
+ "note": {
1515
+ "name": "note",
1516
+ "type": "text",
1517
+ "primaryKey": false,
1518
+ "notNull": false
1519
+ },
1520
+ "import_batch": {
1521
+ "name": "import_batch",
1522
+ "type": "text",
1523
+ "primaryKey": false,
1524
+ "notNull": false
1525
+ },
1526
+ "updated_at": {
1527
+ "name": "updated_at",
1528
+ "type": "text",
1529
+ "primaryKey": false,
1530
+ "notNull": true,
1531
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1532
+ }
1533
+ },
1534
+ "indexes": {},
1535
+ "foreignKeys": {
1536
+ "launch_channels_launch_id_launches_id_fk": {
1537
+ "name": "launch_channels_launch_id_launches_id_fk",
1538
+ "tableFrom": "launch_channels",
1539
+ "tableTo": "launches",
1540
+ "columnsFrom": [
1541
+ "launch_id"
1542
+ ],
1543
+ "columnsTo": [
1544
+ "id"
1545
+ ],
1546
+ "onDelete": "cascade",
1547
+ "onUpdate": "no action"
1548
+ },
1549
+ "launch_channels_account_id_accounts_id_fk": {
1550
+ "name": "launch_channels_account_id_accounts_id_fk",
1551
+ "tableFrom": "launch_channels",
1552
+ "tableTo": "accounts",
1553
+ "columnsFrom": [
1554
+ "account_id"
1555
+ ],
1556
+ "columnsTo": [
1557
+ "id"
1558
+ ],
1559
+ "onDelete": "set null",
1560
+ "onUpdate": "no action"
1561
+ }
1562
+ },
1563
+ "compositePrimaryKeys": {
1564
+ "launch_channels_key": {
1565
+ "name": "launch_channels_key",
1566
+ "columns": [
1567
+ "launch_id",
1568
+ "channel"
1569
+ ]
1570
+ }
1571
+ },
1572
+ "uniqueConstraints": {},
1573
+ "policies": {},
1574
+ "checkConstraints": {},
1575
+ "isRLSEnabled": false
1576
+ },
1577
+ "public.launch_deletions": {
1578
+ "name": "launch_deletions",
1579
+ "schema": "",
1580
+ "columns": {
1581
+ "id": {
1582
+ "name": "id",
1583
+ "type": "integer",
1584
+ "primaryKey": true,
1585
+ "notNull": true,
1586
+ "identity": {
1587
+ "type": "byDefault",
1588
+ "name": "launch_deletions_id_seq",
1589
+ "schema": "public",
1590
+ "increment": "1",
1591
+ "startWith": "1",
1592
+ "minValue": "1",
1593
+ "maxValue": "2147483647",
1594
+ "cache": "1",
1595
+ "cycle": false
1596
+ }
1597
+ },
1598
+ "launch_id": {
1599
+ "name": "launch_id",
1600
+ "type": "integer",
1601
+ "primaryKey": false,
1602
+ "notNull": true
1603
+ },
1604
+ "dedupe_key": {
1605
+ "name": "dedupe_key",
1606
+ "type": "text",
1607
+ "primaryKey": false,
1608
+ "notNull": true
1609
+ },
1610
+ "repo": {
1611
+ "name": "repo",
1612
+ "type": "text",
1613
+ "primaryKey": false,
1614
+ "notNull": true
1615
+ },
1616
+ "ref": {
1617
+ "name": "ref",
1618
+ "type": "text",
1619
+ "primaryKey": false,
1620
+ "notNull": true
1621
+ },
1622
+ "mode": {
1623
+ "name": "mode",
1624
+ "type": "text",
1625
+ "primaryKey": false,
1626
+ "notNull": true
1627
+ },
1628
+ "by": {
1629
+ "name": "by",
1630
+ "type": "text",
1631
+ "primaryKey": false,
1632
+ "notNull": true
1633
+ },
1634
+ "at": {
1635
+ "name": "at",
1636
+ "type": "text",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1640
+ },
1641
+ "channels": {
1642
+ "name": "channels",
1643
+ "type": "jsonb",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "default": "'[]'::jsonb"
1647
+ },
1648
+ "article_links": {
1649
+ "name": "article_links",
1650
+ "type": "integer",
1651
+ "primaryKey": false,
1652
+ "notNull": false
1653
+ }
1654
+ },
1655
+ "indexes": {
1656
+ "launch_deletions_by_key": {
1657
+ "name": "launch_deletions_by_key",
1658
+ "columns": [
1659
+ {
1660
+ "expression": "dedupe_key",
1661
+ "isExpression": false,
1662
+ "asc": true,
1663
+ "nulls": "last"
1664
+ }
1665
+ ],
1666
+ "isUnique": false,
1667
+ "concurrently": false,
1668
+ "method": "btree",
1669
+ "with": {}
1670
+ },
1671
+ "launch_deletions_by_launch": {
1672
+ "name": "launch_deletions_by_launch",
1673
+ "columns": [
1674
+ {
1675
+ "expression": "launch_id",
1676
+ "isExpression": false,
1677
+ "asc": true,
1678
+ "nulls": "last"
1679
+ }
1680
+ ],
1681
+ "isUnique": false,
1682
+ "concurrently": false,
1683
+ "method": "btree",
1684
+ "with": {}
1685
+ }
1686
+ },
1687
+ "foreignKeys": {},
1688
+ "compositePrimaryKeys": {},
1689
+ "uniqueConstraints": {},
1690
+ "policies": {},
1691
+ "checkConstraints": {},
1692
+ "isRLSEnabled": false
1693
+ },
1694
+ "public.launch_imports": {
1695
+ "name": "launch_imports",
1696
+ "schema": "",
1697
+ "columns": {
1698
+ "id": {
1699
+ "name": "id",
1700
+ "type": "integer",
1701
+ "primaryKey": true,
1702
+ "notNull": true,
1703
+ "identity": {
1704
+ "type": "byDefault",
1705
+ "name": "launch_imports_id_seq",
1706
+ "schema": "public",
1707
+ "increment": "1",
1708
+ "startWith": "1",
1709
+ "minValue": "1",
1710
+ "maxValue": "2147483647",
1711
+ "cache": "1",
1712
+ "cycle": false
1713
+ }
1714
+ },
1715
+ "batch": {
1716
+ "name": "batch",
1717
+ "type": "text",
1718
+ "primaryKey": false,
1719
+ "notNull": true
1720
+ },
1721
+ "launch_id": {
1722
+ "name": "launch_id",
1723
+ "type": "integer",
1724
+ "primaryKey": false,
1725
+ "notNull": true
1726
+ },
1727
+ "action": {
1728
+ "name": "action",
1729
+ "type": "text",
1730
+ "primaryKey": false,
1731
+ "notNull": true
1732
+ },
1733
+ "before": {
1734
+ "name": "before",
1735
+ "type": "jsonb",
1736
+ "primaryKey": false,
1737
+ "notNull": true
1738
+ },
1739
+ "summary": {
1740
+ "name": "summary",
1741
+ "type": "jsonb",
1742
+ "primaryKey": false,
1743
+ "notNull": true,
1744
+ "default": "'{}'::jsonb"
1745
+ },
1746
+ "at": {
1747
+ "name": "at",
1748
+ "type": "text",
1749
+ "primaryKey": false,
1750
+ "notNull": true,
1751
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1752
+ },
1753
+ "rolled_back_at": {
1754
+ "name": "rolled_back_at",
1755
+ "type": "text",
1756
+ "primaryKey": false,
1757
+ "notNull": false
1758
+ }
1759
+ },
1760
+ "indexes": {
1761
+ "launch_imports_by_batch": {
1762
+ "name": "launch_imports_by_batch",
1763
+ "columns": [
1764
+ {
1765
+ "expression": "batch",
1766
+ "isExpression": false,
1767
+ "asc": true,
1768
+ "nulls": "last"
1769
+ }
1770
+ ],
1771
+ "isUnique": false,
1772
+ "concurrently": false,
1773
+ "method": "btree",
1774
+ "with": {}
1775
+ },
1776
+ "launch_imports_by_launch": {
1777
+ "name": "launch_imports_by_launch",
1778
+ "columns": [
1779
+ {
1780
+ "expression": "launch_id",
1781
+ "isExpression": false,
1782
+ "asc": true,
1783
+ "nulls": "last"
1784
+ }
1785
+ ],
1786
+ "isUnique": false,
1787
+ "concurrently": false,
1788
+ "method": "btree",
1789
+ "with": {}
1790
+ }
1791
+ },
1792
+ "foreignKeys": {},
1793
+ "compositePrimaryKeys": {},
1794
+ "uniqueConstraints": {},
1795
+ "policies": {},
1796
+ "checkConstraints": {},
1797
+ "isRLSEnabled": false
1798
+ },
1799
+ "public.launch_sources": {
1800
+ "name": "launch_sources",
1801
+ "schema": "",
1802
+ "columns": {
1803
+ "id": {
1804
+ "name": "id",
1805
+ "type": "integer",
1806
+ "primaryKey": true,
1807
+ "notNull": true,
1808
+ "identity": {
1809
+ "type": "byDefault",
1810
+ "name": "launch_sources_id_seq",
1811
+ "schema": "public",
1812
+ "increment": "1",
1813
+ "startWith": "1",
1814
+ "minValue": "1",
1815
+ "maxValue": "2147483647",
1816
+ "cache": "1",
1817
+ "cycle": false
1818
+ }
1819
+ },
1820
+ "launch_id": {
1821
+ "name": "launch_id",
1822
+ "type": "integer",
1823
+ "primaryKey": false,
1824
+ "notNull": true
1825
+ },
1826
+ "position": {
1827
+ "name": "position",
1828
+ "type": "integer",
1829
+ "primaryKey": false,
1830
+ "notNull": true
1831
+ },
1832
+ "kind": {
1833
+ "name": "kind",
1834
+ "type": "text",
1835
+ "primaryKey": false,
1836
+ "notNull": true
1837
+ },
1838
+ "role": {
1839
+ "name": "role",
1840
+ "type": "text",
1841
+ "primaryKey": false,
1842
+ "notNull": true,
1843
+ "default": "'context'"
1844
+ },
1845
+ "repo": {
1846
+ "name": "repo",
1847
+ "type": "text",
1848
+ "primaryKey": false,
1849
+ "notNull": false
1850
+ },
1851
+ "ref": {
1852
+ "name": "ref",
1853
+ "type": "text",
1854
+ "primaryKey": false,
1855
+ "notNull": false
1856
+ },
1857
+ "sha": {
1858
+ "name": "sha",
1859
+ "type": "text",
1860
+ "primaryKey": false,
1861
+ "notNull": false
1862
+ },
1863
+ "url": {
1864
+ "name": "url",
1865
+ "type": "text",
1866
+ "primaryKey": false,
1867
+ "notNull": false
1868
+ },
1869
+ "fetched_at": {
1870
+ "name": "fetched_at",
1871
+ "type": "text",
1872
+ "primaryKey": false,
1873
+ "notNull": false
1874
+ },
1875
+ "http_status": {
1876
+ "name": "http_status",
1877
+ "type": "integer",
1878
+ "primaryKey": false,
1879
+ "notNull": false
1880
+ },
1881
+ "content_type": {
1882
+ "name": "content_type",
1883
+ "type": "text",
1884
+ "primaryKey": false,
1885
+ "notNull": false
1886
+ },
1887
+ "text": {
1888
+ "name": "text",
1889
+ "type": "text",
1890
+ "primaryKey": false,
1891
+ "notNull": false
1892
+ },
1893
+ "media_id": {
1894
+ "name": "media_id",
1895
+ "type": "integer",
1896
+ "primaryKey": false,
1897
+ "notNull": false
1898
+ },
1899
+ "meta": {
1900
+ "name": "meta",
1901
+ "type": "jsonb",
1902
+ "primaryKey": false,
1903
+ "notNull": true,
1904
+ "default": "'{}'::jsonb"
1905
+ },
1906
+ "content_hash": {
1907
+ "name": "content_hash",
1908
+ "type": "text",
1909
+ "primaryKey": false,
1910
+ "notNull": false
1911
+ },
1912
+ "import_batch": {
1913
+ "name": "import_batch",
1914
+ "type": "text",
1915
+ "primaryKey": false,
1916
+ "notNull": false
1917
+ },
1918
+ "created_at": {
1919
+ "name": "created_at",
1920
+ "type": "text",
1921
+ "primaryKey": false,
1922
+ "notNull": true,
1923
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1924
+ }
1925
+ },
1926
+ "indexes": {},
1927
+ "foreignKeys": {
1928
+ "launch_sources_launch_id_launches_id_fk": {
1929
+ "name": "launch_sources_launch_id_launches_id_fk",
1930
+ "tableFrom": "launch_sources",
1931
+ "tableTo": "launches",
1932
+ "columnsFrom": [
1933
+ "launch_id"
1934
+ ],
1935
+ "columnsTo": [
1936
+ "id"
1937
+ ],
1938
+ "onDelete": "cascade",
1939
+ "onUpdate": "no action"
1940
+ },
1941
+ "launch_sources_media_id_media_id_fk": {
1942
+ "name": "launch_sources_media_id_media_id_fk",
1943
+ "tableFrom": "launch_sources",
1944
+ "tableTo": "media",
1945
+ "columnsFrom": [
1946
+ "media_id"
1947
+ ],
1948
+ "columnsTo": [
1949
+ "id"
1950
+ ],
1951
+ "onDelete": "set null",
1952
+ "onUpdate": "no action"
1953
+ }
1954
+ },
1955
+ "compositePrimaryKeys": {},
1956
+ "uniqueConstraints": {
1957
+ "launch_sources_position_unique": {
1958
+ "name": "launch_sources_position_unique",
1959
+ "nullsNotDistinct": false,
1960
+ "columns": [
1961
+ "launch_id",
1962
+ "position"
1963
+ ]
1964
+ }
1965
+ },
1966
+ "policies": {},
1967
+ "checkConstraints": {},
1968
+ "isRLSEnabled": false
1969
+ },
1970
+ "public.launches": {
1971
+ "name": "launches",
1972
+ "schema": "",
1973
+ "columns": {
1974
+ "id": {
1975
+ "name": "id",
1976
+ "type": "integer",
1977
+ "primaryKey": true,
1978
+ "notNull": true,
1979
+ "identity": {
1980
+ "type": "byDefault",
1981
+ "name": "launches_id_seq",
1982
+ "schema": "public",
1983
+ "increment": "1",
1984
+ "startWith": "1",
1985
+ "minValue": "1",
1986
+ "maxValue": "2147483647",
1987
+ "cache": "1",
1988
+ "cycle": false
1989
+ }
1990
+ },
1991
+ "repo": {
1992
+ "name": "repo",
1993
+ "type": "text",
1994
+ "primaryKey": false,
1995
+ "notNull": true
1996
+ },
1997
+ "ref": {
1998
+ "name": "ref",
1999
+ "type": "text",
2000
+ "primaryKey": false,
2001
+ "notNull": true
2002
+ },
2003
+ "trigger": {
2004
+ "name": "trigger",
2005
+ "type": "text",
2006
+ "primaryKey": false,
2007
+ "notNull": true
2008
+ },
2009
+ "kind": {
2010
+ "name": "kind",
2011
+ "type": "text",
2012
+ "primaryKey": false,
2013
+ "notNull": true
2014
+ },
2015
+ "brand": {
2016
+ "name": "brand",
2017
+ "type": "text",
2018
+ "primaryKey": false,
2019
+ "notNull": true
2020
+ },
2021
+ "status": {
2022
+ "name": "status",
2023
+ "type": "text",
2024
+ "primaryKey": false,
2025
+ "notNull": true
2026
+ },
2027
+ "detail": {
2028
+ "name": "detail",
2029
+ "type": "text",
2030
+ "primaryKey": false,
2031
+ "notNull": false
2032
+ },
2033
+ "created_at": {
2034
+ "name": "created_at",
2035
+ "type": "text",
2036
+ "primaryKey": false,
2037
+ "notNull": true,
2038
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
2039
+ },
2040
+ "updated_at": {
2041
+ "name": "updated_at",
2042
+ "type": "text",
2043
+ "primaryKey": false,
2044
+ "notNull": true,
2045
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
2046
+ },
2047
+ "title": {
2048
+ "name": "title",
2049
+ "type": "text",
2050
+ "primaryKey": false,
2051
+ "notNull": false
2052
+ },
2053
+ "model": {
2054
+ "name": "model",
2055
+ "type": "text",
2056
+ "primaryKey": false,
2057
+ "notNull": true,
2058
+ "default": "'legacy'"
2059
+ },
2060
+ "dedupe_key": {
2061
+ "name": "dedupe_key",
2062
+ "type": "text",
2063
+ "primaryKey": false,
2064
+ "notNull": false
2065
+ },
2066
+ "channels_source": {
2067
+ "name": "channels_source",
2068
+ "type": "text",
2069
+ "primaryKey": false,
2070
+ "notNull": false
2071
+ },
2072
+ "deleted_at": {
2073
+ "name": "deleted_at",
2074
+ "type": "text",
2075
+ "primaryKey": false,
2076
+ "notNull": false
2077
+ },
2078
+ "approved_at": {
2079
+ "name": "approved_at",
2080
+ "type": "text",
2081
+ "primaryKey": false,
2082
+ "notNull": false
2083
+ }
2084
+ },
2085
+ "indexes": {
2086
+ "launches_by_newest": {
2087
+ "name": "launches_by_newest",
2088
+ "columns": [
2089
+ {
2090
+ "expression": "created_at",
2091
+ "isExpression": false,
2092
+ "asc": false,
2093
+ "nulls": "last"
2094
+ },
2095
+ {
2096
+ "expression": "id",
2097
+ "isExpression": false,
2098
+ "asc": false,
2099
+ "nulls": "last"
2100
+ }
2101
+ ],
2102
+ "isUnique": false,
2103
+ "concurrently": false,
2104
+ "method": "btree",
2105
+ "with": {}
2106
+ },
2107
+ "launches_by_status": {
2108
+ "name": "launches_by_status",
2109
+ "columns": [
2110
+ {
2111
+ "expression": "status",
2112
+ "isExpression": false,
2113
+ "asc": true,
2114
+ "nulls": "last"
2115
+ },
2116
+ {
2117
+ "expression": "created_at",
2118
+ "isExpression": false,
2119
+ "asc": false,
2120
+ "nulls": "last"
2121
+ },
2122
+ {
2123
+ "expression": "id",
2124
+ "isExpression": false,
2125
+ "asc": false,
2126
+ "nulls": "last"
2127
+ }
2128
+ ],
2129
+ "isUnique": false,
2130
+ "concurrently": false,
2131
+ "method": "btree",
2132
+ "with": {}
2133
+ },
2134
+ "launches_by_repo": {
2135
+ "name": "launches_by_repo",
2136
+ "columns": [
2137
+ {
2138
+ "expression": "repo",
2139
+ "isExpression": false,
2140
+ "asc": true,
2141
+ "nulls": "last"
2142
+ },
2143
+ {
2144
+ "expression": "created_at",
2145
+ "isExpression": false,
2146
+ "asc": false,
2147
+ "nulls": "last"
2148
+ },
2149
+ {
2150
+ "expression": "id",
2151
+ "isExpression": false,
2152
+ "asc": false,
2153
+ "nulls": "last"
2154
+ }
2155
+ ],
2156
+ "isUnique": false,
2157
+ "concurrently": false,
2158
+ "method": "btree",
2159
+ "with": {}
2160
+ }
2161
+ },
2162
+ "foreignKeys": {},
2163
+ "compositePrimaryKeys": {},
2164
+ "uniqueConstraints": {
2165
+ "launches_repo_ref_unique": {
2166
+ "name": "launches_repo_ref_unique",
2167
+ "nullsNotDistinct": false,
2168
+ "columns": [
2169
+ "repo",
2170
+ "ref"
2171
+ ]
2172
+ },
2173
+ "launches_dedupe_key_unique": {
2174
+ "name": "launches_dedupe_key_unique",
2175
+ "nullsNotDistinct": false,
2176
+ "columns": [
2177
+ "dedupe_key"
2178
+ ]
2179
+ }
2180
+ },
2181
+ "policies": {},
2182
+ "checkConstraints": {},
2183
+ "isRLSEnabled": false
2184
+ },
2185
+ "public.media": {
2186
+ "name": "media",
2187
+ "schema": "",
2188
+ "columns": {
2189
+ "id": {
2190
+ "name": "id",
2191
+ "type": "integer",
2192
+ "primaryKey": true,
2193
+ "notNull": true,
2194
+ "identity": {
2195
+ "type": "byDefault",
2196
+ "name": "media_id_seq",
2197
+ "schema": "public",
2198
+ "increment": "1",
2199
+ "startWith": "1",
2200
+ "minValue": "1",
2201
+ "maxValue": "2147483647",
2202
+ "cache": "1",
2203
+ "cycle": false
2204
+ }
2205
+ },
2206
+ "launch_id": {
2207
+ "name": "launch_id",
2208
+ "type": "integer",
2209
+ "primaryKey": false,
2210
+ "notNull": false
2211
+ },
2212
+ "sha256": {
2213
+ "name": "sha256",
2214
+ "type": "text",
2215
+ "primaryKey": false,
2216
+ "notNull": true
2217
+ },
2218
+ "kind": {
2219
+ "name": "kind",
2220
+ "type": "text",
2221
+ "primaryKey": false,
2222
+ "notNull": true
2223
+ },
2224
+ "mime": {
2225
+ "name": "mime",
2226
+ "type": "text",
2227
+ "primaryKey": false,
2228
+ "notNull": true
2229
+ },
2230
+ "bytes": {
2231
+ "name": "bytes",
2232
+ "type": "bigint",
2233
+ "primaryKey": false,
2234
+ "notNull": true
2235
+ },
2236
+ "width": {
2237
+ "name": "width",
2238
+ "type": "integer",
2239
+ "primaryKey": false,
2240
+ "notNull": false
2241
+ },
2242
+ "height": {
2243
+ "name": "height",
2244
+ "type": "integer",
2245
+ "primaryKey": false,
2246
+ "notNull": false
2247
+ },
2248
+ "duration_seconds": {
2249
+ "name": "duration_seconds",
2250
+ "type": "double precision",
2251
+ "primaryKey": false,
2252
+ "notNull": false
2253
+ },
2254
+ "storage": {
2255
+ "name": "storage",
2256
+ "type": "text",
2257
+ "primaryKey": false,
2258
+ "notNull": true
2259
+ },
2260
+ "path": {
2261
+ "name": "path",
2262
+ "type": "text",
2263
+ "primaryKey": false,
2264
+ "notNull": true
2265
+ },
2266
+ "role": {
2267
+ "name": "role",
2268
+ "type": "text",
2269
+ "primaryKey": false,
2270
+ "notNull": true
2271
+ },
2272
+ "public_path": {
2273
+ "name": "public_path",
2274
+ "type": "text",
2275
+ "primaryKey": false,
2276
+ "notNull": false
2277
+ },
2278
+ "import_batch": {
2279
+ "name": "import_batch",
2280
+ "type": "text",
2281
+ "primaryKey": false,
2282
+ "notNull": false
2283
+ },
2284
+ "created_at": {
2285
+ "name": "created_at",
2286
+ "type": "text",
2287
+ "primaryKey": false,
2288
+ "notNull": true,
2289
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
2290
+ }
2291
+ },
2292
+ "indexes": {
2293
+ "media_by_sha256": {
2294
+ "name": "media_by_sha256",
2295
+ "columns": [
2296
+ {
2297
+ "expression": "sha256",
2298
+ "isExpression": false,
2299
+ "asc": true,
2300
+ "nulls": "last"
2301
+ }
2302
+ ],
2303
+ "isUnique": false,
2304
+ "concurrently": false,
2305
+ "method": "btree",
2306
+ "with": {}
2307
+ }
2308
+ },
2309
+ "foreignKeys": {
2310
+ "media_launch_id_launches_id_fk": {
2311
+ "name": "media_launch_id_launches_id_fk",
2312
+ "tableFrom": "media",
2313
+ "tableTo": "launches",
2314
+ "columnsFrom": [
2315
+ "launch_id"
2316
+ ],
2317
+ "columnsTo": [
2318
+ "id"
2319
+ ],
2320
+ "onDelete": "cascade",
2321
+ "onUpdate": "no action"
2322
+ }
2323
+ },
2324
+ "compositePrimaryKeys": {},
2325
+ "uniqueConstraints": {
2326
+ "media_launch_sha256_unique": {
2327
+ "name": "media_launch_sha256_unique",
2328
+ "nullsNotDistinct": true,
2329
+ "columns": [
2330
+ "launch_id",
2331
+ "sha256"
2332
+ ]
2333
+ }
2334
+ },
2335
+ "policies": {},
2336
+ "checkConstraints": {},
2337
+ "isRLSEnabled": false
2338
+ },
2339
+ "public.metric_days": {
2340
+ "name": "metric_days",
2341
+ "schema": "",
2342
+ "columns": {
2343
+ "launch_id": {
2344
+ "name": "launch_id",
2345
+ "type": "integer",
2346
+ "primaryKey": false,
2347
+ "notNull": true
2348
+ },
2349
+ "post_id": {
2350
+ "name": "post_id",
2351
+ "type": "integer",
2352
+ "primaryKey": false,
2353
+ "notNull": false
2354
+ },
2355
+ "source": {
2356
+ "name": "source",
2357
+ "type": "text",
2358
+ "primaryKey": false,
2359
+ "notNull": true
2360
+ },
2361
+ "name": {
2362
+ "name": "name",
2363
+ "type": "text",
2364
+ "primaryKey": false,
2365
+ "notNull": true
2366
+ },
2367
+ "day": {
2368
+ "name": "day",
2369
+ "type": "text",
2370
+ "primaryKey": false,
2371
+ "notNull": true
2372
+ },
2373
+ "value": {
2374
+ "name": "value",
2375
+ "type": "double precision",
2376
+ "primaryKey": false,
2377
+ "notNull": true
2378
+ },
2379
+ "read_at": {
2380
+ "name": "read_at",
2381
+ "type": "text",
2382
+ "primaryKey": false,
2383
+ "notNull": true
2384
+ }
2385
+ },
2386
+ "indexes": {
2387
+ "metric_days_by_launch": {
2388
+ "name": "metric_days_by_launch",
2389
+ "columns": [
2390
+ {
2391
+ "expression": "launch_id",
2392
+ "isExpression": false,
2393
+ "asc": true,
2394
+ "nulls": "last"
2395
+ },
2396
+ {
2397
+ "expression": "source",
2398
+ "isExpression": false,
2399
+ "asc": true,
2400
+ "nulls": "last"
2401
+ },
2402
+ {
2403
+ "expression": "name",
2404
+ "isExpression": false,
2405
+ "asc": true,
2406
+ "nulls": "last"
2407
+ },
2408
+ {
2409
+ "expression": "day",
2410
+ "isExpression": false,
2411
+ "asc": true,
2412
+ "nulls": "last"
2413
+ }
2414
+ ],
2415
+ "isUnique": false,
2416
+ "concurrently": false,
2417
+ "method": "btree",
2418
+ "with": {}
2419
+ }
2420
+ },
2421
+ "foreignKeys": {
2422
+ "metric_days_launch_id_launches_id_fk": {
2423
+ "name": "metric_days_launch_id_launches_id_fk",
2424
+ "tableFrom": "metric_days",
2425
+ "tableTo": "launches",
2426
+ "columnsFrom": [
2427
+ "launch_id"
2428
+ ],
2429
+ "columnsTo": [
2430
+ "id"
2431
+ ],
2432
+ "onDelete": "no action",
2433
+ "onUpdate": "no action"
2434
+ },
2435
+ "metric_days_post_id_posts_id_fk": {
2436
+ "name": "metric_days_post_id_posts_id_fk",
2437
+ "tableFrom": "metric_days",
2438
+ "tableTo": "posts",
2439
+ "columnsFrom": [
2440
+ "post_id"
2441
+ ],
2442
+ "columnsTo": [
2443
+ "id"
2444
+ ],
2445
+ "onDelete": "no action",
2446
+ "onUpdate": "no action"
2447
+ }
2448
+ },
2449
+ "compositePrimaryKeys": {},
2450
+ "uniqueConstraints": {
2451
+ "metric_days_unique": {
2452
+ "name": "metric_days_unique",
2453
+ "nullsNotDistinct": true,
2454
+ "columns": [
2455
+ "launch_id",
2456
+ "post_id",
2457
+ "source",
2458
+ "name",
2459
+ "day"
2460
+ ]
2461
+ }
2462
+ },
2463
+ "policies": {},
2464
+ "checkConstraints": {},
2465
+ "isRLSEnabled": false
2466
+ },
2467
+ "public.metrics": {
2468
+ "name": "metrics",
2469
+ "schema": "",
2470
+ "columns": {
2471
+ "launch_id": {
2472
+ "name": "launch_id",
2473
+ "type": "integer",
2474
+ "primaryKey": false,
2475
+ "notNull": true
2476
+ },
2477
+ "post_id": {
2478
+ "name": "post_id",
2479
+ "type": "integer",
2480
+ "primaryKey": false,
2481
+ "notNull": false
2482
+ },
2483
+ "source": {
2484
+ "name": "source",
2485
+ "type": "text",
2486
+ "primaryKey": false,
2487
+ "notNull": true
2488
+ },
2489
+ "name": {
2490
+ "name": "name",
2491
+ "type": "text",
2492
+ "primaryKey": false,
2493
+ "notNull": true
2494
+ },
2495
+ "value": {
2496
+ "name": "value",
2497
+ "type": "double precision",
2498
+ "primaryKey": false,
2499
+ "notNull": true
2500
+ },
2501
+ "taken_at": {
2502
+ "name": "taken_at",
2503
+ "type": "text",
2504
+ "primaryKey": false,
2505
+ "notNull": true
2506
+ },
2507
+ "checked_at": {
2508
+ "name": "checked_at",
2509
+ "type": "text",
2510
+ "primaryKey": false,
2511
+ "notNull": false
2512
+ }
2513
+ },
2514
+ "indexes": {
2515
+ "metrics_by_launch": {
2516
+ "name": "metrics_by_launch",
2517
+ "columns": [
2518
+ {
2519
+ "expression": "launch_id",
2520
+ "isExpression": false,
2521
+ "asc": true,
2522
+ "nulls": "last"
2523
+ },
2524
+ {
2525
+ "expression": "source",
2526
+ "isExpression": false,
2527
+ "asc": true,
2528
+ "nulls": "last"
2529
+ },
2530
+ {
2531
+ "expression": "name",
2532
+ "isExpression": false,
2533
+ "asc": true,
2534
+ "nulls": "last"
2535
+ },
2536
+ {
2537
+ "expression": "taken_at",
2538
+ "isExpression": false,
2539
+ "asc": true,
2540
+ "nulls": "last"
2541
+ }
2542
+ ],
2543
+ "isUnique": false,
2544
+ "concurrently": false,
2545
+ "method": "btree",
2546
+ "with": {}
2547
+ },
2548
+ "metrics_by_post": {
2549
+ "name": "metrics_by_post",
2550
+ "columns": [
2551
+ {
2552
+ "expression": "post_id",
2553
+ "isExpression": false,
2554
+ "asc": true,
2555
+ "nulls": "last"
2556
+ }
2557
+ ],
2558
+ "isUnique": false,
2559
+ "concurrently": false,
2560
+ "method": "btree",
2561
+ "with": {}
2562
+ }
2563
+ },
2564
+ "foreignKeys": {
2565
+ "metrics_launch_id_launches_id_fk": {
2566
+ "name": "metrics_launch_id_launches_id_fk",
2567
+ "tableFrom": "metrics",
2568
+ "tableTo": "launches",
2569
+ "columnsFrom": [
2570
+ "launch_id"
2571
+ ],
2572
+ "columnsTo": [
2573
+ "id"
2574
+ ],
2575
+ "onDelete": "no action",
2576
+ "onUpdate": "no action"
2577
+ },
2578
+ "metrics_post_id_posts_id_fk": {
2579
+ "name": "metrics_post_id_posts_id_fk",
2580
+ "tableFrom": "metrics",
2581
+ "tableTo": "posts",
2582
+ "columnsFrom": [
2583
+ "post_id"
2584
+ ],
2585
+ "columnsTo": [
2586
+ "id"
2587
+ ],
2588
+ "onDelete": "no action",
2589
+ "onUpdate": "no action"
2590
+ }
2591
+ },
2592
+ "compositePrimaryKeys": {},
2593
+ "uniqueConstraints": {},
2594
+ "policies": {},
2595
+ "checkConstraints": {},
2596
+ "isRLSEnabled": false
2597
+ },
2598
+ "public.packs": {
2599
+ "name": "packs",
2600
+ "schema": "",
2601
+ "columns": {
2602
+ "id": {
2603
+ "name": "id",
2604
+ "type": "integer",
2605
+ "primaryKey": true,
2606
+ "notNull": true,
2607
+ "identity": {
2608
+ "type": "byDefault",
2609
+ "name": "packs_id_seq",
2610
+ "schema": "public",
2611
+ "increment": "1",
2612
+ "startWith": "1",
2613
+ "minValue": "1",
2614
+ "maxValue": "2147483647",
2615
+ "cache": "1",
2616
+ "cycle": false
2617
+ }
2618
+ },
2619
+ "launch_id": {
2620
+ "name": "launch_id",
2621
+ "type": "integer",
2622
+ "primaryKey": false,
2623
+ "notNull": true
2624
+ },
2625
+ "version": {
2626
+ "name": "version",
2627
+ "type": "integer",
2628
+ "primaryKey": false,
2629
+ "notNull": true
2630
+ },
2631
+ "pack": {
2632
+ "name": "pack",
2633
+ "type": "jsonb",
2634
+ "primaryKey": false,
2635
+ "notNull": true
2636
+ },
2637
+ "ai_task": {
2638
+ "name": "ai_task",
2639
+ "type": "text",
2640
+ "primaryKey": false,
2641
+ "notNull": false
2642
+ },
2643
+ "provider": {
2644
+ "name": "provider",
2645
+ "type": "text",
2646
+ "primaryKey": false,
2647
+ "notNull": false
2648
+ },
2649
+ "chat_id": {
2650
+ "name": "chat_id",
2651
+ "type": "text",
2652
+ "primaryKey": false,
2653
+ "notNull": false
2654
+ },
2655
+ "cost_usd": {
2656
+ "name": "cost_usd",
2657
+ "type": "double precision",
2658
+ "primaryKey": false,
2659
+ "notNull": false
2660
+ },
2661
+ "accepted": {
2662
+ "name": "accepted",
2663
+ "type": "boolean",
2664
+ "primaryKey": false,
2665
+ "notNull": true,
2666
+ "default": false
2667
+ },
2668
+ "import_batch": {
2669
+ "name": "import_batch",
2670
+ "type": "text",
2671
+ "primaryKey": false,
2672
+ "notNull": false
2673
+ },
2674
+ "created_at": {
2675
+ "name": "created_at",
2676
+ "type": "text",
2677
+ "primaryKey": false,
2678
+ "notNull": true,
2679
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
2680
+ }
2681
+ },
2682
+ "indexes": {},
2683
+ "foreignKeys": {
2684
+ "packs_launch_id_launches_id_fk": {
2685
+ "name": "packs_launch_id_launches_id_fk",
2686
+ "tableFrom": "packs",
2687
+ "tableTo": "launches",
2688
+ "columnsFrom": [
2689
+ "launch_id"
2690
+ ],
2691
+ "columnsTo": [
2692
+ "id"
2693
+ ],
2694
+ "onDelete": "cascade",
2695
+ "onUpdate": "no action"
2696
+ }
2697
+ },
2698
+ "compositePrimaryKeys": {},
2699
+ "uniqueConstraints": {
2700
+ "packs_version_unique": {
2701
+ "name": "packs_version_unique",
2702
+ "nullsNotDistinct": false,
2703
+ "columns": [
2704
+ "launch_id",
2705
+ "version"
2706
+ ]
2707
+ }
2708
+ },
2709
+ "policies": {},
2710
+ "checkConstraints": {},
2711
+ "isRLSEnabled": false
2712
+ },
2713
+ "public.posts": {
2714
+ "name": "posts",
2715
+ "schema": "",
2716
+ "columns": {
2717
+ "id": {
2718
+ "name": "id",
2719
+ "type": "integer",
2720
+ "primaryKey": true,
2721
+ "notNull": true,
2722
+ "identity": {
2723
+ "type": "byDefault",
2724
+ "name": "posts_id_seq",
2725
+ "schema": "public",
2726
+ "increment": "1",
2727
+ "startWith": "1",
2728
+ "minValue": "1",
2729
+ "maxValue": "2147483647",
2730
+ "cache": "1",
2731
+ "cycle": false
2732
+ }
2733
+ },
2734
+ "launch_id": {
2735
+ "name": "launch_id",
2736
+ "type": "integer",
2737
+ "primaryKey": false,
2738
+ "notNull": true
2739
+ },
2740
+ "channel": {
2741
+ "name": "channel",
2742
+ "type": "text",
2743
+ "primaryKey": false,
2744
+ "notNull": true
2745
+ },
2746
+ "account_id": {
2747
+ "name": "account_id",
2748
+ "type": "integer",
2749
+ "primaryKey": false,
2750
+ "notNull": false
2751
+ },
2752
+ "kind": {
2753
+ "name": "kind",
2754
+ "type": "text",
2755
+ "primaryKey": false,
2756
+ "notNull": true
2757
+ },
2758
+ "external_id": {
2759
+ "name": "external_id",
2760
+ "type": "text",
2761
+ "primaryKey": false,
2762
+ "notNull": false
2763
+ },
2764
+ "url": {
2765
+ "name": "url",
2766
+ "type": "text",
2767
+ "primaryKey": false,
2768
+ "notNull": false
2769
+ },
2770
+ "status": {
2771
+ "name": "status",
2772
+ "type": "text",
2773
+ "primaryKey": false,
2774
+ "notNull": true,
2775
+ "default": "'live'"
2776
+ },
2777
+ "content_hash": {
2778
+ "name": "content_hash",
2779
+ "type": "text",
2780
+ "primaryKey": false,
2781
+ "notNull": false
2782
+ },
2783
+ "draft_version_id": {
2784
+ "name": "draft_version_id",
2785
+ "type": "integer",
2786
+ "primaryKey": false,
2787
+ "notNull": false
2788
+ },
2789
+ "scheduled_at": {
2790
+ "name": "scheduled_at",
2791
+ "type": "text",
2792
+ "primaryKey": false,
2793
+ "notNull": false
2794
+ },
2795
+ "published_at": {
2796
+ "name": "published_at",
2797
+ "type": "text",
2798
+ "primaryKey": false,
2799
+ "notNull": true,
2800
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
2801
+ },
2802
+ "updated_at": {
2803
+ "name": "updated_at",
2804
+ "type": "text",
2805
+ "primaryKey": false,
2806
+ "notNull": true,
2807
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
2808
+ }
2809
+ },
2810
+ "indexes": {},
2811
+ "foreignKeys": {
2812
+ "posts_launch_id_launches_id_fk": {
2813
+ "name": "posts_launch_id_launches_id_fk",
2814
+ "tableFrom": "posts",
2815
+ "tableTo": "launches",
2816
+ "columnsFrom": [
2817
+ "launch_id"
2818
+ ],
2819
+ "columnsTo": [
2820
+ "id"
2821
+ ],
2822
+ "onDelete": "no action",
2823
+ "onUpdate": "no action"
2824
+ },
2825
+ "posts_account_id_accounts_id_fk": {
2826
+ "name": "posts_account_id_accounts_id_fk",
2827
+ "tableFrom": "posts",
2828
+ "tableTo": "accounts",
2829
+ "columnsFrom": [
2830
+ "account_id"
2831
+ ],
2832
+ "columnsTo": [
2833
+ "id"
2834
+ ],
2835
+ "onDelete": "set null",
2836
+ "onUpdate": "no action"
2837
+ },
2838
+ "posts_draft_version_id_draft_versions_id_fk": {
2839
+ "name": "posts_draft_version_id_draft_versions_id_fk",
2840
+ "tableFrom": "posts",
2841
+ "tableTo": "draft_versions",
2842
+ "columnsFrom": [
2843
+ "draft_version_id"
2844
+ ],
2845
+ "columnsTo": [
2846
+ "id"
2847
+ ],
2848
+ "onDelete": "set null",
2849
+ "onUpdate": "no action"
2850
+ }
2851
+ },
2852
+ "compositePrimaryKeys": {},
2853
+ "uniqueConstraints": {
2854
+ "posts_piece_unique": {
2855
+ "name": "posts_piece_unique",
2856
+ "nullsNotDistinct": true,
2857
+ "columns": [
2858
+ "launch_id",
2859
+ "channel",
2860
+ "account_id",
2861
+ "kind"
2862
+ ]
2863
+ }
2864
+ },
2865
+ "policies": {},
2866
+ "checkConstraints": {},
2867
+ "isRLSEnabled": false
2868
+ },
2869
+ "public.provider_calls": {
2870
+ "name": "provider_calls",
2871
+ "schema": "",
2872
+ "columns": {
2873
+ "hour": {
2874
+ "name": "hour",
2875
+ "type": "text",
2876
+ "primaryKey": false,
2877
+ "notNull": true
2878
+ },
2879
+ "process": {
2880
+ "name": "process",
2881
+ "type": "text",
2882
+ "primaryKey": false,
2883
+ "notNull": true
2884
+ },
2885
+ "origin": {
2886
+ "name": "origin",
2887
+ "type": "text",
2888
+ "primaryKey": false,
2889
+ "notNull": true
2890
+ },
2891
+ "provider": {
2892
+ "name": "provider",
2893
+ "type": "text",
2894
+ "primaryKey": false,
2895
+ "notNull": true
2896
+ },
2897
+ "method": {
2898
+ "name": "method",
2899
+ "type": "text",
2900
+ "primaryKey": false,
2901
+ "notNull": true
2902
+ },
2903
+ "endpoint": {
2904
+ "name": "endpoint",
2905
+ "type": "text",
2906
+ "primaryKey": false,
2907
+ "notNull": true
2908
+ },
2909
+ "status": {
2910
+ "name": "status",
2911
+ "type": "integer",
2912
+ "primaryKey": false,
2913
+ "notNull": true
2914
+ },
2915
+ "calls": {
2916
+ "name": "calls",
2917
+ "type": "integer",
2918
+ "primaryKey": false,
2919
+ "notNull": true
2920
+ },
2921
+ "total_ms": {
2922
+ "name": "total_ms",
2923
+ "type": "double precision",
2924
+ "primaryKey": false,
2925
+ "notNull": true
2926
+ },
2927
+ "bytes": {
2928
+ "name": "bytes",
2929
+ "type": "double precision",
2930
+ "primaryKey": false,
2931
+ "notNull": true,
2932
+ "default": 0
2933
+ },
2934
+ "latency": {
2935
+ "name": "latency",
2936
+ "type": "jsonb",
2937
+ "primaryKey": false,
2938
+ "notNull": true,
2939
+ "default": "'{}'::jsonb"
2940
+ },
2941
+ "quota_peak": {
2942
+ "name": "quota_peak",
2943
+ "type": "double precision",
2944
+ "primaryKey": false,
2945
+ "notNull": false
2946
+ },
2947
+ "quota_limit": {
2948
+ "name": "quota_limit",
2949
+ "type": "integer",
2950
+ "primaryKey": false,
2951
+ "notNull": false
2952
+ }
2953
+ },
2954
+ "indexes": {},
2955
+ "foreignKeys": {},
2956
+ "compositePrimaryKeys": {
2957
+ "provider_calls_key": {
2958
+ "name": "provider_calls_key",
2959
+ "columns": [
2960
+ "hour",
2961
+ "process",
2962
+ "origin",
2963
+ "provider",
2964
+ "method",
2965
+ "endpoint",
2966
+ "status"
2967
+ ]
2968
+ }
2969
+ },
2970
+ "uniqueConstraints": {},
2971
+ "policies": {},
2972
+ "checkConstraints": {},
2973
+ "isRLSEnabled": false
2974
+ },
2975
+ "public.publish_attempts": {
2976
+ "name": "publish_attempts",
2977
+ "schema": "",
2978
+ "columns": {
2979
+ "launch_id": {
2980
+ "name": "launch_id",
2981
+ "type": "integer",
2982
+ "primaryKey": false,
2983
+ "notNull": true
2984
+ },
2985
+ "channel": {
2986
+ "name": "channel",
2987
+ "type": "text",
2988
+ "primaryKey": false,
2989
+ "notNull": true
2990
+ },
2991
+ "kind": {
2992
+ "name": "kind",
2993
+ "type": "text",
2994
+ "primaryKey": false,
2995
+ "notNull": true
2996
+ },
2997
+ "state": {
2998
+ "name": "state",
2999
+ "type": "text",
3000
+ "primaryKey": false,
3001
+ "notNull": true
3002
+ },
3003
+ "attempts": {
3004
+ "name": "attempts",
3005
+ "type": "integer",
3006
+ "primaryKey": false,
3007
+ "notNull": true,
3008
+ "default": 1
3009
+ },
3010
+ "lease_until": {
3011
+ "name": "lease_until",
3012
+ "type": "text",
3013
+ "primaryKey": false,
3014
+ "notNull": false
3015
+ },
3016
+ "holder": {
3017
+ "name": "holder",
3018
+ "type": "text",
3019
+ "primaryKey": false,
3020
+ "notNull": false
3021
+ },
3022
+ "error": {
3023
+ "name": "error",
3024
+ "type": "text",
3025
+ "primaryKey": false,
3026
+ "notNull": false
3027
+ },
3028
+ "external_id": {
3029
+ "name": "external_id",
3030
+ "type": "text",
3031
+ "primaryKey": false,
3032
+ "notNull": false
3033
+ },
3034
+ "url": {
3035
+ "name": "url",
3036
+ "type": "text",
3037
+ "primaryKey": false,
3038
+ "notNull": false
3039
+ },
3040
+ "draft_version_id": {
3041
+ "name": "draft_version_id",
3042
+ "type": "integer",
3043
+ "primaryKey": false,
3044
+ "notNull": false
3045
+ },
3046
+ "approval_id": {
3047
+ "name": "approval_id",
3048
+ "type": "integer",
3049
+ "primaryKey": false,
3050
+ "notNull": false
3051
+ },
3052
+ "started_at": {
3053
+ "name": "started_at",
3054
+ "type": "text",
3055
+ "primaryKey": false,
3056
+ "notNull": true,
3057
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
3058
+ },
3059
+ "updated_at": {
3060
+ "name": "updated_at",
3061
+ "type": "text",
3062
+ "primaryKey": false,
3063
+ "notNull": true,
3064
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
3065
+ }
3066
+ },
3067
+ "indexes": {
3068
+ "publish_attempts_by_state": {
3069
+ "name": "publish_attempts_by_state",
3070
+ "columns": [
3071
+ {
3072
+ "expression": "state",
3073
+ "isExpression": false,
3074
+ "asc": true,
3075
+ "nulls": "last"
3076
+ }
3077
+ ],
3078
+ "isUnique": false,
3079
+ "concurrently": false,
3080
+ "method": "btree",
3081
+ "with": {}
3082
+ }
3083
+ },
3084
+ "foreignKeys": {
3085
+ "publish_attempts_launch_id_launches_id_fk": {
3086
+ "name": "publish_attempts_launch_id_launches_id_fk",
3087
+ "tableFrom": "publish_attempts",
3088
+ "tableTo": "launches",
3089
+ "columnsFrom": [
3090
+ "launch_id"
3091
+ ],
3092
+ "columnsTo": [
3093
+ "id"
3094
+ ],
3095
+ "onDelete": "no action",
3096
+ "onUpdate": "no action"
3097
+ },
3098
+ "publish_attempts_draft_version_id_draft_versions_id_fk": {
3099
+ "name": "publish_attempts_draft_version_id_draft_versions_id_fk",
3100
+ "tableFrom": "publish_attempts",
3101
+ "tableTo": "draft_versions",
3102
+ "columnsFrom": [
3103
+ "draft_version_id"
3104
+ ],
3105
+ "columnsTo": [
3106
+ "id"
3107
+ ],
3108
+ "onDelete": "set null",
3109
+ "onUpdate": "no action"
3110
+ },
3111
+ "publish_attempts_approval_id_approvals_id_fk": {
3112
+ "name": "publish_attempts_approval_id_approvals_id_fk",
3113
+ "tableFrom": "publish_attempts",
3114
+ "tableTo": "approvals",
3115
+ "columnsFrom": [
3116
+ "approval_id"
3117
+ ],
3118
+ "columnsTo": [
3119
+ "id"
3120
+ ],
3121
+ "onDelete": "set null",
3122
+ "onUpdate": "no action"
3123
+ }
3124
+ },
3125
+ "compositePrimaryKeys": {
3126
+ "publish_attempts_piece": {
3127
+ "name": "publish_attempts_piece",
3128
+ "columns": [
3129
+ "launch_id",
3130
+ "channel",
3131
+ "kind"
3132
+ ]
3133
+ }
3134
+ },
3135
+ "uniqueConstraints": {},
3136
+ "policies": {},
3137
+ "checkConstraints": {},
3138
+ "isRLSEnabled": false
3139
+ },
3140
+ "public.secrets": {
3141
+ "name": "secrets",
3142
+ "schema": "",
3143
+ "columns": {
3144
+ "key": {
3145
+ "name": "key",
3146
+ "type": "text",
3147
+ "primaryKey": true,
3148
+ "notNull": true
3149
+ },
3150
+ "label": {
3151
+ "name": "label",
3152
+ "type": "text",
3153
+ "primaryKey": false,
3154
+ "notNull": true,
3155
+ "default": "''"
3156
+ },
3157
+ "sealed": {
3158
+ "name": "sealed",
3159
+ "type": "text",
3160
+ "primaryKey": false,
3161
+ "notNull": true
3162
+ },
3163
+ "sealed_key": {
3164
+ "name": "sealed_key",
3165
+ "type": "text",
3166
+ "primaryKey": false,
3167
+ "notNull": true
3168
+ },
3169
+ "version": {
3170
+ "name": "version",
3171
+ "type": "integer",
3172
+ "primaryKey": false,
3173
+ "notNull": true,
3174
+ "default": 1
3175
+ },
3176
+ "updated_at": {
3177
+ "name": "updated_at",
3178
+ "type": "text",
3179
+ "primaryKey": false,
3180
+ "notNull": true,
3181
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
3182
+ }
3183
+ },
3184
+ "indexes": {},
3185
+ "foreignKeys": {},
3186
+ "compositePrimaryKeys": {},
3187
+ "uniqueConstraints": {},
3188
+ "policies": {},
3189
+ "checkConstraints": {},
3190
+ "isRLSEnabled": false
3191
+ },
3192
+ "public.settings": {
3193
+ "name": "settings",
3194
+ "schema": "",
3195
+ "columns": {
3196
+ "key": {
3197
+ "name": "key",
3198
+ "type": "text",
3199
+ "primaryKey": true,
3200
+ "notNull": true
3201
+ },
3202
+ "value": {
3203
+ "name": "value",
3204
+ "type": "jsonb",
3205
+ "primaryKey": false,
3206
+ "notNull": true
3207
+ },
3208
+ "updated_at": {
3209
+ "name": "updated_at",
3210
+ "type": "text",
3211
+ "primaryKey": false,
3212
+ "notNull": true,
3213
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
3214
+ }
3215
+ },
3216
+ "indexes": {},
3217
+ "foreignKeys": {},
3218
+ "compositePrimaryKeys": {},
3219
+ "uniqueConstraints": {},
3220
+ "policies": {},
3221
+ "checkConstraints": {},
3222
+ "isRLSEnabled": false
3223
+ },
3224
+ "public.timings": {
3225
+ "name": "timings",
3226
+ "schema": "",
3227
+ "columns": {
3228
+ "hour": {
3229
+ "name": "hour",
3230
+ "type": "text",
3231
+ "primaryKey": false,
3232
+ "notNull": true
3233
+ },
3234
+ "process": {
3235
+ "name": "process",
3236
+ "type": "text",
3237
+ "primaryKey": false,
3238
+ "notNull": true
3239
+ },
3240
+ "kind": {
3241
+ "name": "kind",
3242
+ "type": "text",
3243
+ "primaryKey": false,
3244
+ "notNull": true
3245
+ },
3246
+ "name": {
3247
+ "name": "name",
3248
+ "type": "text",
3249
+ "primaryKey": false,
3250
+ "notNull": true
3251
+ },
3252
+ "outcome": {
3253
+ "name": "outcome",
3254
+ "type": "text",
3255
+ "primaryKey": false,
3256
+ "notNull": true
3257
+ },
3258
+ "count": {
3259
+ "name": "count",
3260
+ "type": "integer",
3261
+ "primaryKey": false,
3262
+ "notNull": true
3263
+ },
3264
+ "total_ms": {
3265
+ "name": "total_ms",
3266
+ "type": "double precision",
3267
+ "primaryKey": false,
3268
+ "notNull": true
3269
+ },
3270
+ "max_ms": {
3271
+ "name": "max_ms",
3272
+ "type": "double precision",
3273
+ "primaryKey": false,
3274
+ "notNull": true
3275
+ },
3276
+ "latency": {
3277
+ "name": "latency",
3278
+ "type": "jsonb",
3279
+ "primaryKey": false,
3280
+ "notNull": true,
3281
+ "default": "'{}'::jsonb"
3282
+ }
3283
+ },
3284
+ "indexes": {},
3285
+ "foreignKeys": {},
3286
+ "compositePrimaryKeys": {
3287
+ "timings_key": {
3288
+ "name": "timings_key",
3289
+ "columns": [
3290
+ "hour",
3291
+ "process",
3292
+ "kind",
3293
+ "name",
3294
+ "outcome"
3295
+ ]
3296
+ }
3297
+ },
3298
+ "uniqueConstraints": {},
3299
+ "policies": {},
3300
+ "checkConstraints": {},
3301
+ "isRLSEnabled": false
3302
+ }
3303
+ },
3304
+ "enums": {},
3305
+ "schemas": {},
3306
+ "sequences": {},
3307
+ "roles": {},
3308
+ "policies": {},
3309
+ "views": {},
3310
+ "_meta": {
3311
+ "columns": {},
3312
+ "schemas": {},
3313
+ "tables": {}
3314
+ }
3315
+ }