@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,1324 @@
1
+ {
2
+ "id": "4693ab4a-8c85-41dc-8cf6-8ce3b91362b5",
3
+ "prevId": "e5ab088e-3b7e-4b54-a6b3-37dc1c7f290b",
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
+ },
740
+ "foreignKeys": {
741
+ "comments_post_id_posts_id_fk": {
742
+ "name": "comments_post_id_posts_id_fk",
743
+ "tableFrom": "comments",
744
+ "tableTo": "posts",
745
+ "columnsFrom": [
746
+ "post_id"
747
+ ],
748
+ "columnsTo": [
749
+ "id"
750
+ ],
751
+ "onDelete": "no action",
752
+ "onUpdate": "no action"
753
+ }
754
+ },
755
+ "compositePrimaryKeys": {},
756
+ "uniqueConstraints": {
757
+ "comments_channel_external_unique": {
758
+ "name": "comments_channel_external_unique",
759
+ "nullsNotDistinct": false,
760
+ "columns": [
761
+ "channel",
762
+ "external_id"
763
+ ]
764
+ }
765
+ },
766
+ "policies": {},
767
+ "checkConstraints": {},
768
+ "isRLSEnabled": false
769
+ },
770
+ "public.cursors": {
771
+ "name": "cursors",
772
+ "schema": "",
773
+ "columns": {
774
+ "key": {
775
+ "name": "key",
776
+ "type": "text",
777
+ "primaryKey": true,
778
+ "notNull": true
779
+ },
780
+ "value": {
781
+ "name": "value",
782
+ "type": "text",
783
+ "primaryKey": false,
784
+ "notNull": true
785
+ }
786
+ },
787
+ "indexes": {},
788
+ "foreignKeys": {},
789
+ "compositePrimaryKeys": {},
790
+ "uniqueConstraints": {},
791
+ "policies": {},
792
+ "checkConstraints": {},
793
+ "isRLSEnabled": false
794
+ },
795
+ "public.jobs": {
796
+ "name": "jobs",
797
+ "schema": "",
798
+ "columns": {
799
+ "id": {
800
+ "name": "id",
801
+ "type": "text",
802
+ "primaryKey": true,
803
+ "notNull": true
804
+ },
805
+ "queue": {
806
+ "name": "queue",
807
+ "type": "text",
808
+ "primaryKey": false,
809
+ "notNull": true
810
+ },
811
+ "title": {
812
+ "name": "title",
813
+ "type": "text",
814
+ "primaryKey": false,
815
+ "notNull": true
816
+ },
817
+ "launch_id": {
818
+ "name": "launch_id",
819
+ "type": "integer",
820
+ "primaryKey": false,
821
+ "notNull": false
822
+ },
823
+ "state": {
824
+ "name": "state",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": true,
828
+ "default": "'created'"
829
+ },
830
+ "attempts": {
831
+ "name": "attempts",
832
+ "type": "integer",
833
+ "primaryKey": false,
834
+ "notNull": true,
835
+ "default": 0
836
+ },
837
+ "log": {
838
+ "name": "log",
839
+ "type": "jsonb",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "default": "'[]'::jsonb"
843
+ },
844
+ "link": {
845
+ "name": "link",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": false
849
+ },
850
+ "created_at": {
851
+ "name": "created_at",
852
+ "type": "text",
853
+ "primaryKey": false,
854
+ "notNull": true,
855
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
856
+ },
857
+ "started_at": {
858
+ "name": "started_at",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": false
862
+ },
863
+ "ended_at": {
864
+ "name": "ended_at",
865
+ "type": "text",
866
+ "primaryKey": false,
867
+ "notNull": false
868
+ }
869
+ },
870
+ "indexes": {
871
+ "jobs_by_created": {
872
+ "name": "jobs_by_created",
873
+ "columns": [
874
+ {
875
+ "expression": "created_at",
876
+ "isExpression": false,
877
+ "asc": true,
878
+ "nulls": "last"
879
+ }
880
+ ],
881
+ "isUnique": false,
882
+ "concurrently": false,
883
+ "method": "btree",
884
+ "with": {}
885
+ },
886
+ "jobs_by_launch": {
887
+ "name": "jobs_by_launch",
888
+ "columns": [
889
+ {
890
+ "expression": "launch_id",
891
+ "isExpression": false,
892
+ "asc": true,
893
+ "nulls": "last"
894
+ }
895
+ ],
896
+ "isUnique": false,
897
+ "concurrently": false,
898
+ "method": "btree",
899
+ "with": {}
900
+ }
901
+ },
902
+ "foreignKeys": {
903
+ "jobs_launch_id_launches_id_fk": {
904
+ "name": "jobs_launch_id_launches_id_fk",
905
+ "tableFrom": "jobs",
906
+ "tableTo": "launches",
907
+ "columnsFrom": [
908
+ "launch_id"
909
+ ],
910
+ "columnsTo": [
911
+ "id"
912
+ ],
913
+ "onDelete": "set null",
914
+ "onUpdate": "no action"
915
+ }
916
+ },
917
+ "compositePrimaryKeys": {},
918
+ "uniqueConstraints": {},
919
+ "policies": {},
920
+ "checkConstraints": {},
921
+ "isRLSEnabled": false
922
+ },
923
+ "public.launches": {
924
+ "name": "launches",
925
+ "schema": "",
926
+ "columns": {
927
+ "id": {
928
+ "name": "id",
929
+ "type": "integer",
930
+ "primaryKey": true,
931
+ "notNull": true,
932
+ "identity": {
933
+ "type": "byDefault",
934
+ "name": "launches_id_seq",
935
+ "schema": "public",
936
+ "increment": "1",
937
+ "startWith": "1",
938
+ "minValue": "1",
939
+ "maxValue": "2147483647",
940
+ "cache": "1",
941
+ "cycle": false
942
+ }
943
+ },
944
+ "repo": {
945
+ "name": "repo",
946
+ "type": "text",
947
+ "primaryKey": false,
948
+ "notNull": true
949
+ },
950
+ "ref": {
951
+ "name": "ref",
952
+ "type": "text",
953
+ "primaryKey": false,
954
+ "notNull": true
955
+ },
956
+ "trigger": {
957
+ "name": "trigger",
958
+ "type": "text",
959
+ "primaryKey": false,
960
+ "notNull": true
961
+ },
962
+ "kind": {
963
+ "name": "kind",
964
+ "type": "text",
965
+ "primaryKey": false,
966
+ "notNull": true
967
+ },
968
+ "brand": {
969
+ "name": "brand",
970
+ "type": "text",
971
+ "primaryKey": false,
972
+ "notNull": true
973
+ },
974
+ "status": {
975
+ "name": "status",
976
+ "type": "text",
977
+ "primaryKey": false,
978
+ "notNull": true
979
+ },
980
+ "detail": {
981
+ "name": "detail",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": false
985
+ },
986
+ "created_at": {
987
+ "name": "created_at",
988
+ "type": "text",
989
+ "primaryKey": false,
990
+ "notNull": true,
991
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
992
+ },
993
+ "updated_at": {
994
+ "name": "updated_at",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": true,
998
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
999
+ }
1000
+ },
1001
+ "indexes": {},
1002
+ "foreignKeys": {},
1003
+ "compositePrimaryKeys": {},
1004
+ "uniqueConstraints": {
1005
+ "launches_repo_ref_unique": {
1006
+ "name": "launches_repo_ref_unique",
1007
+ "nullsNotDistinct": false,
1008
+ "columns": [
1009
+ "repo",
1010
+ "ref"
1011
+ ]
1012
+ }
1013
+ },
1014
+ "policies": {},
1015
+ "checkConstraints": {},
1016
+ "isRLSEnabled": false
1017
+ },
1018
+ "public.metrics": {
1019
+ "name": "metrics",
1020
+ "schema": "",
1021
+ "columns": {
1022
+ "launch_id": {
1023
+ "name": "launch_id",
1024
+ "type": "integer",
1025
+ "primaryKey": false,
1026
+ "notNull": true
1027
+ },
1028
+ "post_id": {
1029
+ "name": "post_id",
1030
+ "type": "integer",
1031
+ "primaryKey": false,
1032
+ "notNull": false
1033
+ },
1034
+ "source": {
1035
+ "name": "source",
1036
+ "type": "text",
1037
+ "primaryKey": false,
1038
+ "notNull": true
1039
+ },
1040
+ "name": {
1041
+ "name": "name",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": true
1045
+ },
1046
+ "value": {
1047
+ "name": "value",
1048
+ "type": "double precision",
1049
+ "primaryKey": false,
1050
+ "notNull": true
1051
+ },
1052
+ "taken_at": {
1053
+ "name": "taken_at",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": true
1057
+ }
1058
+ },
1059
+ "indexes": {
1060
+ "metrics_by_launch": {
1061
+ "name": "metrics_by_launch",
1062
+ "columns": [
1063
+ {
1064
+ "expression": "launch_id",
1065
+ "isExpression": false,
1066
+ "asc": true,
1067
+ "nulls": "last"
1068
+ },
1069
+ {
1070
+ "expression": "source",
1071
+ "isExpression": false,
1072
+ "asc": true,
1073
+ "nulls": "last"
1074
+ },
1075
+ {
1076
+ "expression": "name",
1077
+ "isExpression": false,
1078
+ "asc": true,
1079
+ "nulls": "last"
1080
+ },
1081
+ {
1082
+ "expression": "taken_at",
1083
+ "isExpression": false,
1084
+ "asc": true,
1085
+ "nulls": "last"
1086
+ }
1087
+ ],
1088
+ "isUnique": false,
1089
+ "concurrently": false,
1090
+ "method": "btree",
1091
+ "with": {}
1092
+ },
1093
+ "metrics_by_post": {
1094
+ "name": "metrics_by_post",
1095
+ "columns": [
1096
+ {
1097
+ "expression": "post_id",
1098
+ "isExpression": false,
1099
+ "asc": true,
1100
+ "nulls": "last"
1101
+ }
1102
+ ],
1103
+ "isUnique": false,
1104
+ "concurrently": false,
1105
+ "method": "btree",
1106
+ "with": {}
1107
+ }
1108
+ },
1109
+ "foreignKeys": {
1110
+ "metrics_launch_id_launches_id_fk": {
1111
+ "name": "metrics_launch_id_launches_id_fk",
1112
+ "tableFrom": "metrics",
1113
+ "tableTo": "launches",
1114
+ "columnsFrom": [
1115
+ "launch_id"
1116
+ ],
1117
+ "columnsTo": [
1118
+ "id"
1119
+ ],
1120
+ "onDelete": "no action",
1121
+ "onUpdate": "no action"
1122
+ },
1123
+ "metrics_post_id_posts_id_fk": {
1124
+ "name": "metrics_post_id_posts_id_fk",
1125
+ "tableFrom": "metrics",
1126
+ "tableTo": "posts",
1127
+ "columnsFrom": [
1128
+ "post_id"
1129
+ ],
1130
+ "columnsTo": [
1131
+ "id"
1132
+ ],
1133
+ "onDelete": "no action",
1134
+ "onUpdate": "no action"
1135
+ }
1136
+ },
1137
+ "compositePrimaryKeys": {},
1138
+ "uniqueConstraints": {},
1139
+ "policies": {},
1140
+ "checkConstraints": {},
1141
+ "isRLSEnabled": false
1142
+ },
1143
+ "public.posts": {
1144
+ "name": "posts",
1145
+ "schema": "",
1146
+ "columns": {
1147
+ "id": {
1148
+ "name": "id",
1149
+ "type": "integer",
1150
+ "primaryKey": true,
1151
+ "notNull": true,
1152
+ "identity": {
1153
+ "type": "byDefault",
1154
+ "name": "posts_id_seq",
1155
+ "schema": "public",
1156
+ "increment": "1",
1157
+ "startWith": "1",
1158
+ "minValue": "1",
1159
+ "maxValue": "2147483647",
1160
+ "cache": "1",
1161
+ "cycle": false
1162
+ }
1163
+ },
1164
+ "launch_id": {
1165
+ "name": "launch_id",
1166
+ "type": "integer",
1167
+ "primaryKey": false,
1168
+ "notNull": true
1169
+ },
1170
+ "channel": {
1171
+ "name": "channel",
1172
+ "type": "text",
1173
+ "primaryKey": false,
1174
+ "notNull": true
1175
+ },
1176
+ "account_id": {
1177
+ "name": "account_id",
1178
+ "type": "integer",
1179
+ "primaryKey": false,
1180
+ "notNull": false
1181
+ },
1182
+ "kind": {
1183
+ "name": "kind",
1184
+ "type": "text",
1185
+ "primaryKey": false,
1186
+ "notNull": true
1187
+ },
1188
+ "external_id": {
1189
+ "name": "external_id",
1190
+ "type": "text",
1191
+ "primaryKey": false,
1192
+ "notNull": false
1193
+ },
1194
+ "url": {
1195
+ "name": "url",
1196
+ "type": "text",
1197
+ "primaryKey": false,
1198
+ "notNull": false
1199
+ },
1200
+ "status": {
1201
+ "name": "status",
1202
+ "type": "text",
1203
+ "primaryKey": false,
1204
+ "notNull": true,
1205
+ "default": "'live'"
1206
+ },
1207
+ "content_hash": {
1208
+ "name": "content_hash",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": false
1212
+ },
1213
+ "scheduled_at": {
1214
+ "name": "scheduled_at",
1215
+ "type": "text",
1216
+ "primaryKey": false,
1217
+ "notNull": false
1218
+ },
1219
+ "published_at": {
1220
+ "name": "published_at",
1221
+ "type": "text",
1222
+ "primaryKey": false,
1223
+ "notNull": true,
1224
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1225
+ },
1226
+ "updated_at": {
1227
+ "name": "updated_at",
1228
+ "type": "text",
1229
+ "primaryKey": false,
1230
+ "notNull": true,
1231
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1232
+ }
1233
+ },
1234
+ "indexes": {},
1235
+ "foreignKeys": {
1236
+ "posts_launch_id_launches_id_fk": {
1237
+ "name": "posts_launch_id_launches_id_fk",
1238
+ "tableFrom": "posts",
1239
+ "tableTo": "launches",
1240
+ "columnsFrom": [
1241
+ "launch_id"
1242
+ ],
1243
+ "columnsTo": [
1244
+ "id"
1245
+ ],
1246
+ "onDelete": "no action",
1247
+ "onUpdate": "no action"
1248
+ },
1249
+ "posts_account_id_accounts_id_fk": {
1250
+ "name": "posts_account_id_accounts_id_fk",
1251
+ "tableFrom": "posts",
1252
+ "tableTo": "accounts",
1253
+ "columnsFrom": [
1254
+ "account_id"
1255
+ ],
1256
+ "columnsTo": [
1257
+ "id"
1258
+ ],
1259
+ "onDelete": "set null",
1260
+ "onUpdate": "no action"
1261
+ }
1262
+ },
1263
+ "compositePrimaryKeys": {},
1264
+ "uniqueConstraints": {
1265
+ "posts_piece_unique": {
1266
+ "name": "posts_piece_unique",
1267
+ "nullsNotDistinct": true,
1268
+ "columns": [
1269
+ "launch_id",
1270
+ "channel",
1271
+ "account_id",
1272
+ "kind"
1273
+ ]
1274
+ }
1275
+ },
1276
+ "policies": {},
1277
+ "checkConstraints": {},
1278
+ "isRLSEnabled": false
1279
+ },
1280
+ "public.settings": {
1281
+ "name": "settings",
1282
+ "schema": "",
1283
+ "columns": {
1284
+ "key": {
1285
+ "name": "key",
1286
+ "type": "text",
1287
+ "primaryKey": true,
1288
+ "notNull": true
1289
+ },
1290
+ "value": {
1291
+ "name": "value",
1292
+ "type": "jsonb",
1293
+ "primaryKey": false,
1294
+ "notNull": true
1295
+ },
1296
+ "updated_at": {
1297
+ "name": "updated_at",
1298
+ "type": "text",
1299
+ "primaryKey": false,
1300
+ "notNull": true,
1301
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1302
+ }
1303
+ },
1304
+ "indexes": {},
1305
+ "foreignKeys": {},
1306
+ "compositePrimaryKeys": {},
1307
+ "uniqueConstraints": {},
1308
+ "policies": {},
1309
+ "checkConstraints": {},
1310
+ "isRLSEnabled": false
1311
+ }
1312
+ },
1313
+ "enums": {},
1314
+ "schemas": {},
1315
+ "sequences": {},
1316
+ "roles": {},
1317
+ "policies": {},
1318
+ "views": {},
1319
+ "_meta": {
1320
+ "columns": {},
1321
+ "schemas": {},
1322
+ "tables": {}
1323
+ }
1324
+ }