@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,1984 @@
1
+ {
2
+ "id": "f4f37eb5-f6a2-493a-91e5-21a6aba2fa35",
3
+ "prevId": "276f46e5-a0a6-452e-b627-68c32bab327b",
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.assistant_messages": {
263
+ "name": "assistant_messages",
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": "assistant_messages_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
+ "session_id": {
284
+ "name": "session_id",
285
+ "type": "integer",
286
+ "primaryKey": false,
287
+ "notNull": true
288
+ },
289
+ "role": {
290
+ "name": "role",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true
294
+ },
295
+ "content": {
296
+ "name": "content",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true
300
+ },
301
+ "proposals": {
302
+ "name": "proposals",
303
+ "type": "jsonb",
304
+ "primaryKey": false,
305
+ "notNull": true,
306
+ "default": "'[]'::jsonb"
307
+ },
308
+ "selection": {
309
+ "name": "selection",
310
+ "type": "jsonb",
311
+ "primaryKey": false,
312
+ "notNull": false
313
+ },
314
+ "problem": {
315
+ "name": "problem",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": false
319
+ },
320
+ "created_at": {
321
+ "name": "created_at",
322
+ "type": "text",
323
+ "primaryKey": false,
324
+ "notNull": true,
325
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
326
+ }
327
+ },
328
+ "indexes": {
329
+ "assistant_messages_by_session": {
330
+ "name": "assistant_messages_by_session",
331
+ "columns": [
332
+ {
333
+ "expression": "session_id",
334
+ "isExpression": false,
335
+ "asc": true,
336
+ "nulls": "last"
337
+ },
338
+ {
339
+ "expression": "id",
340
+ "isExpression": false,
341
+ "asc": true,
342
+ "nulls": "last"
343
+ }
344
+ ],
345
+ "isUnique": false,
346
+ "concurrently": false,
347
+ "method": "btree",
348
+ "with": {}
349
+ }
350
+ },
351
+ "foreignKeys": {
352
+ "assistant_messages_session_id_assistant_sessions_id_fk": {
353
+ "name": "assistant_messages_session_id_assistant_sessions_id_fk",
354
+ "tableFrom": "assistant_messages",
355
+ "tableTo": "assistant_sessions",
356
+ "columnsFrom": [
357
+ "session_id"
358
+ ],
359
+ "columnsTo": [
360
+ "id"
361
+ ],
362
+ "onDelete": "cascade",
363
+ "onUpdate": "no action"
364
+ }
365
+ },
366
+ "compositePrimaryKeys": {},
367
+ "uniqueConstraints": {},
368
+ "policies": {},
369
+ "checkConstraints": {},
370
+ "isRLSEnabled": false
371
+ },
372
+ "public.assistant_sessions": {
373
+ "name": "assistant_sessions",
374
+ "schema": "",
375
+ "columns": {
376
+ "id": {
377
+ "name": "id",
378
+ "type": "integer",
379
+ "primaryKey": true,
380
+ "notNull": true,
381
+ "identity": {
382
+ "type": "byDefault",
383
+ "name": "assistant_sessions_id_seq",
384
+ "schema": "public",
385
+ "increment": "1",
386
+ "startWith": "1",
387
+ "minValue": "1",
388
+ "maxValue": "2147483647",
389
+ "cache": "1",
390
+ "cycle": false
391
+ }
392
+ },
393
+ "title": {
394
+ "name": "title",
395
+ "type": "text",
396
+ "primaryKey": false,
397
+ "notNull": true
398
+ },
399
+ "launch_id": {
400
+ "name": "launch_id",
401
+ "type": "integer",
402
+ "primaryKey": false,
403
+ "notNull": false
404
+ },
405
+ "draft_path": {
406
+ "name": "draft_path",
407
+ "type": "text",
408
+ "primaryKey": false,
409
+ "notNull": false
410
+ },
411
+ "draft_label": {
412
+ "name": "draft_label",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": false
416
+ },
417
+ "created_at": {
418
+ "name": "created_at",
419
+ "type": "text",
420
+ "primaryKey": false,
421
+ "notNull": true,
422
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
423
+ },
424
+ "updated_at": {
425
+ "name": "updated_at",
426
+ "type": "text",
427
+ "primaryKey": false,
428
+ "notNull": true,
429
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
430
+ }
431
+ },
432
+ "indexes": {
433
+ "assistant_sessions_by_updated": {
434
+ "name": "assistant_sessions_by_updated",
435
+ "columns": [
436
+ {
437
+ "expression": "updated_at",
438
+ "isExpression": false,
439
+ "asc": true,
440
+ "nulls": "last"
441
+ },
442
+ {
443
+ "expression": "id",
444
+ "isExpression": false,
445
+ "asc": true,
446
+ "nulls": "last"
447
+ }
448
+ ],
449
+ "isUnique": false,
450
+ "concurrently": false,
451
+ "method": "btree",
452
+ "with": {}
453
+ }
454
+ },
455
+ "foreignKeys": {
456
+ "assistant_sessions_launch_id_launches_id_fk": {
457
+ "name": "assistant_sessions_launch_id_launches_id_fk",
458
+ "tableFrom": "assistant_sessions",
459
+ "tableTo": "launches",
460
+ "columnsFrom": [
461
+ "launch_id"
462
+ ],
463
+ "columnsTo": [
464
+ "id"
465
+ ],
466
+ "onDelete": "set null",
467
+ "onUpdate": "no action"
468
+ }
469
+ },
470
+ "compositePrimaryKeys": {},
471
+ "uniqueConstraints": {},
472
+ "policies": {},
473
+ "checkConstraints": {},
474
+ "isRLSEnabled": false
475
+ },
476
+ "public.attention_dismissals": {
477
+ "name": "attention_dismissals",
478
+ "schema": "",
479
+ "columns": {
480
+ "key": {
481
+ "name": "key",
482
+ "type": "text",
483
+ "primaryKey": true,
484
+ "notNull": true
485
+ },
486
+ "dismissed_at": {
487
+ "name": "dismissed_at",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
492
+ }
493
+ },
494
+ "indexes": {},
495
+ "foreignKeys": {},
496
+ "compositePrimaryKeys": {},
497
+ "uniqueConstraints": {},
498
+ "policies": {},
499
+ "checkConstraints": {},
500
+ "isRLSEnabled": false
501
+ },
502
+ "public.checks": {
503
+ "name": "checks",
504
+ "schema": "",
505
+ "columns": {
506
+ "id": {
507
+ "name": "id",
508
+ "type": "integer",
509
+ "primaryKey": true,
510
+ "notNull": true,
511
+ "identity": {
512
+ "type": "byDefault",
513
+ "name": "checks_id_seq",
514
+ "schema": "public",
515
+ "increment": "1",
516
+ "startWith": "1",
517
+ "minValue": "1",
518
+ "maxValue": "2147483647",
519
+ "cache": "1",
520
+ "cycle": false
521
+ }
522
+ },
523
+ "taken_at": {
524
+ "name": "taken_at",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true,
528
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
529
+ },
530
+ "name": {
531
+ "name": "name",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": true
535
+ },
536
+ "ok": {
537
+ "name": "ok",
538
+ "type": "boolean",
539
+ "primaryKey": false,
540
+ "notNull": true
541
+ },
542
+ "value": {
543
+ "name": "value",
544
+ "type": "double precision",
545
+ "primaryKey": false,
546
+ "notNull": true
547
+ },
548
+ "detail": {
549
+ "name": "detail",
550
+ "type": "jsonb",
551
+ "primaryKey": false,
552
+ "notNull": true,
553
+ "default": "'{}'::jsonb"
554
+ }
555
+ },
556
+ "indexes": {
557
+ "checks_by_name": {
558
+ "name": "checks_by_name",
559
+ "columns": [
560
+ {
561
+ "expression": "name",
562
+ "isExpression": false,
563
+ "asc": true,
564
+ "nulls": "last"
565
+ },
566
+ {
567
+ "expression": "taken_at",
568
+ "isExpression": false,
569
+ "asc": true,
570
+ "nulls": "last"
571
+ }
572
+ ],
573
+ "isUnique": false,
574
+ "concurrently": false,
575
+ "method": "btree",
576
+ "with": {}
577
+ }
578
+ },
579
+ "foreignKeys": {},
580
+ "compositePrimaryKeys": {},
581
+ "uniqueConstraints": {},
582
+ "policies": {},
583
+ "checkConstraints": {},
584
+ "isRLSEnabled": false
585
+ },
586
+ "public.comments": {
587
+ "name": "comments",
588
+ "schema": "",
589
+ "columns": {
590
+ "id": {
591
+ "name": "id",
592
+ "type": "integer",
593
+ "primaryKey": true,
594
+ "notNull": true,
595
+ "identity": {
596
+ "type": "byDefault",
597
+ "name": "comments_id_seq",
598
+ "schema": "public",
599
+ "increment": "1",
600
+ "startWith": "1",
601
+ "minValue": "1",
602
+ "maxValue": "2147483647",
603
+ "cache": "1",
604
+ "cycle": false
605
+ }
606
+ },
607
+ "post_id": {
608
+ "name": "post_id",
609
+ "type": "integer",
610
+ "primaryKey": false,
611
+ "notNull": true
612
+ },
613
+ "channel": {
614
+ "name": "channel",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": true
618
+ },
619
+ "external_id": {
620
+ "name": "external_id",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true
624
+ },
625
+ "author_handle": {
626
+ "name": "author_handle",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": true
630
+ },
631
+ "author_name": {
632
+ "name": "author_name",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": false
636
+ },
637
+ "author_avatar_url": {
638
+ "name": "author_avatar_url",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": false
642
+ },
643
+ "text": {
644
+ "name": "text",
645
+ "type": "text",
646
+ "primaryKey": false,
647
+ "notNull": true
648
+ },
649
+ "url": {
650
+ "name": "url",
651
+ "type": "text",
652
+ "primaryKey": false,
653
+ "notNull": false
654
+ },
655
+ "created_at": {
656
+ "name": "created_at",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": true
660
+ },
661
+ "in_reply_to": {
662
+ "name": "in_reply_to",
663
+ "type": "text",
664
+ "primaryKey": false,
665
+ "notNull": false
666
+ },
667
+ "own": {
668
+ "name": "own",
669
+ "type": "boolean",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "default": false
673
+ },
674
+ "fetched_at": {
675
+ "name": "fetched_at",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": true,
679
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
680
+ },
681
+ "status": {
682
+ "name": "status",
683
+ "type": "text",
684
+ "primaryKey": false,
685
+ "notNull": true,
686
+ "default": "'new'"
687
+ },
688
+ "classification": {
689
+ "name": "classification",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": false
693
+ },
694
+ "draft": {
695
+ "name": "draft",
696
+ "type": "text",
697
+ "primaryKey": false,
698
+ "notNull": false
699
+ },
700
+ "note": {
701
+ "name": "note",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": false
705
+ },
706
+ "problem": {
707
+ "name": "problem",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": false
711
+ },
712
+ "sent_external_id": {
713
+ "name": "sent_external_id",
714
+ "type": "text",
715
+ "primaryKey": false,
716
+ "notNull": false
717
+ },
718
+ "sent_url": {
719
+ "name": "sent_url",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": false
723
+ },
724
+ "sent_at": {
725
+ "name": "sent_at",
726
+ "type": "text",
727
+ "primaryKey": false,
728
+ "notNull": false
729
+ },
730
+ "updated_at": {
731
+ "name": "updated_at",
732
+ "type": "text",
733
+ "primaryKey": false,
734
+ "notNull": true,
735
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
736
+ }
737
+ },
738
+ "indexes": {
739
+ "comments_by_post": {
740
+ "name": "comments_by_post",
741
+ "columns": [
742
+ {
743
+ "expression": "post_id",
744
+ "isExpression": false,
745
+ "asc": true,
746
+ "nulls": "last"
747
+ }
748
+ ],
749
+ "isUnique": false,
750
+ "concurrently": false,
751
+ "method": "btree",
752
+ "with": {}
753
+ },
754
+ "comments_by_status": {
755
+ "name": "comments_by_status",
756
+ "columns": [
757
+ {
758
+ "expression": "status",
759
+ "isExpression": false,
760
+ "asc": true,
761
+ "nulls": "last"
762
+ },
763
+ {
764
+ "expression": "created_at",
765
+ "isExpression": false,
766
+ "asc": true,
767
+ "nulls": "last"
768
+ }
769
+ ],
770
+ "isUnique": false,
771
+ "concurrently": false,
772
+ "method": "btree",
773
+ "with": {}
774
+ },
775
+ "comments_by_channel": {
776
+ "name": "comments_by_channel",
777
+ "columns": [
778
+ {
779
+ "expression": "channel",
780
+ "isExpression": false,
781
+ "asc": true,
782
+ "nulls": "last"
783
+ },
784
+ {
785
+ "expression": "created_at",
786
+ "isExpression": false,
787
+ "asc": false,
788
+ "nulls": "last"
789
+ },
790
+ {
791
+ "expression": "id",
792
+ "isExpression": false,
793
+ "asc": false,
794
+ "nulls": "last"
795
+ }
796
+ ],
797
+ "isUnique": false,
798
+ "concurrently": false,
799
+ "method": "btree",
800
+ "with": {}
801
+ },
802
+ "comments_by_newest": {
803
+ "name": "comments_by_newest",
804
+ "columns": [
805
+ {
806
+ "expression": "created_at",
807
+ "isExpression": false,
808
+ "asc": false,
809
+ "nulls": "last"
810
+ },
811
+ {
812
+ "expression": "id",
813
+ "isExpression": false,
814
+ "asc": false,
815
+ "nulls": "last"
816
+ }
817
+ ],
818
+ "isUnique": false,
819
+ "concurrently": false,
820
+ "method": "btree",
821
+ "with": {}
822
+ },
823
+ "comments_text_trgm": {
824
+ "name": "comments_text_trgm",
825
+ "columns": [
826
+ {
827
+ "expression": "text",
828
+ "isExpression": false,
829
+ "asc": true,
830
+ "nulls": "last",
831
+ "opclass": "gin_trgm_ops"
832
+ }
833
+ ],
834
+ "isUnique": false,
835
+ "concurrently": false,
836
+ "method": "gin",
837
+ "with": {}
838
+ },
839
+ "comments_author_handle_trgm": {
840
+ "name": "comments_author_handle_trgm",
841
+ "columns": [
842
+ {
843
+ "expression": "author_handle",
844
+ "isExpression": false,
845
+ "asc": true,
846
+ "nulls": "last",
847
+ "opclass": "gin_trgm_ops"
848
+ }
849
+ ],
850
+ "isUnique": false,
851
+ "concurrently": false,
852
+ "method": "gin",
853
+ "with": {}
854
+ },
855
+ "comments_author_name_trgm": {
856
+ "name": "comments_author_name_trgm",
857
+ "columns": [
858
+ {
859
+ "expression": "author_name",
860
+ "isExpression": false,
861
+ "asc": true,
862
+ "nulls": "last",
863
+ "opclass": "gin_trgm_ops"
864
+ }
865
+ ],
866
+ "isUnique": false,
867
+ "concurrently": false,
868
+ "method": "gin",
869
+ "with": {}
870
+ }
871
+ },
872
+ "foreignKeys": {
873
+ "comments_post_id_posts_id_fk": {
874
+ "name": "comments_post_id_posts_id_fk",
875
+ "tableFrom": "comments",
876
+ "tableTo": "posts",
877
+ "columnsFrom": [
878
+ "post_id"
879
+ ],
880
+ "columnsTo": [
881
+ "id"
882
+ ],
883
+ "onDelete": "no action",
884
+ "onUpdate": "no action"
885
+ }
886
+ },
887
+ "compositePrimaryKeys": {},
888
+ "uniqueConstraints": {
889
+ "comments_channel_external_unique": {
890
+ "name": "comments_channel_external_unique",
891
+ "nullsNotDistinct": false,
892
+ "columns": [
893
+ "channel",
894
+ "external_id"
895
+ ]
896
+ }
897
+ },
898
+ "policies": {},
899
+ "checkConstraints": {},
900
+ "isRLSEnabled": false
901
+ },
902
+ "public.cursors": {
903
+ "name": "cursors",
904
+ "schema": "",
905
+ "columns": {
906
+ "key": {
907
+ "name": "key",
908
+ "type": "text",
909
+ "primaryKey": true,
910
+ "notNull": true
911
+ },
912
+ "value": {
913
+ "name": "value",
914
+ "type": "text",
915
+ "primaryKey": false,
916
+ "notNull": true
917
+ }
918
+ },
919
+ "indexes": {},
920
+ "foreignKeys": {},
921
+ "compositePrimaryKeys": {},
922
+ "uniqueConstraints": {},
923
+ "policies": {},
924
+ "checkConstraints": {},
925
+ "isRLSEnabled": false
926
+ },
927
+ "public.draft_snapshots": {
928
+ "name": "draft_snapshots",
929
+ "schema": "",
930
+ "columns": {
931
+ "launch_id": {
932
+ "name": "launch_id",
933
+ "type": "integer",
934
+ "primaryKey": true,
935
+ "notNull": true
936
+ },
937
+ "pr_number": {
938
+ "name": "pr_number",
939
+ "type": "integer",
940
+ "primaryKey": false,
941
+ "notNull": true
942
+ },
943
+ "url": {
944
+ "name": "url",
945
+ "type": "text",
946
+ "primaryKey": false,
947
+ "notNull": true
948
+ },
949
+ "branch": {
950
+ "name": "branch",
951
+ "type": "text",
952
+ "primaryKey": false,
953
+ "notNull": true
954
+ },
955
+ "head_sha": {
956
+ "name": "head_sha",
957
+ "type": "text",
958
+ "primaryKey": false,
959
+ "notNull": false
960
+ },
961
+ "state": {
962
+ "name": "state",
963
+ "type": "text",
964
+ "primaryKey": false,
965
+ "notNull": true
966
+ },
967
+ "launch_yml": {
968
+ "name": "launch_yml",
969
+ "type": "text",
970
+ "primaryKey": false,
971
+ "notNull": false
972
+ },
973
+ "files": {
974
+ "name": "files",
975
+ "type": "jsonb",
976
+ "primaryKey": false,
977
+ "notNull": true
978
+ },
979
+ "read_at": {
980
+ "name": "read_at",
981
+ "type": "text",
982
+ "primaryKey": false,
983
+ "notNull": true,
984
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
985
+ }
986
+ },
987
+ "indexes": {},
988
+ "foreignKeys": {
989
+ "draft_snapshots_launch_id_launches_id_fk": {
990
+ "name": "draft_snapshots_launch_id_launches_id_fk",
991
+ "tableFrom": "draft_snapshots",
992
+ "tableTo": "launches",
993
+ "columnsFrom": [
994
+ "launch_id"
995
+ ],
996
+ "columnsTo": [
997
+ "id"
998
+ ],
999
+ "onDelete": "no action",
1000
+ "onUpdate": "no action"
1001
+ }
1002
+ },
1003
+ "compositePrimaryKeys": {},
1004
+ "uniqueConstraints": {},
1005
+ "policies": {},
1006
+ "checkConstraints": {},
1007
+ "isRLSEnabled": false
1008
+ },
1009
+ "public.jobs": {
1010
+ "name": "jobs",
1011
+ "schema": "",
1012
+ "columns": {
1013
+ "id": {
1014
+ "name": "id",
1015
+ "type": "text",
1016
+ "primaryKey": true,
1017
+ "notNull": true
1018
+ },
1019
+ "queue": {
1020
+ "name": "queue",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": true
1024
+ },
1025
+ "title": {
1026
+ "name": "title",
1027
+ "type": "text",
1028
+ "primaryKey": false,
1029
+ "notNull": true
1030
+ },
1031
+ "launch_id": {
1032
+ "name": "launch_id",
1033
+ "type": "integer",
1034
+ "primaryKey": false,
1035
+ "notNull": false
1036
+ },
1037
+ "state": {
1038
+ "name": "state",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": true,
1042
+ "default": "'created'"
1043
+ },
1044
+ "attempts": {
1045
+ "name": "attempts",
1046
+ "type": "integer",
1047
+ "primaryKey": false,
1048
+ "notNull": true,
1049
+ "default": 0
1050
+ },
1051
+ "log": {
1052
+ "name": "log",
1053
+ "type": "jsonb",
1054
+ "primaryKey": false,
1055
+ "notNull": true,
1056
+ "default": "'[]'::jsonb"
1057
+ },
1058
+ "link": {
1059
+ "name": "link",
1060
+ "type": "text",
1061
+ "primaryKey": false,
1062
+ "notNull": false
1063
+ },
1064
+ "created_at": {
1065
+ "name": "created_at",
1066
+ "type": "text",
1067
+ "primaryKey": false,
1068
+ "notNull": true,
1069
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1070
+ },
1071
+ "started_at": {
1072
+ "name": "started_at",
1073
+ "type": "text",
1074
+ "primaryKey": false,
1075
+ "notNull": false
1076
+ },
1077
+ "ended_at": {
1078
+ "name": "ended_at",
1079
+ "type": "text",
1080
+ "primaryKey": false,
1081
+ "notNull": false
1082
+ }
1083
+ },
1084
+ "indexes": {
1085
+ "jobs_by_created": {
1086
+ "name": "jobs_by_created",
1087
+ "columns": [
1088
+ {
1089
+ "expression": "created_at",
1090
+ "isExpression": false,
1091
+ "asc": true,
1092
+ "nulls": "last"
1093
+ }
1094
+ ],
1095
+ "isUnique": false,
1096
+ "concurrently": false,
1097
+ "method": "btree",
1098
+ "with": {}
1099
+ },
1100
+ "jobs_by_launch": {
1101
+ "name": "jobs_by_launch",
1102
+ "columns": [
1103
+ {
1104
+ "expression": "launch_id",
1105
+ "isExpression": false,
1106
+ "asc": true,
1107
+ "nulls": "last"
1108
+ }
1109
+ ],
1110
+ "isUnique": false,
1111
+ "concurrently": false,
1112
+ "method": "btree",
1113
+ "with": {}
1114
+ }
1115
+ },
1116
+ "foreignKeys": {
1117
+ "jobs_launch_id_launches_id_fk": {
1118
+ "name": "jobs_launch_id_launches_id_fk",
1119
+ "tableFrom": "jobs",
1120
+ "tableTo": "launches",
1121
+ "columnsFrom": [
1122
+ "launch_id"
1123
+ ],
1124
+ "columnsTo": [
1125
+ "id"
1126
+ ],
1127
+ "onDelete": "set null",
1128
+ "onUpdate": "no action"
1129
+ }
1130
+ },
1131
+ "compositePrimaryKeys": {},
1132
+ "uniqueConstraints": {},
1133
+ "policies": {},
1134
+ "checkConstraints": {},
1135
+ "isRLSEnabled": false
1136
+ },
1137
+ "public.launches": {
1138
+ "name": "launches",
1139
+ "schema": "",
1140
+ "columns": {
1141
+ "id": {
1142
+ "name": "id",
1143
+ "type": "integer",
1144
+ "primaryKey": true,
1145
+ "notNull": true,
1146
+ "identity": {
1147
+ "type": "byDefault",
1148
+ "name": "launches_id_seq",
1149
+ "schema": "public",
1150
+ "increment": "1",
1151
+ "startWith": "1",
1152
+ "minValue": "1",
1153
+ "maxValue": "2147483647",
1154
+ "cache": "1",
1155
+ "cycle": false
1156
+ }
1157
+ },
1158
+ "repo": {
1159
+ "name": "repo",
1160
+ "type": "text",
1161
+ "primaryKey": false,
1162
+ "notNull": true
1163
+ },
1164
+ "ref": {
1165
+ "name": "ref",
1166
+ "type": "text",
1167
+ "primaryKey": false,
1168
+ "notNull": true
1169
+ },
1170
+ "trigger": {
1171
+ "name": "trigger",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": true
1175
+ },
1176
+ "kind": {
1177
+ "name": "kind",
1178
+ "type": "text",
1179
+ "primaryKey": false,
1180
+ "notNull": true
1181
+ },
1182
+ "brand": {
1183
+ "name": "brand",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": true
1187
+ },
1188
+ "status": {
1189
+ "name": "status",
1190
+ "type": "text",
1191
+ "primaryKey": false,
1192
+ "notNull": true
1193
+ },
1194
+ "detail": {
1195
+ "name": "detail",
1196
+ "type": "text",
1197
+ "primaryKey": false,
1198
+ "notNull": false
1199
+ },
1200
+ "created_at": {
1201
+ "name": "created_at",
1202
+ "type": "text",
1203
+ "primaryKey": false,
1204
+ "notNull": true,
1205
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1206
+ },
1207
+ "updated_at": {
1208
+ "name": "updated_at",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": true,
1212
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1213
+ }
1214
+ },
1215
+ "indexes": {
1216
+ "launches_by_newest": {
1217
+ "name": "launches_by_newest",
1218
+ "columns": [
1219
+ {
1220
+ "expression": "created_at",
1221
+ "isExpression": false,
1222
+ "asc": false,
1223
+ "nulls": "last"
1224
+ },
1225
+ {
1226
+ "expression": "id",
1227
+ "isExpression": false,
1228
+ "asc": false,
1229
+ "nulls": "last"
1230
+ }
1231
+ ],
1232
+ "isUnique": false,
1233
+ "concurrently": false,
1234
+ "method": "btree",
1235
+ "with": {}
1236
+ },
1237
+ "launches_by_status": {
1238
+ "name": "launches_by_status",
1239
+ "columns": [
1240
+ {
1241
+ "expression": "status",
1242
+ "isExpression": false,
1243
+ "asc": true,
1244
+ "nulls": "last"
1245
+ },
1246
+ {
1247
+ "expression": "created_at",
1248
+ "isExpression": false,
1249
+ "asc": false,
1250
+ "nulls": "last"
1251
+ },
1252
+ {
1253
+ "expression": "id",
1254
+ "isExpression": false,
1255
+ "asc": false,
1256
+ "nulls": "last"
1257
+ }
1258
+ ],
1259
+ "isUnique": false,
1260
+ "concurrently": false,
1261
+ "method": "btree",
1262
+ "with": {}
1263
+ },
1264
+ "launches_by_repo": {
1265
+ "name": "launches_by_repo",
1266
+ "columns": [
1267
+ {
1268
+ "expression": "repo",
1269
+ "isExpression": false,
1270
+ "asc": true,
1271
+ "nulls": "last"
1272
+ },
1273
+ {
1274
+ "expression": "created_at",
1275
+ "isExpression": false,
1276
+ "asc": false,
1277
+ "nulls": "last"
1278
+ },
1279
+ {
1280
+ "expression": "id",
1281
+ "isExpression": false,
1282
+ "asc": false,
1283
+ "nulls": "last"
1284
+ }
1285
+ ],
1286
+ "isUnique": false,
1287
+ "concurrently": false,
1288
+ "method": "btree",
1289
+ "with": {}
1290
+ }
1291
+ },
1292
+ "foreignKeys": {},
1293
+ "compositePrimaryKeys": {},
1294
+ "uniqueConstraints": {
1295
+ "launches_repo_ref_unique": {
1296
+ "name": "launches_repo_ref_unique",
1297
+ "nullsNotDistinct": false,
1298
+ "columns": [
1299
+ "repo",
1300
+ "ref"
1301
+ ]
1302
+ }
1303
+ },
1304
+ "policies": {},
1305
+ "checkConstraints": {},
1306
+ "isRLSEnabled": false
1307
+ },
1308
+ "public.metrics": {
1309
+ "name": "metrics",
1310
+ "schema": "",
1311
+ "columns": {
1312
+ "launch_id": {
1313
+ "name": "launch_id",
1314
+ "type": "integer",
1315
+ "primaryKey": false,
1316
+ "notNull": true
1317
+ },
1318
+ "post_id": {
1319
+ "name": "post_id",
1320
+ "type": "integer",
1321
+ "primaryKey": false,
1322
+ "notNull": false
1323
+ },
1324
+ "source": {
1325
+ "name": "source",
1326
+ "type": "text",
1327
+ "primaryKey": false,
1328
+ "notNull": true
1329
+ },
1330
+ "name": {
1331
+ "name": "name",
1332
+ "type": "text",
1333
+ "primaryKey": false,
1334
+ "notNull": true
1335
+ },
1336
+ "value": {
1337
+ "name": "value",
1338
+ "type": "double precision",
1339
+ "primaryKey": false,
1340
+ "notNull": true
1341
+ },
1342
+ "taken_at": {
1343
+ "name": "taken_at",
1344
+ "type": "text",
1345
+ "primaryKey": false,
1346
+ "notNull": true
1347
+ },
1348
+ "checked_at": {
1349
+ "name": "checked_at",
1350
+ "type": "text",
1351
+ "primaryKey": false,
1352
+ "notNull": false
1353
+ }
1354
+ },
1355
+ "indexes": {
1356
+ "metrics_by_launch": {
1357
+ "name": "metrics_by_launch",
1358
+ "columns": [
1359
+ {
1360
+ "expression": "launch_id",
1361
+ "isExpression": false,
1362
+ "asc": true,
1363
+ "nulls": "last"
1364
+ },
1365
+ {
1366
+ "expression": "source",
1367
+ "isExpression": false,
1368
+ "asc": true,
1369
+ "nulls": "last"
1370
+ },
1371
+ {
1372
+ "expression": "name",
1373
+ "isExpression": false,
1374
+ "asc": true,
1375
+ "nulls": "last"
1376
+ },
1377
+ {
1378
+ "expression": "taken_at",
1379
+ "isExpression": false,
1380
+ "asc": true,
1381
+ "nulls": "last"
1382
+ }
1383
+ ],
1384
+ "isUnique": false,
1385
+ "concurrently": false,
1386
+ "method": "btree",
1387
+ "with": {}
1388
+ },
1389
+ "metrics_by_post": {
1390
+ "name": "metrics_by_post",
1391
+ "columns": [
1392
+ {
1393
+ "expression": "post_id",
1394
+ "isExpression": false,
1395
+ "asc": true,
1396
+ "nulls": "last"
1397
+ }
1398
+ ],
1399
+ "isUnique": false,
1400
+ "concurrently": false,
1401
+ "method": "btree",
1402
+ "with": {}
1403
+ }
1404
+ },
1405
+ "foreignKeys": {
1406
+ "metrics_launch_id_launches_id_fk": {
1407
+ "name": "metrics_launch_id_launches_id_fk",
1408
+ "tableFrom": "metrics",
1409
+ "tableTo": "launches",
1410
+ "columnsFrom": [
1411
+ "launch_id"
1412
+ ],
1413
+ "columnsTo": [
1414
+ "id"
1415
+ ],
1416
+ "onDelete": "no action",
1417
+ "onUpdate": "no action"
1418
+ },
1419
+ "metrics_post_id_posts_id_fk": {
1420
+ "name": "metrics_post_id_posts_id_fk",
1421
+ "tableFrom": "metrics",
1422
+ "tableTo": "posts",
1423
+ "columnsFrom": [
1424
+ "post_id"
1425
+ ],
1426
+ "columnsTo": [
1427
+ "id"
1428
+ ],
1429
+ "onDelete": "no action",
1430
+ "onUpdate": "no action"
1431
+ }
1432
+ },
1433
+ "compositePrimaryKeys": {},
1434
+ "uniqueConstraints": {},
1435
+ "policies": {},
1436
+ "checkConstraints": {},
1437
+ "isRLSEnabled": false
1438
+ },
1439
+ "public.posts": {
1440
+ "name": "posts",
1441
+ "schema": "",
1442
+ "columns": {
1443
+ "id": {
1444
+ "name": "id",
1445
+ "type": "integer",
1446
+ "primaryKey": true,
1447
+ "notNull": true,
1448
+ "identity": {
1449
+ "type": "byDefault",
1450
+ "name": "posts_id_seq",
1451
+ "schema": "public",
1452
+ "increment": "1",
1453
+ "startWith": "1",
1454
+ "minValue": "1",
1455
+ "maxValue": "2147483647",
1456
+ "cache": "1",
1457
+ "cycle": false
1458
+ }
1459
+ },
1460
+ "launch_id": {
1461
+ "name": "launch_id",
1462
+ "type": "integer",
1463
+ "primaryKey": false,
1464
+ "notNull": true
1465
+ },
1466
+ "channel": {
1467
+ "name": "channel",
1468
+ "type": "text",
1469
+ "primaryKey": false,
1470
+ "notNull": true
1471
+ },
1472
+ "account_id": {
1473
+ "name": "account_id",
1474
+ "type": "integer",
1475
+ "primaryKey": false,
1476
+ "notNull": false
1477
+ },
1478
+ "kind": {
1479
+ "name": "kind",
1480
+ "type": "text",
1481
+ "primaryKey": false,
1482
+ "notNull": true
1483
+ },
1484
+ "external_id": {
1485
+ "name": "external_id",
1486
+ "type": "text",
1487
+ "primaryKey": false,
1488
+ "notNull": false
1489
+ },
1490
+ "url": {
1491
+ "name": "url",
1492
+ "type": "text",
1493
+ "primaryKey": false,
1494
+ "notNull": false
1495
+ },
1496
+ "status": {
1497
+ "name": "status",
1498
+ "type": "text",
1499
+ "primaryKey": false,
1500
+ "notNull": true,
1501
+ "default": "'live'"
1502
+ },
1503
+ "content_hash": {
1504
+ "name": "content_hash",
1505
+ "type": "text",
1506
+ "primaryKey": false,
1507
+ "notNull": false
1508
+ },
1509
+ "scheduled_at": {
1510
+ "name": "scheduled_at",
1511
+ "type": "text",
1512
+ "primaryKey": false,
1513
+ "notNull": false
1514
+ },
1515
+ "published_at": {
1516
+ "name": "published_at",
1517
+ "type": "text",
1518
+ "primaryKey": false,
1519
+ "notNull": true,
1520
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1521
+ },
1522
+ "updated_at": {
1523
+ "name": "updated_at",
1524
+ "type": "text",
1525
+ "primaryKey": false,
1526
+ "notNull": true,
1527
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1528
+ }
1529
+ },
1530
+ "indexes": {},
1531
+ "foreignKeys": {
1532
+ "posts_launch_id_launches_id_fk": {
1533
+ "name": "posts_launch_id_launches_id_fk",
1534
+ "tableFrom": "posts",
1535
+ "tableTo": "launches",
1536
+ "columnsFrom": [
1537
+ "launch_id"
1538
+ ],
1539
+ "columnsTo": [
1540
+ "id"
1541
+ ],
1542
+ "onDelete": "no action",
1543
+ "onUpdate": "no action"
1544
+ },
1545
+ "posts_account_id_accounts_id_fk": {
1546
+ "name": "posts_account_id_accounts_id_fk",
1547
+ "tableFrom": "posts",
1548
+ "tableTo": "accounts",
1549
+ "columnsFrom": [
1550
+ "account_id"
1551
+ ],
1552
+ "columnsTo": [
1553
+ "id"
1554
+ ],
1555
+ "onDelete": "set null",
1556
+ "onUpdate": "no action"
1557
+ }
1558
+ },
1559
+ "compositePrimaryKeys": {},
1560
+ "uniqueConstraints": {
1561
+ "posts_piece_unique": {
1562
+ "name": "posts_piece_unique",
1563
+ "nullsNotDistinct": true,
1564
+ "columns": [
1565
+ "launch_id",
1566
+ "channel",
1567
+ "account_id",
1568
+ "kind"
1569
+ ]
1570
+ }
1571
+ },
1572
+ "policies": {},
1573
+ "checkConstraints": {},
1574
+ "isRLSEnabled": false
1575
+ },
1576
+ "public.provider_calls": {
1577
+ "name": "provider_calls",
1578
+ "schema": "",
1579
+ "columns": {
1580
+ "hour": {
1581
+ "name": "hour",
1582
+ "type": "text",
1583
+ "primaryKey": false,
1584
+ "notNull": true
1585
+ },
1586
+ "process": {
1587
+ "name": "process",
1588
+ "type": "text",
1589
+ "primaryKey": false,
1590
+ "notNull": true
1591
+ },
1592
+ "origin": {
1593
+ "name": "origin",
1594
+ "type": "text",
1595
+ "primaryKey": false,
1596
+ "notNull": true
1597
+ },
1598
+ "provider": {
1599
+ "name": "provider",
1600
+ "type": "text",
1601
+ "primaryKey": false,
1602
+ "notNull": true
1603
+ },
1604
+ "method": {
1605
+ "name": "method",
1606
+ "type": "text",
1607
+ "primaryKey": false,
1608
+ "notNull": true
1609
+ },
1610
+ "endpoint": {
1611
+ "name": "endpoint",
1612
+ "type": "text",
1613
+ "primaryKey": false,
1614
+ "notNull": true
1615
+ },
1616
+ "status": {
1617
+ "name": "status",
1618
+ "type": "integer",
1619
+ "primaryKey": false,
1620
+ "notNull": true
1621
+ },
1622
+ "calls": {
1623
+ "name": "calls",
1624
+ "type": "integer",
1625
+ "primaryKey": false,
1626
+ "notNull": true
1627
+ },
1628
+ "total_ms": {
1629
+ "name": "total_ms",
1630
+ "type": "double precision",
1631
+ "primaryKey": false,
1632
+ "notNull": true
1633
+ },
1634
+ "bytes": {
1635
+ "name": "bytes",
1636
+ "type": "double precision",
1637
+ "primaryKey": false,
1638
+ "notNull": true,
1639
+ "default": 0
1640
+ },
1641
+ "latency": {
1642
+ "name": "latency",
1643
+ "type": "jsonb",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "default": "'{}'::jsonb"
1647
+ },
1648
+ "quota_peak": {
1649
+ "name": "quota_peak",
1650
+ "type": "double precision",
1651
+ "primaryKey": false,
1652
+ "notNull": false
1653
+ },
1654
+ "quota_limit": {
1655
+ "name": "quota_limit",
1656
+ "type": "integer",
1657
+ "primaryKey": false,
1658
+ "notNull": false
1659
+ }
1660
+ },
1661
+ "indexes": {},
1662
+ "foreignKeys": {},
1663
+ "compositePrimaryKeys": {
1664
+ "provider_calls_key": {
1665
+ "name": "provider_calls_key",
1666
+ "columns": [
1667
+ "hour",
1668
+ "process",
1669
+ "origin",
1670
+ "provider",
1671
+ "method",
1672
+ "endpoint",
1673
+ "status"
1674
+ ]
1675
+ }
1676
+ },
1677
+ "uniqueConstraints": {},
1678
+ "policies": {},
1679
+ "checkConstraints": {},
1680
+ "isRLSEnabled": false
1681
+ },
1682
+ "public.publish_attempts": {
1683
+ "name": "publish_attempts",
1684
+ "schema": "",
1685
+ "columns": {
1686
+ "launch_id": {
1687
+ "name": "launch_id",
1688
+ "type": "integer",
1689
+ "primaryKey": false,
1690
+ "notNull": true
1691
+ },
1692
+ "channel": {
1693
+ "name": "channel",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": true
1697
+ },
1698
+ "kind": {
1699
+ "name": "kind",
1700
+ "type": "text",
1701
+ "primaryKey": false,
1702
+ "notNull": true
1703
+ },
1704
+ "state": {
1705
+ "name": "state",
1706
+ "type": "text",
1707
+ "primaryKey": false,
1708
+ "notNull": true
1709
+ },
1710
+ "attempts": {
1711
+ "name": "attempts",
1712
+ "type": "integer",
1713
+ "primaryKey": false,
1714
+ "notNull": true,
1715
+ "default": 1
1716
+ },
1717
+ "lease_until": {
1718
+ "name": "lease_until",
1719
+ "type": "text",
1720
+ "primaryKey": false,
1721
+ "notNull": false
1722
+ },
1723
+ "holder": {
1724
+ "name": "holder",
1725
+ "type": "text",
1726
+ "primaryKey": false,
1727
+ "notNull": false
1728
+ },
1729
+ "error": {
1730
+ "name": "error",
1731
+ "type": "text",
1732
+ "primaryKey": false,
1733
+ "notNull": false
1734
+ },
1735
+ "external_id": {
1736
+ "name": "external_id",
1737
+ "type": "text",
1738
+ "primaryKey": false,
1739
+ "notNull": false
1740
+ },
1741
+ "url": {
1742
+ "name": "url",
1743
+ "type": "text",
1744
+ "primaryKey": false,
1745
+ "notNull": false
1746
+ },
1747
+ "started_at": {
1748
+ "name": "started_at",
1749
+ "type": "text",
1750
+ "primaryKey": false,
1751
+ "notNull": true,
1752
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1753
+ },
1754
+ "updated_at": {
1755
+ "name": "updated_at",
1756
+ "type": "text",
1757
+ "primaryKey": false,
1758
+ "notNull": true,
1759
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1760
+ }
1761
+ },
1762
+ "indexes": {
1763
+ "publish_attempts_by_state": {
1764
+ "name": "publish_attempts_by_state",
1765
+ "columns": [
1766
+ {
1767
+ "expression": "state",
1768
+ "isExpression": false,
1769
+ "asc": true,
1770
+ "nulls": "last"
1771
+ }
1772
+ ],
1773
+ "isUnique": false,
1774
+ "concurrently": false,
1775
+ "method": "btree",
1776
+ "with": {}
1777
+ }
1778
+ },
1779
+ "foreignKeys": {
1780
+ "publish_attempts_launch_id_launches_id_fk": {
1781
+ "name": "publish_attempts_launch_id_launches_id_fk",
1782
+ "tableFrom": "publish_attempts",
1783
+ "tableTo": "launches",
1784
+ "columnsFrom": [
1785
+ "launch_id"
1786
+ ],
1787
+ "columnsTo": [
1788
+ "id"
1789
+ ],
1790
+ "onDelete": "no action",
1791
+ "onUpdate": "no action"
1792
+ }
1793
+ },
1794
+ "compositePrimaryKeys": {
1795
+ "publish_attempts_piece": {
1796
+ "name": "publish_attempts_piece",
1797
+ "columns": [
1798
+ "launch_id",
1799
+ "channel",
1800
+ "kind"
1801
+ ]
1802
+ }
1803
+ },
1804
+ "uniqueConstraints": {},
1805
+ "policies": {},
1806
+ "checkConstraints": {},
1807
+ "isRLSEnabled": false
1808
+ },
1809
+ "public.secrets": {
1810
+ "name": "secrets",
1811
+ "schema": "",
1812
+ "columns": {
1813
+ "key": {
1814
+ "name": "key",
1815
+ "type": "text",
1816
+ "primaryKey": true,
1817
+ "notNull": true
1818
+ },
1819
+ "label": {
1820
+ "name": "label",
1821
+ "type": "text",
1822
+ "primaryKey": false,
1823
+ "notNull": true,
1824
+ "default": "''"
1825
+ },
1826
+ "sealed": {
1827
+ "name": "sealed",
1828
+ "type": "text",
1829
+ "primaryKey": false,
1830
+ "notNull": true
1831
+ },
1832
+ "sealed_key": {
1833
+ "name": "sealed_key",
1834
+ "type": "text",
1835
+ "primaryKey": false,
1836
+ "notNull": true
1837
+ },
1838
+ "version": {
1839
+ "name": "version",
1840
+ "type": "integer",
1841
+ "primaryKey": false,
1842
+ "notNull": true,
1843
+ "default": 1
1844
+ },
1845
+ "updated_at": {
1846
+ "name": "updated_at",
1847
+ "type": "text",
1848
+ "primaryKey": false,
1849
+ "notNull": true,
1850
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1851
+ }
1852
+ },
1853
+ "indexes": {},
1854
+ "foreignKeys": {},
1855
+ "compositePrimaryKeys": {},
1856
+ "uniqueConstraints": {},
1857
+ "policies": {},
1858
+ "checkConstraints": {},
1859
+ "isRLSEnabled": false
1860
+ },
1861
+ "public.settings": {
1862
+ "name": "settings",
1863
+ "schema": "",
1864
+ "columns": {
1865
+ "key": {
1866
+ "name": "key",
1867
+ "type": "text",
1868
+ "primaryKey": true,
1869
+ "notNull": true
1870
+ },
1871
+ "value": {
1872
+ "name": "value",
1873
+ "type": "jsonb",
1874
+ "primaryKey": false,
1875
+ "notNull": true
1876
+ },
1877
+ "updated_at": {
1878
+ "name": "updated_at",
1879
+ "type": "text",
1880
+ "primaryKey": false,
1881
+ "notNull": true,
1882
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1883
+ }
1884
+ },
1885
+ "indexes": {},
1886
+ "foreignKeys": {},
1887
+ "compositePrimaryKeys": {},
1888
+ "uniqueConstraints": {},
1889
+ "policies": {},
1890
+ "checkConstraints": {},
1891
+ "isRLSEnabled": false
1892
+ },
1893
+ "public.timings": {
1894
+ "name": "timings",
1895
+ "schema": "",
1896
+ "columns": {
1897
+ "hour": {
1898
+ "name": "hour",
1899
+ "type": "text",
1900
+ "primaryKey": false,
1901
+ "notNull": true
1902
+ },
1903
+ "process": {
1904
+ "name": "process",
1905
+ "type": "text",
1906
+ "primaryKey": false,
1907
+ "notNull": true
1908
+ },
1909
+ "kind": {
1910
+ "name": "kind",
1911
+ "type": "text",
1912
+ "primaryKey": false,
1913
+ "notNull": true
1914
+ },
1915
+ "name": {
1916
+ "name": "name",
1917
+ "type": "text",
1918
+ "primaryKey": false,
1919
+ "notNull": true
1920
+ },
1921
+ "outcome": {
1922
+ "name": "outcome",
1923
+ "type": "text",
1924
+ "primaryKey": false,
1925
+ "notNull": true
1926
+ },
1927
+ "count": {
1928
+ "name": "count",
1929
+ "type": "integer",
1930
+ "primaryKey": false,
1931
+ "notNull": true
1932
+ },
1933
+ "total_ms": {
1934
+ "name": "total_ms",
1935
+ "type": "double precision",
1936
+ "primaryKey": false,
1937
+ "notNull": true
1938
+ },
1939
+ "max_ms": {
1940
+ "name": "max_ms",
1941
+ "type": "double precision",
1942
+ "primaryKey": false,
1943
+ "notNull": true
1944
+ },
1945
+ "latency": {
1946
+ "name": "latency",
1947
+ "type": "jsonb",
1948
+ "primaryKey": false,
1949
+ "notNull": true,
1950
+ "default": "'{}'::jsonb"
1951
+ }
1952
+ },
1953
+ "indexes": {},
1954
+ "foreignKeys": {},
1955
+ "compositePrimaryKeys": {
1956
+ "timings_key": {
1957
+ "name": "timings_key",
1958
+ "columns": [
1959
+ "hour",
1960
+ "process",
1961
+ "kind",
1962
+ "name",
1963
+ "outcome"
1964
+ ]
1965
+ }
1966
+ },
1967
+ "uniqueConstraints": {},
1968
+ "policies": {},
1969
+ "checkConstraints": {},
1970
+ "isRLSEnabled": false
1971
+ }
1972
+ },
1973
+ "enums": {},
1974
+ "schemas": {},
1975
+ "sequences": {},
1976
+ "roles": {},
1977
+ "policies": {},
1978
+ "views": {},
1979
+ "_meta": {
1980
+ "columns": {},
1981
+ "schemas": {},
1982
+ "tables": {}
1983
+ }
1984
+ }