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