@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,1372 @@
1
+ {
2
+ "id": "ee7e36a1-9a38-451e-9ad1-38fa2b5c515f",
3
+ "prevId": "4693ab4a-8c85-41dc-8cf6-8ce3b91362b5",
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.comments": {
503
+ "name": "comments",
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": "comments_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
+ "post_id": {
524
+ "name": "post_id",
525
+ "type": "integer",
526
+ "primaryKey": false,
527
+ "notNull": true
528
+ },
529
+ "channel": {
530
+ "name": "channel",
531
+ "type": "text",
532
+ "primaryKey": false,
533
+ "notNull": true
534
+ },
535
+ "external_id": {
536
+ "name": "external_id",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true
540
+ },
541
+ "author_handle": {
542
+ "name": "author_handle",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": true
546
+ },
547
+ "author_name": {
548
+ "name": "author_name",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false
552
+ },
553
+ "author_avatar_url": {
554
+ "name": "author_avatar_url",
555
+ "type": "text",
556
+ "primaryKey": false,
557
+ "notNull": false
558
+ },
559
+ "text": {
560
+ "name": "text",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true
564
+ },
565
+ "url": {
566
+ "name": "url",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": false
570
+ },
571
+ "created_at": {
572
+ "name": "created_at",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": true
576
+ },
577
+ "in_reply_to": {
578
+ "name": "in_reply_to",
579
+ "type": "text",
580
+ "primaryKey": false,
581
+ "notNull": false
582
+ },
583
+ "own": {
584
+ "name": "own",
585
+ "type": "boolean",
586
+ "primaryKey": false,
587
+ "notNull": true,
588
+ "default": false
589
+ },
590
+ "fetched_at": {
591
+ "name": "fetched_at",
592
+ "type": "text",
593
+ "primaryKey": false,
594
+ "notNull": true,
595
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
596
+ },
597
+ "status": {
598
+ "name": "status",
599
+ "type": "text",
600
+ "primaryKey": false,
601
+ "notNull": true,
602
+ "default": "'new'"
603
+ },
604
+ "classification": {
605
+ "name": "classification",
606
+ "type": "text",
607
+ "primaryKey": false,
608
+ "notNull": false
609
+ },
610
+ "draft": {
611
+ "name": "draft",
612
+ "type": "text",
613
+ "primaryKey": false,
614
+ "notNull": false
615
+ },
616
+ "note": {
617
+ "name": "note",
618
+ "type": "text",
619
+ "primaryKey": false,
620
+ "notNull": false
621
+ },
622
+ "problem": {
623
+ "name": "problem",
624
+ "type": "text",
625
+ "primaryKey": false,
626
+ "notNull": false
627
+ },
628
+ "sent_external_id": {
629
+ "name": "sent_external_id",
630
+ "type": "text",
631
+ "primaryKey": false,
632
+ "notNull": false
633
+ },
634
+ "sent_url": {
635
+ "name": "sent_url",
636
+ "type": "text",
637
+ "primaryKey": false,
638
+ "notNull": false
639
+ },
640
+ "sent_at": {
641
+ "name": "sent_at",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": false
645
+ },
646
+ "updated_at": {
647
+ "name": "updated_at",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
652
+ }
653
+ },
654
+ "indexes": {
655
+ "comments_by_post": {
656
+ "name": "comments_by_post",
657
+ "columns": [
658
+ {
659
+ "expression": "post_id",
660
+ "isExpression": false,
661
+ "asc": true,
662
+ "nulls": "last"
663
+ }
664
+ ],
665
+ "isUnique": false,
666
+ "concurrently": false,
667
+ "method": "btree",
668
+ "with": {}
669
+ },
670
+ "comments_by_status": {
671
+ "name": "comments_by_status",
672
+ "columns": [
673
+ {
674
+ "expression": "status",
675
+ "isExpression": false,
676
+ "asc": true,
677
+ "nulls": "last"
678
+ },
679
+ {
680
+ "expression": "created_at",
681
+ "isExpression": false,
682
+ "asc": true,
683
+ "nulls": "last"
684
+ }
685
+ ],
686
+ "isUnique": false,
687
+ "concurrently": false,
688
+ "method": "btree",
689
+ "with": {}
690
+ },
691
+ "comments_by_channel": {
692
+ "name": "comments_by_channel",
693
+ "columns": [
694
+ {
695
+ "expression": "channel",
696
+ "isExpression": false,
697
+ "asc": true,
698
+ "nulls": "last"
699
+ },
700
+ {
701
+ "expression": "created_at",
702
+ "isExpression": false,
703
+ "asc": false,
704
+ "nulls": "last"
705
+ },
706
+ {
707
+ "expression": "id",
708
+ "isExpression": false,
709
+ "asc": false,
710
+ "nulls": "last"
711
+ }
712
+ ],
713
+ "isUnique": false,
714
+ "concurrently": false,
715
+ "method": "btree",
716
+ "with": {}
717
+ },
718
+ "comments_by_newest": {
719
+ "name": "comments_by_newest",
720
+ "columns": [
721
+ {
722
+ "expression": "created_at",
723
+ "isExpression": false,
724
+ "asc": false,
725
+ "nulls": "last"
726
+ },
727
+ {
728
+ "expression": "id",
729
+ "isExpression": false,
730
+ "asc": false,
731
+ "nulls": "last"
732
+ }
733
+ ],
734
+ "isUnique": false,
735
+ "concurrently": false,
736
+ "method": "btree",
737
+ "with": {}
738
+ },
739
+ "comments_text_trgm": {
740
+ "name": "comments_text_trgm",
741
+ "columns": [
742
+ {
743
+ "expression": "text",
744
+ "isExpression": false,
745
+ "asc": true,
746
+ "nulls": "last",
747
+ "opclass": "gin_trgm_ops"
748
+ }
749
+ ],
750
+ "isUnique": false,
751
+ "concurrently": false,
752
+ "method": "gin",
753
+ "with": {}
754
+ },
755
+ "comments_author_handle_trgm": {
756
+ "name": "comments_author_handle_trgm",
757
+ "columns": [
758
+ {
759
+ "expression": "author_handle",
760
+ "isExpression": false,
761
+ "asc": true,
762
+ "nulls": "last",
763
+ "opclass": "gin_trgm_ops"
764
+ }
765
+ ],
766
+ "isUnique": false,
767
+ "concurrently": false,
768
+ "method": "gin",
769
+ "with": {}
770
+ },
771
+ "comments_author_name_trgm": {
772
+ "name": "comments_author_name_trgm",
773
+ "columns": [
774
+ {
775
+ "expression": "author_name",
776
+ "isExpression": false,
777
+ "asc": true,
778
+ "nulls": "last",
779
+ "opclass": "gin_trgm_ops"
780
+ }
781
+ ],
782
+ "isUnique": false,
783
+ "concurrently": false,
784
+ "method": "gin",
785
+ "with": {}
786
+ }
787
+ },
788
+ "foreignKeys": {
789
+ "comments_post_id_posts_id_fk": {
790
+ "name": "comments_post_id_posts_id_fk",
791
+ "tableFrom": "comments",
792
+ "tableTo": "posts",
793
+ "columnsFrom": [
794
+ "post_id"
795
+ ],
796
+ "columnsTo": [
797
+ "id"
798
+ ],
799
+ "onDelete": "no action",
800
+ "onUpdate": "no action"
801
+ }
802
+ },
803
+ "compositePrimaryKeys": {},
804
+ "uniqueConstraints": {
805
+ "comments_channel_external_unique": {
806
+ "name": "comments_channel_external_unique",
807
+ "nullsNotDistinct": false,
808
+ "columns": [
809
+ "channel",
810
+ "external_id"
811
+ ]
812
+ }
813
+ },
814
+ "policies": {},
815
+ "checkConstraints": {},
816
+ "isRLSEnabled": false
817
+ },
818
+ "public.cursors": {
819
+ "name": "cursors",
820
+ "schema": "",
821
+ "columns": {
822
+ "key": {
823
+ "name": "key",
824
+ "type": "text",
825
+ "primaryKey": true,
826
+ "notNull": true
827
+ },
828
+ "value": {
829
+ "name": "value",
830
+ "type": "text",
831
+ "primaryKey": false,
832
+ "notNull": true
833
+ }
834
+ },
835
+ "indexes": {},
836
+ "foreignKeys": {},
837
+ "compositePrimaryKeys": {},
838
+ "uniqueConstraints": {},
839
+ "policies": {},
840
+ "checkConstraints": {},
841
+ "isRLSEnabled": false
842
+ },
843
+ "public.jobs": {
844
+ "name": "jobs",
845
+ "schema": "",
846
+ "columns": {
847
+ "id": {
848
+ "name": "id",
849
+ "type": "text",
850
+ "primaryKey": true,
851
+ "notNull": true
852
+ },
853
+ "queue": {
854
+ "name": "queue",
855
+ "type": "text",
856
+ "primaryKey": false,
857
+ "notNull": true
858
+ },
859
+ "title": {
860
+ "name": "title",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": true
864
+ },
865
+ "launch_id": {
866
+ "name": "launch_id",
867
+ "type": "integer",
868
+ "primaryKey": false,
869
+ "notNull": false
870
+ },
871
+ "state": {
872
+ "name": "state",
873
+ "type": "text",
874
+ "primaryKey": false,
875
+ "notNull": true,
876
+ "default": "'created'"
877
+ },
878
+ "attempts": {
879
+ "name": "attempts",
880
+ "type": "integer",
881
+ "primaryKey": false,
882
+ "notNull": true,
883
+ "default": 0
884
+ },
885
+ "log": {
886
+ "name": "log",
887
+ "type": "jsonb",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "default": "'[]'::jsonb"
891
+ },
892
+ "link": {
893
+ "name": "link",
894
+ "type": "text",
895
+ "primaryKey": false,
896
+ "notNull": false
897
+ },
898
+ "created_at": {
899
+ "name": "created_at",
900
+ "type": "text",
901
+ "primaryKey": false,
902
+ "notNull": true,
903
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
904
+ },
905
+ "started_at": {
906
+ "name": "started_at",
907
+ "type": "text",
908
+ "primaryKey": false,
909
+ "notNull": false
910
+ },
911
+ "ended_at": {
912
+ "name": "ended_at",
913
+ "type": "text",
914
+ "primaryKey": false,
915
+ "notNull": false
916
+ }
917
+ },
918
+ "indexes": {
919
+ "jobs_by_created": {
920
+ "name": "jobs_by_created",
921
+ "columns": [
922
+ {
923
+ "expression": "created_at",
924
+ "isExpression": false,
925
+ "asc": true,
926
+ "nulls": "last"
927
+ }
928
+ ],
929
+ "isUnique": false,
930
+ "concurrently": false,
931
+ "method": "btree",
932
+ "with": {}
933
+ },
934
+ "jobs_by_launch": {
935
+ "name": "jobs_by_launch",
936
+ "columns": [
937
+ {
938
+ "expression": "launch_id",
939
+ "isExpression": false,
940
+ "asc": true,
941
+ "nulls": "last"
942
+ }
943
+ ],
944
+ "isUnique": false,
945
+ "concurrently": false,
946
+ "method": "btree",
947
+ "with": {}
948
+ }
949
+ },
950
+ "foreignKeys": {
951
+ "jobs_launch_id_launches_id_fk": {
952
+ "name": "jobs_launch_id_launches_id_fk",
953
+ "tableFrom": "jobs",
954
+ "tableTo": "launches",
955
+ "columnsFrom": [
956
+ "launch_id"
957
+ ],
958
+ "columnsTo": [
959
+ "id"
960
+ ],
961
+ "onDelete": "set null",
962
+ "onUpdate": "no action"
963
+ }
964
+ },
965
+ "compositePrimaryKeys": {},
966
+ "uniqueConstraints": {},
967
+ "policies": {},
968
+ "checkConstraints": {},
969
+ "isRLSEnabled": false
970
+ },
971
+ "public.launches": {
972
+ "name": "launches",
973
+ "schema": "",
974
+ "columns": {
975
+ "id": {
976
+ "name": "id",
977
+ "type": "integer",
978
+ "primaryKey": true,
979
+ "notNull": true,
980
+ "identity": {
981
+ "type": "byDefault",
982
+ "name": "launches_id_seq",
983
+ "schema": "public",
984
+ "increment": "1",
985
+ "startWith": "1",
986
+ "minValue": "1",
987
+ "maxValue": "2147483647",
988
+ "cache": "1",
989
+ "cycle": false
990
+ }
991
+ },
992
+ "repo": {
993
+ "name": "repo",
994
+ "type": "text",
995
+ "primaryKey": false,
996
+ "notNull": true
997
+ },
998
+ "ref": {
999
+ "name": "ref",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": true
1003
+ },
1004
+ "trigger": {
1005
+ "name": "trigger",
1006
+ "type": "text",
1007
+ "primaryKey": false,
1008
+ "notNull": true
1009
+ },
1010
+ "kind": {
1011
+ "name": "kind",
1012
+ "type": "text",
1013
+ "primaryKey": false,
1014
+ "notNull": true
1015
+ },
1016
+ "brand": {
1017
+ "name": "brand",
1018
+ "type": "text",
1019
+ "primaryKey": false,
1020
+ "notNull": true
1021
+ },
1022
+ "status": {
1023
+ "name": "status",
1024
+ "type": "text",
1025
+ "primaryKey": false,
1026
+ "notNull": true
1027
+ },
1028
+ "detail": {
1029
+ "name": "detail",
1030
+ "type": "text",
1031
+ "primaryKey": false,
1032
+ "notNull": false
1033
+ },
1034
+ "created_at": {
1035
+ "name": "created_at",
1036
+ "type": "text",
1037
+ "primaryKey": false,
1038
+ "notNull": true,
1039
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1040
+ },
1041
+ "updated_at": {
1042
+ "name": "updated_at",
1043
+ "type": "text",
1044
+ "primaryKey": false,
1045
+ "notNull": true,
1046
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1047
+ }
1048
+ },
1049
+ "indexes": {},
1050
+ "foreignKeys": {},
1051
+ "compositePrimaryKeys": {},
1052
+ "uniqueConstraints": {
1053
+ "launches_repo_ref_unique": {
1054
+ "name": "launches_repo_ref_unique",
1055
+ "nullsNotDistinct": false,
1056
+ "columns": [
1057
+ "repo",
1058
+ "ref"
1059
+ ]
1060
+ }
1061
+ },
1062
+ "policies": {},
1063
+ "checkConstraints": {},
1064
+ "isRLSEnabled": false
1065
+ },
1066
+ "public.metrics": {
1067
+ "name": "metrics",
1068
+ "schema": "",
1069
+ "columns": {
1070
+ "launch_id": {
1071
+ "name": "launch_id",
1072
+ "type": "integer",
1073
+ "primaryKey": false,
1074
+ "notNull": true
1075
+ },
1076
+ "post_id": {
1077
+ "name": "post_id",
1078
+ "type": "integer",
1079
+ "primaryKey": false,
1080
+ "notNull": false
1081
+ },
1082
+ "source": {
1083
+ "name": "source",
1084
+ "type": "text",
1085
+ "primaryKey": false,
1086
+ "notNull": true
1087
+ },
1088
+ "name": {
1089
+ "name": "name",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true
1093
+ },
1094
+ "value": {
1095
+ "name": "value",
1096
+ "type": "double precision",
1097
+ "primaryKey": false,
1098
+ "notNull": true
1099
+ },
1100
+ "taken_at": {
1101
+ "name": "taken_at",
1102
+ "type": "text",
1103
+ "primaryKey": false,
1104
+ "notNull": true
1105
+ }
1106
+ },
1107
+ "indexes": {
1108
+ "metrics_by_launch": {
1109
+ "name": "metrics_by_launch",
1110
+ "columns": [
1111
+ {
1112
+ "expression": "launch_id",
1113
+ "isExpression": false,
1114
+ "asc": true,
1115
+ "nulls": "last"
1116
+ },
1117
+ {
1118
+ "expression": "source",
1119
+ "isExpression": false,
1120
+ "asc": true,
1121
+ "nulls": "last"
1122
+ },
1123
+ {
1124
+ "expression": "name",
1125
+ "isExpression": false,
1126
+ "asc": true,
1127
+ "nulls": "last"
1128
+ },
1129
+ {
1130
+ "expression": "taken_at",
1131
+ "isExpression": false,
1132
+ "asc": true,
1133
+ "nulls": "last"
1134
+ }
1135
+ ],
1136
+ "isUnique": false,
1137
+ "concurrently": false,
1138
+ "method": "btree",
1139
+ "with": {}
1140
+ },
1141
+ "metrics_by_post": {
1142
+ "name": "metrics_by_post",
1143
+ "columns": [
1144
+ {
1145
+ "expression": "post_id",
1146
+ "isExpression": false,
1147
+ "asc": true,
1148
+ "nulls": "last"
1149
+ }
1150
+ ],
1151
+ "isUnique": false,
1152
+ "concurrently": false,
1153
+ "method": "btree",
1154
+ "with": {}
1155
+ }
1156
+ },
1157
+ "foreignKeys": {
1158
+ "metrics_launch_id_launches_id_fk": {
1159
+ "name": "metrics_launch_id_launches_id_fk",
1160
+ "tableFrom": "metrics",
1161
+ "tableTo": "launches",
1162
+ "columnsFrom": [
1163
+ "launch_id"
1164
+ ],
1165
+ "columnsTo": [
1166
+ "id"
1167
+ ],
1168
+ "onDelete": "no action",
1169
+ "onUpdate": "no action"
1170
+ },
1171
+ "metrics_post_id_posts_id_fk": {
1172
+ "name": "metrics_post_id_posts_id_fk",
1173
+ "tableFrom": "metrics",
1174
+ "tableTo": "posts",
1175
+ "columnsFrom": [
1176
+ "post_id"
1177
+ ],
1178
+ "columnsTo": [
1179
+ "id"
1180
+ ],
1181
+ "onDelete": "no action",
1182
+ "onUpdate": "no action"
1183
+ }
1184
+ },
1185
+ "compositePrimaryKeys": {},
1186
+ "uniqueConstraints": {},
1187
+ "policies": {},
1188
+ "checkConstraints": {},
1189
+ "isRLSEnabled": false
1190
+ },
1191
+ "public.posts": {
1192
+ "name": "posts",
1193
+ "schema": "",
1194
+ "columns": {
1195
+ "id": {
1196
+ "name": "id",
1197
+ "type": "integer",
1198
+ "primaryKey": true,
1199
+ "notNull": true,
1200
+ "identity": {
1201
+ "type": "byDefault",
1202
+ "name": "posts_id_seq",
1203
+ "schema": "public",
1204
+ "increment": "1",
1205
+ "startWith": "1",
1206
+ "minValue": "1",
1207
+ "maxValue": "2147483647",
1208
+ "cache": "1",
1209
+ "cycle": false
1210
+ }
1211
+ },
1212
+ "launch_id": {
1213
+ "name": "launch_id",
1214
+ "type": "integer",
1215
+ "primaryKey": false,
1216
+ "notNull": true
1217
+ },
1218
+ "channel": {
1219
+ "name": "channel",
1220
+ "type": "text",
1221
+ "primaryKey": false,
1222
+ "notNull": true
1223
+ },
1224
+ "account_id": {
1225
+ "name": "account_id",
1226
+ "type": "integer",
1227
+ "primaryKey": false,
1228
+ "notNull": false
1229
+ },
1230
+ "kind": {
1231
+ "name": "kind",
1232
+ "type": "text",
1233
+ "primaryKey": false,
1234
+ "notNull": true
1235
+ },
1236
+ "external_id": {
1237
+ "name": "external_id",
1238
+ "type": "text",
1239
+ "primaryKey": false,
1240
+ "notNull": false
1241
+ },
1242
+ "url": {
1243
+ "name": "url",
1244
+ "type": "text",
1245
+ "primaryKey": false,
1246
+ "notNull": false
1247
+ },
1248
+ "status": {
1249
+ "name": "status",
1250
+ "type": "text",
1251
+ "primaryKey": false,
1252
+ "notNull": true,
1253
+ "default": "'live'"
1254
+ },
1255
+ "content_hash": {
1256
+ "name": "content_hash",
1257
+ "type": "text",
1258
+ "primaryKey": false,
1259
+ "notNull": false
1260
+ },
1261
+ "scheduled_at": {
1262
+ "name": "scheduled_at",
1263
+ "type": "text",
1264
+ "primaryKey": false,
1265
+ "notNull": false
1266
+ },
1267
+ "published_at": {
1268
+ "name": "published_at",
1269
+ "type": "text",
1270
+ "primaryKey": false,
1271
+ "notNull": true,
1272
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1273
+ },
1274
+ "updated_at": {
1275
+ "name": "updated_at",
1276
+ "type": "text",
1277
+ "primaryKey": false,
1278
+ "notNull": true,
1279
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1280
+ }
1281
+ },
1282
+ "indexes": {},
1283
+ "foreignKeys": {
1284
+ "posts_launch_id_launches_id_fk": {
1285
+ "name": "posts_launch_id_launches_id_fk",
1286
+ "tableFrom": "posts",
1287
+ "tableTo": "launches",
1288
+ "columnsFrom": [
1289
+ "launch_id"
1290
+ ],
1291
+ "columnsTo": [
1292
+ "id"
1293
+ ],
1294
+ "onDelete": "no action",
1295
+ "onUpdate": "no action"
1296
+ },
1297
+ "posts_account_id_accounts_id_fk": {
1298
+ "name": "posts_account_id_accounts_id_fk",
1299
+ "tableFrom": "posts",
1300
+ "tableTo": "accounts",
1301
+ "columnsFrom": [
1302
+ "account_id"
1303
+ ],
1304
+ "columnsTo": [
1305
+ "id"
1306
+ ],
1307
+ "onDelete": "set null",
1308
+ "onUpdate": "no action"
1309
+ }
1310
+ },
1311
+ "compositePrimaryKeys": {},
1312
+ "uniqueConstraints": {
1313
+ "posts_piece_unique": {
1314
+ "name": "posts_piece_unique",
1315
+ "nullsNotDistinct": true,
1316
+ "columns": [
1317
+ "launch_id",
1318
+ "channel",
1319
+ "account_id",
1320
+ "kind"
1321
+ ]
1322
+ }
1323
+ },
1324
+ "policies": {},
1325
+ "checkConstraints": {},
1326
+ "isRLSEnabled": false
1327
+ },
1328
+ "public.settings": {
1329
+ "name": "settings",
1330
+ "schema": "",
1331
+ "columns": {
1332
+ "key": {
1333
+ "name": "key",
1334
+ "type": "text",
1335
+ "primaryKey": true,
1336
+ "notNull": true
1337
+ },
1338
+ "value": {
1339
+ "name": "value",
1340
+ "type": "jsonb",
1341
+ "primaryKey": false,
1342
+ "notNull": true
1343
+ },
1344
+ "updated_at": {
1345
+ "name": "updated_at",
1346
+ "type": "text",
1347
+ "primaryKey": false,
1348
+ "notNull": true,
1349
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1350
+ }
1351
+ },
1352
+ "indexes": {},
1353
+ "foreignKeys": {},
1354
+ "compositePrimaryKeys": {},
1355
+ "uniqueConstraints": {},
1356
+ "policies": {},
1357
+ "checkConstraints": {},
1358
+ "isRLSEnabled": false
1359
+ }
1360
+ },
1361
+ "enums": {},
1362
+ "schemas": {},
1363
+ "sequences": {},
1364
+ "roles": {},
1365
+ "policies": {},
1366
+ "views": {},
1367
+ "_meta": {
1368
+ "columns": {},
1369
+ "schemas": {},
1370
+ "tables": {}
1371
+ }
1372
+ }