@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,1084 @@
1
+ {
2
+ "id": "171a6201-4c08-49fe-82e9-56ec81899d44",
3
+ "prevId": "1579ecf5-d9c7-4c48-b041-d77a5cc94a54",
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.comments": {
263
+ "name": "comments",
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": "comments_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
+ "post_id": {
284
+ "name": "post_id",
285
+ "type": "integer",
286
+ "primaryKey": false,
287
+ "notNull": true
288
+ },
289
+ "channel": {
290
+ "name": "channel",
291
+ "type": "text",
292
+ "primaryKey": false,
293
+ "notNull": true
294
+ },
295
+ "external_id": {
296
+ "name": "external_id",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true
300
+ },
301
+ "author_handle": {
302
+ "name": "author_handle",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": true
306
+ },
307
+ "author_name": {
308
+ "name": "author_name",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": false
312
+ },
313
+ "author_avatar_url": {
314
+ "name": "author_avatar_url",
315
+ "type": "text",
316
+ "primaryKey": false,
317
+ "notNull": false
318
+ },
319
+ "text": {
320
+ "name": "text",
321
+ "type": "text",
322
+ "primaryKey": false,
323
+ "notNull": true
324
+ },
325
+ "url": {
326
+ "name": "url",
327
+ "type": "text",
328
+ "primaryKey": false,
329
+ "notNull": false
330
+ },
331
+ "created_at": {
332
+ "name": "created_at",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": true
336
+ },
337
+ "in_reply_to": {
338
+ "name": "in_reply_to",
339
+ "type": "text",
340
+ "primaryKey": false,
341
+ "notNull": false
342
+ },
343
+ "own": {
344
+ "name": "own",
345
+ "type": "boolean",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "default": false
349
+ },
350
+ "fetched_at": {
351
+ "name": "fetched_at",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": true,
355
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
356
+ },
357
+ "status": {
358
+ "name": "status",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "default": "'new'"
363
+ },
364
+ "classification": {
365
+ "name": "classification",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": false
369
+ },
370
+ "draft": {
371
+ "name": "draft",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": false
375
+ },
376
+ "note": {
377
+ "name": "note",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": false
381
+ },
382
+ "problem": {
383
+ "name": "problem",
384
+ "type": "text",
385
+ "primaryKey": false,
386
+ "notNull": false
387
+ },
388
+ "sent_external_id": {
389
+ "name": "sent_external_id",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": false
393
+ },
394
+ "sent_url": {
395
+ "name": "sent_url",
396
+ "type": "text",
397
+ "primaryKey": false,
398
+ "notNull": false
399
+ },
400
+ "sent_at": {
401
+ "name": "sent_at",
402
+ "type": "text",
403
+ "primaryKey": false,
404
+ "notNull": false
405
+ },
406
+ "updated_at": {
407
+ "name": "updated_at",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": true,
411
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
412
+ }
413
+ },
414
+ "indexes": {
415
+ "comments_by_post": {
416
+ "name": "comments_by_post",
417
+ "columns": [
418
+ {
419
+ "expression": "post_id",
420
+ "isExpression": false,
421
+ "asc": true,
422
+ "nulls": "last"
423
+ }
424
+ ],
425
+ "isUnique": false,
426
+ "concurrently": false,
427
+ "method": "btree",
428
+ "with": {}
429
+ },
430
+ "comments_by_status": {
431
+ "name": "comments_by_status",
432
+ "columns": [
433
+ {
434
+ "expression": "status",
435
+ "isExpression": false,
436
+ "asc": true,
437
+ "nulls": "last"
438
+ },
439
+ {
440
+ "expression": "created_at",
441
+ "isExpression": false,
442
+ "asc": true,
443
+ "nulls": "last"
444
+ }
445
+ ],
446
+ "isUnique": false,
447
+ "concurrently": false,
448
+ "method": "btree",
449
+ "with": {}
450
+ },
451
+ "comments_by_channel": {
452
+ "name": "comments_by_channel",
453
+ "columns": [
454
+ {
455
+ "expression": "channel",
456
+ "isExpression": false,
457
+ "asc": true,
458
+ "nulls": "last"
459
+ },
460
+ {
461
+ "expression": "created_at",
462
+ "isExpression": false,
463
+ "asc": false,
464
+ "nulls": "last"
465
+ },
466
+ {
467
+ "expression": "id",
468
+ "isExpression": false,
469
+ "asc": false,
470
+ "nulls": "last"
471
+ }
472
+ ],
473
+ "isUnique": false,
474
+ "concurrently": false,
475
+ "method": "btree",
476
+ "with": {}
477
+ },
478
+ "comments_by_newest": {
479
+ "name": "comments_by_newest",
480
+ "columns": [
481
+ {
482
+ "expression": "created_at",
483
+ "isExpression": false,
484
+ "asc": false,
485
+ "nulls": "last"
486
+ },
487
+ {
488
+ "expression": "id",
489
+ "isExpression": false,
490
+ "asc": false,
491
+ "nulls": "last"
492
+ }
493
+ ],
494
+ "isUnique": false,
495
+ "concurrently": false,
496
+ "method": "btree",
497
+ "with": {}
498
+ }
499
+ },
500
+ "foreignKeys": {
501
+ "comments_post_id_posts_id_fk": {
502
+ "name": "comments_post_id_posts_id_fk",
503
+ "tableFrom": "comments",
504
+ "tableTo": "posts",
505
+ "columnsFrom": [
506
+ "post_id"
507
+ ],
508
+ "columnsTo": [
509
+ "id"
510
+ ],
511
+ "onDelete": "no action",
512
+ "onUpdate": "no action"
513
+ }
514
+ },
515
+ "compositePrimaryKeys": {},
516
+ "uniqueConstraints": {
517
+ "comments_channel_external_unique": {
518
+ "name": "comments_channel_external_unique",
519
+ "nullsNotDistinct": false,
520
+ "columns": [
521
+ "channel",
522
+ "external_id"
523
+ ]
524
+ }
525
+ },
526
+ "policies": {},
527
+ "checkConstraints": {},
528
+ "isRLSEnabled": false
529
+ },
530
+ "public.cursors": {
531
+ "name": "cursors",
532
+ "schema": "",
533
+ "columns": {
534
+ "key": {
535
+ "name": "key",
536
+ "type": "text",
537
+ "primaryKey": true,
538
+ "notNull": true
539
+ },
540
+ "value": {
541
+ "name": "value",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": true
545
+ }
546
+ },
547
+ "indexes": {},
548
+ "foreignKeys": {},
549
+ "compositePrimaryKeys": {},
550
+ "uniqueConstraints": {},
551
+ "policies": {},
552
+ "checkConstraints": {},
553
+ "isRLSEnabled": false
554
+ },
555
+ "public.jobs": {
556
+ "name": "jobs",
557
+ "schema": "",
558
+ "columns": {
559
+ "id": {
560
+ "name": "id",
561
+ "type": "text",
562
+ "primaryKey": true,
563
+ "notNull": true
564
+ },
565
+ "queue": {
566
+ "name": "queue",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": true
570
+ },
571
+ "title": {
572
+ "name": "title",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": true
576
+ },
577
+ "launch_id": {
578
+ "name": "launch_id",
579
+ "type": "integer",
580
+ "primaryKey": false,
581
+ "notNull": false
582
+ },
583
+ "state": {
584
+ "name": "state",
585
+ "type": "text",
586
+ "primaryKey": false,
587
+ "notNull": true,
588
+ "default": "'created'"
589
+ },
590
+ "attempts": {
591
+ "name": "attempts",
592
+ "type": "integer",
593
+ "primaryKey": false,
594
+ "notNull": true,
595
+ "default": 0
596
+ },
597
+ "log": {
598
+ "name": "log",
599
+ "type": "jsonb",
600
+ "primaryKey": false,
601
+ "notNull": true,
602
+ "default": "'[]'::jsonb"
603
+ },
604
+ "link": {
605
+ "name": "link",
606
+ "type": "text",
607
+ "primaryKey": false,
608
+ "notNull": false
609
+ },
610
+ "created_at": {
611
+ "name": "created_at",
612
+ "type": "text",
613
+ "primaryKey": false,
614
+ "notNull": true,
615
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
616
+ },
617
+ "started_at": {
618
+ "name": "started_at",
619
+ "type": "text",
620
+ "primaryKey": false,
621
+ "notNull": false
622
+ },
623
+ "ended_at": {
624
+ "name": "ended_at",
625
+ "type": "text",
626
+ "primaryKey": false,
627
+ "notNull": false
628
+ }
629
+ },
630
+ "indexes": {
631
+ "jobs_by_created": {
632
+ "name": "jobs_by_created",
633
+ "columns": [
634
+ {
635
+ "expression": "created_at",
636
+ "isExpression": false,
637
+ "asc": true,
638
+ "nulls": "last"
639
+ }
640
+ ],
641
+ "isUnique": false,
642
+ "concurrently": false,
643
+ "method": "btree",
644
+ "with": {}
645
+ },
646
+ "jobs_by_launch": {
647
+ "name": "jobs_by_launch",
648
+ "columns": [
649
+ {
650
+ "expression": "launch_id",
651
+ "isExpression": false,
652
+ "asc": true,
653
+ "nulls": "last"
654
+ }
655
+ ],
656
+ "isUnique": false,
657
+ "concurrently": false,
658
+ "method": "btree",
659
+ "with": {}
660
+ }
661
+ },
662
+ "foreignKeys": {
663
+ "jobs_launch_id_launches_id_fk": {
664
+ "name": "jobs_launch_id_launches_id_fk",
665
+ "tableFrom": "jobs",
666
+ "tableTo": "launches",
667
+ "columnsFrom": [
668
+ "launch_id"
669
+ ],
670
+ "columnsTo": [
671
+ "id"
672
+ ],
673
+ "onDelete": "set null",
674
+ "onUpdate": "no action"
675
+ }
676
+ },
677
+ "compositePrimaryKeys": {},
678
+ "uniqueConstraints": {},
679
+ "policies": {},
680
+ "checkConstraints": {},
681
+ "isRLSEnabled": false
682
+ },
683
+ "public.launches": {
684
+ "name": "launches",
685
+ "schema": "",
686
+ "columns": {
687
+ "id": {
688
+ "name": "id",
689
+ "type": "integer",
690
+ "primaryKey": true,
691
+ "notNull": true,
692
+ "identity": {
693
+ "type": "byDefault",
694
+ "name": "launches_id_seq",
695
+ "schema": "public",
696
+ "increment": "1",
697
+ "startWith": "1",
698
+ "minValue": "1",
699
+ "maxValue": "2147483647",
700
+ "cache": "1",
701
+ "cycle": false
702
+ }
703
+ },
704
+ "repo": {
705
+ "name": "repo",
706
+ "type": "text",
707
+ "primaryKey": false,
708
+ "notNull": true
709
+ },
710
+ "ref": {
711
+ "name": "ref",
712
+ "type": "text",
713
+ "primaryKey": false,
714
+ "notNull": true
715
+ },
716
+ "trigger": {
717
+ "name": "trigger",
718
+ "type": "text",
719
+ "primaryKey": false,
720
+ "notNull": true
721
+ },
722
+ "kind": {
723
+ "name": "kind",
724
+ "type": "text",
725
+ "primaryKey": false,
726
+ "notNull": true
727
+ },
728
+ "brand": {
729
+ "name": "brand",
730
+ "type": "text",
731
+ "primaryKey": false,
732
+ "notNull": true
733
+ },
734
+ "status": {
735
+ "name": "status",
736
+ "type": "text",
737
+ "primaryKey": false,
738
+ "notNull": true
739
+ },
740
+ "detail": {
741
+ "name": "detail",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": false
745
+ },
746
+ "created_at": {
747
+ "name": "created_at",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": true,
751
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
752
+ },
753
+ "updated_at": {
754
+ "name": "updated_at",
755
+ "type": "text",
756
+ "primaryKey": false,
757
+ "notNull": true,
758
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
759
+ }
760
+ },
761
+ "indexes": {},
762
+ "foreignKeys": {},
763
+ "compositePrimaryKeys": {},
764
+ "uniqueConstraints": {
765
+ "launches_repo_ref_unique": {
766
+ "name": "launches_repo_ref_unique",
767
+ "nullsNotDistinct": false,
768
+ "columns": [
769
+ "repo",
770
+ "ref"
771
+ ]
772
+ }
773
+ },
774
+ "policies": {},
775
+ "checkConstraints": {},
776
+ "isRLSEnabled": false
777
+ },
778
+ "public.metrics": {
779
+ "name": "metrics",
780
+ "schema": "",
781
+ "columns": {
782
+ "launch_id": {
783
+ "name": "launch_id",
784
+ "type": "integer",
785
+ "primaryKey": false,
786
+ "notNull": true
787
+ },
788
+ "post_id": {
789
+ "name": "post_id",
790
+ "type": "integer",
791
+ "primaryKey": false,
792
+ "notNull": false
793
+ },
794
+ "source": {
795
+ "name": "source",
796
+ "type": "text",
797
+ "primaryKey": false,
798
+ "notNull": true
799
+ },
800
+ "name": {
801
+ "name": "name",
802
+ "type": "text",
803
+ "primaryKey": false,
804
+ "notNull": true
805
+ },
806
+ "value": {
807
+ "name": "value",
808
+ "type": "double precision",
809
+ "primaryKey": false,
810
+ "notNull": true
811
+ },
812
+ "taken_at": {
813
+ "name": "taken_at",
814
+ "type": "text",
815
+ "primaryKey": false,
816
+ "notNull": true
817
+ }
818
+ },
819
+ "indexes": {
820
+ "metrics_by_launch": {
821
+ "name": "metrics_by_launch",
822
+ "columns": [
823
+ {
824
+ "expression": "launch_id",
825
+ "isExpression": false,
826
+ "asc": true,
827
+ "nulls": "last"
828
+ },
829
+ {
830
+ "expression": "source",
831
+ "isExpression": false,
832
+ "asc": true,
833
+ "nulls": "last"
834
+ },
835
+ {
836
+ "expression": "name",
837
+ "isExpression": false,
838
+ "asc": true,
839
+ "nulls": "last"
840
+ },
841
+ {
842
+ "expression": "taken_at",
843
+ "isExpression": false,
844
+ "asc": true,
845
+ "nulls": "last"
846
+ }
847
+ ],
848
+ "isUnique": false,
849
+ "concurrently": false,
850
+ "method": "btree",
851
+ "with": {}
852
+ },
853
+ "metrics_by_post": {
854
+ "name": "metrics_by_post",
855
+ "columns": [
856
+ {
857
+ "expression": "post_id",
858
+ "isExpression": false,
859
+ "asc": true,
860
+ "nulls": "last"
861
+ }
862
+ ],
863
+ "isUnique": false,
864
+ "concurrently": false,
865
+ "method": "btree",
866
+ "with": {}
867
+ }
868
+ },
869
+ "foreignKeys": {
870
+ "metrics_launch_id_launches_id_fk": {
871
+ "name": "metrics_launch_id_launches_id_fk",
872
+ "tableFrom": "metrics",
873
+ "tableTo": "launches",
874
+ "columnsFrom": [
875
+ "launch_id"
876
+ ],
877
+ "columnsTo": [
878
+ "id"
879
+ ],
880
+ "onDelete": "no action",
881
+ "onUpdate": "no action"
882
+ },
883
+ "metrics_post_id_posts_id_fk": {
884
+ "name": "metrics_post_id_posts_id_fk",
885
+ "tableFrom": "metrics",
886
+ "tableTo": "posts",
887
+ "columnsFrom": [
888
+ "post_id"
889
+ ],
890
+ "columnsTo": [
891
+ "id"
892
+ ],
893
+ "onDelete": "no action",
894
+ "onUpdate": "no action"
895
+ }
896
+ },
897
+ "compositePrimaryKeys": {},
898
+ "uniqueConstraints": {},
899
+ "policies": {},
900
+ "checkConstraints": {},
901
+ "isRLSEnabled": false
902
+ },
903
+ "public.posts": {
904
+ "name": "posts",
905
+ "schema": "",
906
+ "columns": {
907
+ "id": {
908
+ "name": "id",
909
+ "type": "integer",
910
+ "primaryKey": true,
911
+ "notNull": true,
912
+ "identity": {
913
+ "type": "byDefault",
914
+ "name": "posts_id_seq",
915
+ "schema": "public",
916
+ "increment": "1",
917
+ "startWith": "1",
918
+ "minValue": "1",
919
+ "maxValue": "2147483647",
920
+ "cache": "1",
921
+ "cycle": false
922
+ }
923
+ },
924
+ "launch_id": {
925
+ "name": "launch_id",
926
+ "type": "integer",
927
+ "primaryKey": false,
928
+ "notNull": true
929
+ },
930
+ "channel": {
931
+ "name": "channel",
932
+ "type": "text",
933
+ "primaryKey": false,
934
+ "notNull": true
935
+ },
936
+ "account_id": {
937
+ "name": "account_id",
938
+ "type": "integer",
939
+ "primaryKey": false,
940
+ "notNull": false
941
+ },
942
+ "kind": {
943
+ "name": "kind",
944
+ "type": "text",
945
+ "primaryKey": false,
946
+ "notNull": true
947
+ },
948
+ "external_id": {
949
+ "name": "external_id",
950
+ "type": "text",
951
+ "primaryKey": false,
952
+ "notNull": false
953
+ },
954
+ "url": {
955
+ "name": "url",
956
+ "type": "text",
957
+ "primaryKey": false,
958
+ "notNull": false
959
+ },
960
+ "status": {
961
+ "name": "status",
962
+ "type": "text",
963
+ "primaryKey": false,
964
+ "notNull": true,
965
+ "default": "'live'"
966
+ },
967
+ "content_hash": {
968
+ "name": "content_hash",
969
+ "type": "text",
970
+ "primaryKey": false,
971
+ "notNull": false
972
+ },
973
+ "scheduled_at": {
974
+ "name": "scheduled_at",
975
+ "type": "text",
976
+ "primaryKey": false,
977
+ "notNull": false
978
+ },
979
+ "published_at": {
980
+ "name": "published_at",
981
+ "type": "text",
982
+ "primaryKey": false,
983
+ "notNull": true,
984
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
985
+ },
986
+ "updated_at": {
987
+ "name": "updated_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
+ },
994
+ "indexes": {},
995
+ "foreignKeys": {
996
+ "posts_launch_id_launches_id_fk": {
997
+ "name": "posts_launch_id_launches_id_fk",
998
+ "tableFrom": "posts",
999
+ "tableTo": "launches",
1000
+ "columnsFrom": [
1001
+ "launch_id"
1002
+ ],
1003
+ "columnsTo": [
1004
+ "id"
1005
+ ],
1006
+ "onDelete": "no action",
1007
+ "onUpdate": "no action"
1008
+ },
1009
+ "posts_account_id_accounts_id_fk": {
1010
+ "name": "posts_account_id_accounts_id_fk",
1011
+ "tableFrom": "posts",
1012
+ "tableTo": "accounts",
1013
+ "columnsFrom": [
1014
+ "account_id"
1015
+ ],
1016
+ "columnsTo": [
1017
+ "id"
1018
+ ],
1019
+ "onDelete": "set null",
1020
+ "onUpdate": "no action"
1021
+ }
1022
+ },
1023
+ "compositePrimaryKeys": {},
1024
+ "uniqueConstraints": {
1025
+ "posts_piece_unique": {
1026
+ "name": "posts_piece_unique",
1027
+ "nullsNotDistinct": true,
1028
+ "columns": [
1029
+ "launch_id",
1030
+ "channel",
1031
+ "account_id",
1032
+ "kind"
1033
+ ]
1034
+ }
1035
+ },
1036
+ "policies": {},
1037
+ "checkConstraints": {},
1038
+ "isRLSEnabled": false
1039
+ },
1040
+ "public.settings": {
1041
+ "name": "settings",
1042
+ "schema": "",
1043
+ "columns": {
1044
+ "key": {
1045
+ "name": "key",
1046
+ "type": "text",
1047
+ "primaryKey": true,
1048
+ "notNull": true
1049
+ },
1050
+ "value": {
1051
+ "name": "value",
1052
+ "type": "jsonb",
1053
+ "primaryKey": false,
1054
+ "notNull": true
1055
+ },
1056
+ "updated_at": {
1057
+ "name": "updated_at",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": true,
1061
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1062
+ }
1063
+ },
1064
+ "indexes": {},
1065
+ "foreignKeys": {},
1066
+ "compositePrimaryKeys": {},
1067
+ "uniqueConstraints": {},
1068
+ "policies": {},
1069
+ "checkConstraints": {},
1070
+ "isRLSEnabled": false
1071
+ }
1072
+ },
1073
+ "enums": {},
1074
+ "schemas": {},
1075
+ "sequences": {},
1076
+ "roles": {},
1077
+ "policies": {},
1078
+ "views": {},
1079
+ "_meta": {
1080
+ "columns": {},
1081
+ "schemas": {},
1082
+ "tables": {}
1083
+ }
1084
+ }