@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,1036 @@
1
+ {
2
+ "id": "1579ecf5-d9c7-4c48-b041-d77a5cc94a54",
3
+ "prevId": "0c001f7f-d06a-4121-8953-86ac2564c785",
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
+ },
452
+ "foreignKeys": {
453
+ "comments_post_id_posts_id_fk": {
454
+ "name": "comments_post_id_posts_id_fk",
455
+ "tableFrom": "comments",
456
+ "tableTo": "posts",
457
+ "columnsFrom": [
458
+ "post_id"
459
+ ],
460
+ "columnsTo": [
461
+ "id"
462
+ ],
463
+ "onDelete": "no action",
464
+ "onUpdate": "no action"
465
+ }
466
+ },
467
+ "compositePrimaryKeys": {},
468
+ "uniqueConstraints": {
469
+ "comments_channel_external_unique": {
470
+ "name": "comments_channel_external_unique",
471
+ "nullsNotDistinct": false,
472
+ "columns": [
473
+ "channel",
474
+ "external_id"
475
+ ]
476
+ }
477
+ },
478
+ "policies": {},
479
+ "checkConstraints": {},
480
+ "isRLSEnabled": false
481
+ },
482
+ "public.cursors": {
483
+ "name": "cursors",
484
+ "schema": "",
485
+ "columns": {
486
+ "key": {
487
+ "name": "key",
488
+ "type": "text",
489
+ "primaryKey": true,
490
+ "notNull": true
491
+ },
492
+ "value": {
493
+ "name": "value",
494
+ "type": "text",
495
+ "primaryKey": false,
496
+ "notNull": true
497
+ }
498
+ },
499
+ "indexes": {},
500
+ "foreignKeys": {},
501
+ "compositePrimaryKeys": {},
502
+ "uniqueConstraints": {},
503
+ "policies": {},
504
+ "checkConstraints": {},
505
+ "isRLSEnabled": false
506
+ },
507
+ "public.jobs": {
508
+ "name": "jobs",
509
+ "schema": "",
510
+ "columns": {
511
+ "id": {
512
+ "name": "id",
513
+ "type": "text",
514
+ "primaryKey": true,
515
+ "notNull": true
516
+ },
517
+ "queue": {
518
+ "name": "queue",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": true
522
+ },
523
+ "title": {
524
+ "name": "title",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true
528
+ },
529
+ "launch_id": {
530
+ "name": "launch_id",
531
+ "type": "integer",
532
+ "primaryKey": false,
533
+ "notNull": false
534
+ },
535
+ "state": {
536
+ "name": "state",
537
+ "type": "text",
538
+ "primaryKey": false,
539
+ "notNull": true,
540
+ "default": "'created'"
541
+ },
542
+ "attempts": {
543
+ "name": "attempts",
544
+ "type": "integer",
545
+ "primaryKey": false,
546
+ "notNull": true,
547
+ "default": 0
548
+ },
549
+ "log": {
550
+ "name": "log",
551
+ "type": "jsonb",
552
+ "primaryKey": false,
553
+ "notNull": true,
554
+ "default": "'[]'::jsonb"
555
+ },
556
+ "link": {
557
+ "name": "link",
558
+ "type": "text",
559
+ "primaryKey": false,
560
+ "notNull": false
561
+ },
562
+ "created_at": {
563
+ "name": "created_at",
564
+ "type": "text",
565
+ "primaryKey": false,
566
+ "notNull": true,
567
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
568
+ },
569
+ "started_at": {
570
+ "name": "started_at",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": false
574
+ },
575
+ "ended_at": {
576
+ "name": "ended_at",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": false
580
+ }
581
+ },
582
+ "indexes": {
583
+ "jobs_by_created": {
584
+ "name": "jobs_by_created",
585
+ "columns": [
586
+ {
587
+ "expression": "created_at",
588
+ "isExpression": false,
589
+ "asc": true,
590
+ "nulls": "last"
591
+ }
592
+ ],
593
+ "isUnique": false,
594
+ "concurrently": false,
595
+ "method": "btree",
596
+ "with": {}
597
+ },
598
+ "jobs_by_launch": {
599
+ "name": "jobs_by_launch",
600
+ "columns": [
601
+ {
602
+ "expression": "launch_id",
603
+ "isExpression": false,
604
+ "asc": true,
605
+ "nulls": "last"
606
+ }
607
+ ],
608
+ "isUnique": false,
609
+ "concurrently": false,
610
+ "method": "btree",
611
+ "with": {}
612
+ }
613
+ },
614
+ "foreignKeys": {
615
+ "jobs_launch_id_launches_id_fk": {
616
+ "name": "jobs_launch_id_launches_id_fk",
617
+ "tableFrom": "jobs",
618
+ "tableTo": "launches",
619
+ "columnsFrom": [
620
+ "launch_id"
621
+ ],
622
+ "columnsTo": [
623
+ "id"
624
+ ],
625
+ "onDelete": "set null",
626
+ "onUpdate": "no action"
627
+ }
628
+ },
629
+ "compositePrimaryKeys": {},
630
+ "uniqueConstraints": {},
631
+ "policies": {},
632
+ "checkConstraints": {},
633
+ "isRLSEnabled": false
634
+ },
635
+ "public.launches": {
636
+ "name": "launches",
637
+ "schema": "",
638
+ "columns": {
639
+ "id": {
640
+ "name": "id",
641
+ "type": "integer",
642
+ "primaryKey": true,
643
+ "notNull": true,
644
+ "identity": {
645
+ "type": "byDefault",
646
+ "name": "launches_id_seq",
647
+ "schema": "public",
648
+ "increment": "1",
649
+ "startWith": "1",
650
+ "minValue": "1",
651
+ "maxValue": "2147483647",
652
+ "cache": "1",
653
+ "cycle": false
654
+ }
655
+ },
656
+ "repo": {
657
+ "name": "repo",
658
+ "type": "text",
659
+ "primaryKey": false,
660
+ "notNull": true
661
+ },
662
+ "ref": {
663
+ "name": "ref",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": true
667
+ },
668
+ "trigger": {
669
+ "name": "trigger",
670
+ "type": "text",
671
+ "primaryKey": false,
672
+ "notNull": true
673
+ },
674
+ "kind": {
675
+ "name": "kind",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": true
679
+ },
680
+ "brand": {
681
+ "name": "brand",
682
+ "type": "text",
683
+ "primaryKey": false,
684
+ "notNull": true
685
+ },
686
+ "status": {
687
+ "name": "status",
688
+ "type": "text",
689
+ "primaryKey": false,
690
+ "notNull": true
691
+ },
692
+ "detail": {
693
+ "name": "detail",
694
+ "type": "text",
695
+ "primaryKey": false,
696
+ "notNull": false
697
+ },
698
+ "created_at": {
699
+ "name": "created_at",
700
+ "type": "text",
701
+ "primaryKey": false,
702
+ "notNull": true,
703
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
704
+ },
705
+ "updated_at": {
706
+ "name": "updated_at",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": true,
710
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
711
+ }
712
+ },
713
+ "indexes": {},
714
+ "foreignKeys": {},
715
+ "compositePrimaryKeys": {},
716
+ "uniqueConstraints": {
717
+ "launches_repo_ref_unique": {
718
+ "name": "launches_repo_ref_unique",
719
+ "nullsNotDistinct": false,
720
+ "columns": [
721
+ "repo",
722
+ "ref"
723
+ ]
724
+ }
725
+ },
726
+ "policies": {},
727
+ "checkConstraints": {},
728
+ "isRLSEnabled": false
729
+ },
730
+ "public.metrics": {
731
+ "name": "metrics",
732
+ "schema": "",
733
+ "columns": {
734
+ "launch_id": {
735
+ "name": "launch_id",
736
+ "type": "integer",
737
+ "primaryKey": false,
738
+ "notNull": true
739
+ },
740
+ "post_id": {
741
+ "name": "post_id",
742
+ "type": "integer",
743
+ "primaryKey": false,
744
+ "notNull": false
745
+ },
746
+ "source": {
747
+ "name": "source",
748
+ "type": "text",
749
+ "primaryKey": false,
750
+ "notNull": true
751
+ },
752
+ "name": {
753
+ "name": "name",
754
+ "type": "text",
755
+ "primaryKey": false,
756
+ "notNull": true
757
+ },
758
+ "value": {
759
+ "name": "value",
760
+ "type": "double precision",
761
+ "primaryKey": false,
762
+ "notNull": true
763
+ },
764
+ "taken_at": {
765
+ "name": "taken_at",
766
+ "type": "text",
767
+ "primaryKey": false,
768
+ "notNull": true
769
+ }
770
+ },
771
+ "indexes": {
772
+ "metrics_by_launch": {
773
+ "name": "metrics_by_launch",
774
+ "columns": [
775
+ {
776
+ "expression": "launch_id",
777
+ "isExpression": false,
778
+ "asc": true,
779
+ "nulls": "last"
780
+ },
781
+ {
782
+ "expression": "source",
783
+ "isExpression": false,
784
+ "asc": true,
785
+ "nulls": "last"
786
+ },
787
+ {
788
+ "expression": "name",
789
+ "isExpression": false,
790
+ "asc": true,
791
+ "nulls": "last"
792
+ },
793
+ {
794
+ "expression": "taken_at",
795
+ "isExpression": false,
796
+ "asc": true,
797
+ "nulls": "last"
798
+ }
799
+ ],
800
+ "isUnique": false,
801
+ "concurrently": false,
802
+ "method": "btree",
803
+ "with": {}
804
+ },
805
+ "metrics_by_post": {
806
+ "name": "metrics_by_post",
807
+ "columns": [
808
+ {
809
+ "expression": "post_id",
810
+ "isExpression": false,
811
+ "asc": true,
812
+ "nulls": "last"
813
+ }
814
+ ],
815
+ "isUnique": false,
816
+ "concurrently": false,
817
+ "method": "btree",
818
+ "with": {}
819
+ }
820
+ },
821
+ "foreignKeys": {
822
+ "metrics_launch_id_launches_id_fk": {
823
+ "name": "metrics_launch_id_launches_id_fk",
824
+ "tableFrom": "metrics",
825
+ "tableTo": "launches",
826
+ "columnsFrom": [
827
+ "launch_id"
828
+ ],
829
+ "columnsTo": [
830
+ "id"
831
+ ],
832
+ "onDelete": "no action",
833
+ "onUpdate": "no action"
834
+ },
835
+ "metrics_post_id_posts_id_fk": {
836
+ "name": "metrics_post_id_posts_id_fk",
837
+ "tableFrom": "metrics",
838
+ "tableTo": "posts",
839
+ "columnsFrom": [
840
+ "post_id"
841
+ ],
842
+ "columnsTo": [
843
+ "id"
844
+ ],
845
+ "onDelete": "no action",
846
+ "onUpdate": "no action"
847
+ }
848
+ },
849
+ "compositePrimaryKeys": {},
850
+ "uniqueConstraints": {},
851
+ "policies": {},
852
+ "checkConstraints": {},
853
+ "isRLSEnabled": false
854
+ },
855
+ "public.posts": {
856
+ "name": "posts",
857
+ "schema": "",
858
+ "columns": {
859
+ "id": {
860
+ "name": "id",
861
+ "type": "integer",
862
+ "primaryKey": true,
863
+ "notNull": true,
864
+ "identity": {
865
+ "type": "byDefault",
866
+ "name": "posts_id_seq",
867
+ "schema": "public",
868
+ "increment": "1",
869
+ "startWith": "1",
870
+ "minValue": "1",
871
+ "maxValue": "2147483647",
872
+ "cache": "1",
873
+ "cycle": false
874
+ }
875
+ },
876
+ "launch_id": {
877
+ "name": "launch_id",
878
+ "type": "integer",
879
+ "primaryKey": false,
880
+ "notNull": true
881
+ },
882
+ "channel": {
883
+ "name": "channel",
884
+ "type": "text",
885
+ "primaryKey": false,
886
+ "notNull": true
887
+ },
888
+ "account_id": {
889
+ "name": "account_id",
890
+ "type": "integer",
891
+ "primaryKey": false,
892
+ "notNull": false
893
+ },
894
+ "kind": {
895
+ "name": "kind",
896
+ "type": "text",
897
+ "primaryKey": false,
898
+ "notNull": true
899
+ },
900
+ "external_id": {
901
+ "name": "external_id",
902
+ "type": "text",
903
+ "primaryKey": false,
904
+ "notNull": false
905
+ },
906
+ "url": {
907
+ "name": "url",
908
+ "type": "text",
909
+ "primaryKey": false,
910
+ "notNull": false
911
+ },
912
+ "status": {
913
+ "name": "status",
914
+ "type": "text",
915
+ "primaryKey": false,
916
+ "notNull": true,
917
+ "default": "'live'"
918
+ },
919
+ "content_hash": {
920
+ "name": "content_hash",
921
+ "type": "text",
922
+ "primaryKey": false,
923
+ "notNull": false
924
+ },
925
+ "scheduled_at": {
926
+ "name": "scheduled_at",
927
+ "type": "text",
928
+ "primaryKey": false,
929
+ "notNull": false
930
+ },
931
+ "published_at": {
932
+ "name": "published_at",
933
+ "type": "text",
934
+ "primaryKey": false,
935
+ "notNull": true,
936
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
937
+ },
938
+ "updated_at": {
939
+ "name": "updated_at",
940
+ "type": "text",
941
+ "primaryKey": false,
942
+ "notNull": true,
943
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
944
+ }
945
+ },
946
+ "indexes": {},
947
+ "foreignKeys": {
948
+ "posts_launch_id_launches_id_fk": {
949
+ "name": "posts_launch_id_launches_id_fk",
950
+ "tableFrom": "posts",
951
+ "tableTo": "launches",
952
+ "columnsFrom": [
953
+ "launch_id"
954
+ ],
955
+ "columnsTo": [
956
+ "id"
957
+ ],
958
+ "onDelete": "no action",
959
+ "onUpdate": "no action"
960
+ },
961
+ "posts_account_id_accounts_id_fk": {
962
+ "name": "posts_account_id_accounts_id_fk",
963
+ "tableFrom": "posts",
964
+ "tableTo": "accounts",
965
+ "columnsFrom": [
966
+ "account_id"
967
+ ],
968
+ "columnsTo": [
969
+ "id"
970
+ ],
971
+ "onDelete": "set null",
972
+ "onUpdate": "no action"
973
+ }
974
+ },
975
+ "compositePrimaryKeys": {},
976
+ "uniqueConstraints": {
977
+ "posts_piece_unique": {
978
+ "name": "posts_piece_unique",
979
+ "nullsNotDistinct": true,
980
+ "columns": [
981
+ "launch_id",
982
+ "channel",
983
+ "account_id",
984
+ "kind"
985
+ ]
986
+ }
987
+ },
988
+ "policies": {},
989
+ "checkConstraints": {},
990
+ "isRLSEnabled": false
991
+ },
992
+ "public.settings": {
993
+ "name": "settings",
994
+ "schema": "",
995
+ "columns": {
996
+ "key": {
997
+ "name": "key",
998
+ "type": "text",
999
+ "primaryKey": true,
1000
+ "notNull": true
1001
+ },
1002
+ "value": {
1003
+ "name": "value",
1004
+ "type": "jsonb",
1005
+ "primaryKey": false,
1006
+ "notNull": true
1007
+ },
1008
+ "updated_at": {
1009
+ "name": "updated_at",
1010
+ "type": "text",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1014
+ }
1015
+ },
1016
+ "indexes": {},
1017
+ "foreignKeys": {},
1018
+ "compositePrimaryKeys": {},
1019
+ "uniqueConstraints": {},
1020
+ "policies": {},
1021
+ "checkConstraints": {},
1022
+ "isRLSEnabled": false
1023
+ }
1024
+ },
1025
+ "enums": {},
1026
+ "schemas": {},
1027
+ "sequences": {},
1028
+ "roles": {},
1029
+ "policies": {},
1030
+ "views": {},
1031
+ "_meta": {
1032
+ "columns": {},
1033
+ "schemas": {},
1034
+ "tables": {}
1035
+ }
1036
+ }