@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,1896 @@
1
+ {
2
+ "id": "2f5940cb-06c8-4bf0-9421-1161793d5de6",
3
+ "prevId": "d91d3b84-2d12-4cae-9718-d878ae930041",
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.checks": {
503
+ "name": "checks",
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": "checks_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
+ "taken_at": {
524
+ "name": "taken_at",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": true,
528
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
529
+ },
530
+ "name": {
531
+ "name": "name",
532
+ "type": "text",
533
+ "primaryKey": false,
534
+ "notNull": true
535
+ },
536
+ "ok": {
537
+ "name": "ok",
538
+ "type": "boolean",
539
+ "primaryKey": false,
540
+ "notNull": true
541
+ },
542
+ "value": {
543
+ "name": "value",
544
+ "type": "double precision",
545
+ "primaryKey": false,
546
+ "notNull": true
547
+ },
548
+ "detail": {
549
+ "name": "detail",
550
+ "type": "jsonb",
551
+ "primaryKey": false,
552
+ "notNull": true,
553
+ "default": "'{}'::jsonb"
554
+ }
555
+ },
556
+ "indexes": {
557
+ "checks_by_name": {
558
+ "name": "checks_by_name",
559
+ "columns": [
560
+ {
561
+ "expression": "name",
562
+ "isExpression": false,
563
+ "asc": true,
564
+ "nulls": "last"
565
+ },
566
+ {
567
+ "expression": "taken_at",
568
+ "isExpression": false,
569
+ "asc": true,
570
+ "nulls": "last"
571
+ }
572
+ ],
573
+ "isUnique": false,
574
+ "concurrently": false,
575
+ "method": "btree",
576
+ "with": {}
577
+ }
578
+ },
579
+ "foreignKeys": {},
580
+ "compositePrimaryKeys": {},
581
+ "uniqueConstraints": {},
582
+ "policies": {},
583
+ "checkConstraints": {},
584
+ "isRLSEnabled": false
585
+ },
586
+ "public.comments": {
587
+ "name": "comments",
588
+ "schema": "",
589
+ "columns": {
590
+ "id": {
591
+ "name": "id",
592
+ "type": "integer",
593
+ "primaryKey": true,
594
+ "notNull": true,
595
+ "identity": {
596
+ "type": "byDefault",
597
+ "name": "comments_id_seq",
598
+ "schema": "public",
599
+ "increment": "1",
600
+ "startWith": "1",
601
+ "minValue": "1",
602
+ "maxValue": "2147483647",
603
+ "cache": "1",
604
+ "cycle": false
605
+ }
606
+ },
607
+ "post_id": {
608
+ "name": "post_id",
609
+ "type": "integer",
610
+ "primaryKey": false,
611
+ "notNull": true
612
+ },
613
+ "channel": {
614
+ "name": "channel",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": true
618
+ },
619
+ "external_id": {
620
+ "name": "external_id",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true
624
+ },
625
+ "author_handle": {
626
+ "name": "author_handle",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": true
630
+ },
631
+ "author_name": {
632
+ "name": "author_name",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": false
636
+ },
637
+ "author_avatar_url": {
638
+ "name": "author_avatar_url",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": false
642
+ },
643
+ "text": {
644
+ "name": "text",
645
+ "type": "text",
646
+ "primaryKey": false,
647
+ "notNull": true
648
+ },
649
+ "url": {
650
+ "name": "url",
651
+ "type": "text",
652
+ "primaryKey": false,
653
+ "notNull": false
654
+ },
655
+ "created_at": {
656
+ "name": "created_at",
657
+ "type": "text",
658
+ "primaryKey": false,
659
+ "notNull": true
660
+ },
661
+ "in_reply_to": {
662
+ "name": "in_reply_to",
663
+ "type": "text",
664
+ "primaryKey": false,
665
+ "notNull": false
666
+ },
667
+ "own": {
668
+ "name": "own",
669
+ "type": "boolean",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "default": false
673
+ },
674
+ "fetched_at": {
675
+ "name": "fetched_at",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": true,
679
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
680
+ },
681
+ "status": {
682
+ "name": "status",
683
+ "type": "text",
684
+ "primaryKey": false,
685
+ "notNull": true,
686
+ "default": "'new'"
687
+ },
688
+ "classification": {
689
+ "name": "classification",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": false
693
+ },
694
+ "draft": {
695
+ "name": "draft",
696
+ "type": "text",
697
+ "primaryKey": false,
698
+ "notNull": false
699
+ },
700
+ "note": {
701
+ "name": "note",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": false
705
+ },
706
+ "problem": {
707
+ "name": "problem",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": false
711
+ },
712
+ "sent_external_id": {
713
+ "name": "sent_external_id",
714
+ "type": "text",
715
+ "primaryKey": false,
716
+ "notNull": false
717
+ },
718
+ "sent_url": {
719
+ "name": "sent_url",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": false
723
+ },
724
+ "sent_at": {
725
+ "name": "sent_at",
726
+ "type": "text",
727
+ "primaryKey": false,
728
+ "notNull": false
729
+ },
730
+ "updated_at": {
731
+ "name": "updated_at",
732
+ "type": "text",
733
+ "primaryKey": false,
734
+ "notNull": true,
735
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
736
+ }
737
+ },
738
+ "indexes": {
739
+ "comments_by_post": {
740
+ "name": "comments_by_post",
741
+ "columns": [
742
+ {
743
+ "expression": "post_id",
744
+ "isExpression": false,
745
+ "asc": true,
746
+ "nulls": "last"
747
+ }
748
+ ],
749
+ "isUnique": false,
750
+ "concurrently": false,
751
+ "method": "btree",
752
+ "with": {}
753
+ },
754
+ "comments_by_status": {
755
+ "name": "comments_by_status",
756
+ "columns": [
757
+ {
758
+ "expression": "status",
759
+ "isExpression": false,
760
+ "asc": true,
761
+ "nulls": "last"
762
+ },
763
+ {
764
+ "expression": "created_at",
765
+ "isExpression": false,
766
+ "asc": true,
767
+ "nulls": "last"
768
+ }
769
+ ],
770
+ "isUnique": false,
771
+ "concurrently": false,
772
+ "method": "btree",
773
+ "with": {}
774
+ },
775
+ "comments_by_channel": {
776
+ "name": "comments_by_channel",
777
+ "columns": [
778
+ {
779
+ "expression": "channel",
780
+ "isExpression": false,
781
+ "asc": true,
782
+ "nulls": "last"
783
+ },
784
+ {
785
+ "expression": "created_at",
786
+ "isExpression": false,
787
+ "asc": false,
788
+ "nulls": "last"
789
+ },
790
+ {
791
+ "expression": "id",
792
+ "isExpression": false,
793
+ "asc": false,
794
+ "nulls": "last"
795
+ }
796
+ ],
797
+ "isUnique": false,
798
+ "concurrently": false,
799
+ "method": "btree",
800
+ "with": {}
801
+ },
802
+ "comments_by_newest": {
803
+ "name": "comments_by_newest",
804
+ "columns": [
805
+ {
806
+ "expression": "created_at",
807
+ "isExpression": false,
808
+ "asc": false,
809
+ "nulls": "last"
810
+ },
811
+ {
812
+ "expression": "id",
813
+ "isExpression": false,
814
+ "asc": false,
815
+ "nulls": "last"
816
+ }
817
+ ],
818
+ "isUnique": false,
819
+ "concurrently": false,
820
+ "method": "btree",
821
+ "with": {}
822
+ },
823
+ "comments_text_trgm": {
824
+ "name": "comments_text_trgm",
825
+ "columns": [
826
+ {
827
+ "expression": "text",
828
+ "isExpression": false,
829
+ "asc": true,
830
+ "nulls": "last",
831
+ "opclass": "gin_trgm_ops"
832
+ }
833
+ ],
834
+ "isUnique": false,
835
+ "concurrently": false,
836
+ "method": "gin",
837
+ "with": {}
838
+ },
839
+ "comments_author_handle_trgm": {
840
+ "name": "comments_author_handle_trgm",
841
+ "columns": [
842
+ {
843
+ "expression": "author_handle",
844
+ "isExpression": false,
845
+ "asc": true,
846
+ "nulls": "last",
847
+ "opclass": "gin_trgm_ops"
848
+ }
849
+ ],
850
+ "isUnique": false,
851
+ "concurrently": false,
852
+ "method": "gin",
853
+ "with": {}
854
+ },
855
+ "comments_author_name_trgm": {
856
+ "name": "comments_author_name_trgm",
857
+ "columns": [
858
+ {
859
+ "expression": "author_name",
860
+ "isExpression": false,
861
+ "asc": true,
862
+ "nulls": "last",
863
+ "opclass": "gin_trgm_ops"
864
+ }
865
+ ],
866
+ "isUnique": false,
867
+ "concurrently": false,
868
+ "method": "gin",
869
+ "with": {}
870
+ }
871
+ },
872
+ "foreignKeys": {
873
+ "comments_post_id_posts_id_fk": {
874
+ "name": "comments_post_id_posts_id_fk",
875
+ "tableFrom": "comments",
876
+ "tableTo": "posts",
877
+ "columnsFrom": [
878
+ "post_id"
879
+ ],
880
+ "columnsTo": [
881
+ "id"
882
+ ],
883
+ "onDelete": "no action",
884
+ "onUpdate": "no action"
885
+ }
886
+ },
887
+ "compositePrimaryKeys": {},
888
+ "uniqueConstraints": {
889
+ "comments_channel_external_unique": {
890
+ "name": "comments_channel_external_unique",
891
+ "nullsNotDistinct": false,
892
+ "columns": [
893
+ "channel",
894
+ "external_id"
895
+ ]
896
+ }
897
+ },
898
+ "policies": {},
899
+ "checkConstraints": {},
900
+ "isRLSEnabled": false
901
+ },
902
+ "public.cursors": {
903
+ "name": "cursors",
904
+ "schema": "",
905
+ "columns": {
906
+ "key": {
907
+ "name": "key",
908
+ "type": "text",
909
+ "primaryKey": true,
910
+ "notNull": true
911
+ },
912
+ "value": {
913
+ "name": "value",
914
+ "type": "text",
915
+ "primaryKey": false,
916
+ "notNull": true
917
+ }
918
+ },
919
+ "indexes": {},
920
+ "foreignKeys": {},
921
+ "compositePrimaryKeys": {},
922
+ "uniqueConstraints": {},
923
+ "policies": {},
924
+ "checkConstraints": {},
925
+ "isRLSEnabled": false
926
+ },
927
+ "public.jobs": {
928
+ "name": "jobs",
929
+ "schema": "",
930
+ "columns": {
931
+ "id": {
932
+ "name": "id",
933
+ "type": "text",
934
+ "primaryKey": true,
935
+ "notNull": true
936
+ },
937
+ "queue": {
938
+ "name": "queue",
939
+ "type": "text",
940
+ "primaryKey": false,
941
+ "notNull": true
942
+ },
943
+ "title": {
944
+ "name": "title",
945
+ "type": "text",
946
+ "primaryKey": false,
947
+ "notNull": true
948
+ },
949
+ "launch_id": {
950
+ "name": "launch_id",
951
+ "type": "integer",
952
+ "primaryKey": false,
953
+ "notNull": false
954
+ },
955
+ "state": {
956
+ "name": "state",
957
+ "type": "text",
958
+ "primaryKey": false,
959
+ "notNull": true,
960
+ "default": "'created'"
961
+ },
962
+ "attempts": {
963
+ "name": "attempts",
964
+ "type": "integer",
965
+ "primaryKey": false,
966
+ "notNull": true,
967
+ "default": 0
968
+ },
969
+ "log": {
970
+ "name": "log",
971
+ "type": "jsonb",
972
+ "primaryKey": false,
973
+ "notNull": true,
974
+ "default": "'[]'::jsonb"
975
+ },
976
+ "link": {
977
+ "name": "link",
978
+ "type": "text",
979
+ "primaryKey": false,
980
+ "notNull": false
981
+ },
982
+ "created_at": {
983
+ "name": "created_at",
984
+ "type": "text",
985
+ "primaryKey": false,
986
+ "notNull": true,
987
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
988
+ },
989
+ "started_at": {
990
+ "name": "started_at",
991
+ "type": "text",
992
+ "primaryKey": false,
993
+ "notNull": false
994
+ },
995
+ "ended_at": {
996
+ "name": "ended_at",
997
+ "type": "text",
998
+ "primaryKey": false,
999
+ "notNull": false
1000
+ }
1001
+ },
1002
+ "indexes": {
1003
+ "jobs_by_created": {
1004
+ "name": "jobs_by_created",
1005
+ "columns": [
1006
+ {
1007
+ "expression": "created_at",
1008
+ "isExpression": false,
1009
+ "asc": true,
1010
+ "nulls": "last"
1011
+ }
1012
+ ],
1013
+ "isUnique": false,
1014
+ "concurrently": false,
1015
+ "method": "btree",
1016
+ "with": {}
1017
+ },
1018
+ "jobs_by_launch": {
1019
+ "name": "jobs_by_launch",
1020
+ "columns": [
1021
+ {
1022
+ "expression": "launch_id",
1023
+ "isExpression": false,
1024
+ "asc": true,
1025
+ "nulls": "last"
1026
+ }
1027
+ ],
1028
+ "isUnique": false,
1029
+ "concurrently": false,
1030
+ "method": "btree",
1031
+ "with": {}
1032
+ }
1033
+ },
1034
+ "foreignKeys": {
1035
+ "jobs_launch_id_launches_id_fk": {
1036
+ "name": "jobs_launch_id_launches_id_fk",
1037
+ "tableFrom": "jobs",
1038
+ "tableTo": "launches",
1039
+ "columnsFrom": [
1040
+ "launch_id"
1041
+ ],
1042
+ "columnsTo": [
1043
+ "id"
1044
+ ],
1045
+ "onDelete": "set null",
1046
+ "onUpdate": "no action"
1047
+ }
1048
+ },
1049
+ "compositePrimaryKeys": {},
1050
+ "uniqueConstraints": {},
1051
+ "policies": {},
1052
+ "checkConstraints": {},
1053
+ "isRLSEnabled": false
1054
+ },
1055
+ "public.launches": {
1056
+ "name": "launches",
1057
+ "schema": "",
1058
+ "columns": {
1059
+ "id": {
1060
+ "name": "id",
1061
+ "type": "integer",
1062
+ "primaryKey": true,
1063
+ "notNull": true,
1064
+ "identity": {
1065
+ "type": "byDefault",
1066
+ "name": "launches_id_seq",
1067
+ "schema": "public",
1068
+ "increment": "1",
1069
+ "startWith": "1",
1070
+ "minValue": "1",
1071
+ "maxValue": "2147483647",
1072
+ "cache": "1",
1073
+ "cycle": false
1074
+ }
1075
+ },
1076
+ "repo": {
1077
+ "name": "repo",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": true
1081
+ },
1082
+ "ref": {
1083
+ "name": "ref",
1084
+ "type": "text",
1085
+ "primaryKey": false,
1086
+ "notNull": true
1087
+ },
1088
+ "trigger": {
1089
+ "name": "trigger",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": true
1093
+ },
1094
+ "kind": {
1095
+ "name": "kind",
1096
+ "type": "text",
1097
+ "primaryKey": false,
1098
+ "notNull": true
1099
+ },
1100
+ "brand": {
1101
+ "name": "brand",
1102
+ "type": "text",
1103
+ "primaryKey": false,
1104
+ "notNull": true
1105
+ },
1106
+ "status": {
1107
+ "name": "status",
1108
+ "type": "text",
1109
+ "primaryKey": false,
1110
+ "notNull": true
1111
+ },
1112
+ "detail": {
1113
+ "name": "detail",
1114
+ "type": "text",
1115
+ "primaryKey": false,
1116
+ "notNull": false
1117
+ },
1118
+ "created_at": {
1119
+ "name": "created_at",
1120
+ "type": "text",
1121
+ "primaryKey": false,
1122
+ "notNull": true,
1123
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1124
+ },
1125
+ "updated_at": {
1126
+ "name": "updated_at",
1127
+ "type": "text",
1128
+ "primaryKey": false,
1129
+ "notNull": true,
1130
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1131
+ }
1132
+ },
1133
+ "indexes": {
1134
+ "launches_by_newest": {
1135
+ "name": "launches_by_newest",
1136
+ "columns": [
1137
+ {
1138
+ "expression": "created_at",
1139
+ "isExpression": false,
1140
+ "asc": false,
1141
+ "nulls": "last"
1142
+ },
1143
+ {
1144
+ "expression": "id",
1145
+ "isExpression": false,
1146
+ "asc": false,
1147
+ "nulls": "last"
1148
+ }
1149
+ ],
1150
+ "isUnique": false,
1151
+ "concurrently": false,
1152
+ "method": "btree",
1153
+ "with": {}
1154
+ },
1155
+ "launches_by_status": {
1156
+ "name": "launches_by_status",
1157
+ "columns": [
1158
+ {
1159
+ "expression": "status",
1160
+ "isExpression": false,
1161
+ "asc": true,
1162
+ "nulls": "last"
1163
+ },
1164
+ {
1165
+ "expression": "created_at",
1166
+ "isExpression": false,
1167
+ "asc": false,
1168
+ "nulls": "last"
1169
+ },
1170
+ {
1171
+ "expression": "id",
1172
+ "isExpression": false,
1173
+ "asc": false,
1174
+ "nulls": "last"
1175
+ }
1176
+ ],
1177
+ "isUnique": false,
1178
+ "concurrently": false,
1179
+ "method": "btree",
1180
+ "with": {}
1181
+ },
1182
+ "launches_by_repo": {
1183
+ "name": "launches_by_repo",
1184
+ "columns": [
1185
+ {
1186
+ "expression": "repo",
1187
+ "isExpression": false,
1188
+ "asc": true,
1189
+ "nulls": "last"
1190
+ },
1191
+ {
1192
+ "expression": "created_at",
1193
+ "isExpression": false,
1194
+ "asc": false,
1195
+ "nulls": "last"
1196
+ },
1197
+ {
1198
+ "expression": "id",
1199
+ "isExpression": false,
1200
+ "asc": false,
1201
+ "nulls": "last"
1202
+ }
1203
+ ],
1204
+ "isUnique": false,
1205
+ "concurrently": false,
1206
+ "method": "btree",
1207
+ "with": {}
1208
+ }
1209
+ },
1210
+ "foreignKeys": {},
1211
+ "compositePrimaryKeys": {},
1212
+ "uniqueConstraints": {
1213
+ "launches_repo_ref_unique": {
1214
+ "name": "launches_repo_ref_unique",
1215
+ "nullsNotDistinct": false,
1216
+ "columns": [
1217
+ "repo",
1218
+ "ref"
1219
+ ]
1220
+ }
1221
+ },
1222
+ "policies": {},
1223
+ "checkConstraints": {},
1224
+ "isRLSEnabled": false
1225
+ },
1226
+ "public.metrics": {
1227
+ "name": "metrics",
1228
+ "schema": "",
1229
+ "columns": {
1230
+ "launch_id": {
1231
+ "name": "launch_id",
1232
+ "type": "integer",
1233
+ "primaryKey": false,
1234
+ "notNull": true
1235
+ },
1236
+ "post_id": {
1237
+ "name": "post_id",
1238
+ "type": "integer",
1239
+ "primaryKey": false,
1240
+ "notNull": false
1241
+ },
1242
+ "source": {
1243
+ "name": "source",
1244
+ "type": "text",
1245
+ "primaryKey": false,
1246
+ "notNull": true
1247
+ },
1248
+ "name": {
1249
+ "name": "name",
1250
+ "type": "text",
1251
+ "primaryKey": false,
1252
+ "notNull": true
1253
+ },
1254
+ "value": {
1255
+ "name": "value",
1256
+ "type": "double precision",
1257
+ "primaryKey": false,
1258
+ "notNull": true
1259
+ },
1260
+ "taken_at": {
1261
+ "name": "taken_at",
1262
+ "type": "text",
1263
+ "primaryKey": false,
1264
+ "notNull": true
1265
+ }
1266
+ },
1267
+ "indexes": {
1268
+ "metrics_by_launch": {
1269
+ "name": "metrics_by_launch",
1270
+ "columns": [
1271
+ {
1272
+ "expression": "launch_id",
1273
+ "isExpression": false,
1274
+ "asc": true,
1275
+ "nulls": "last"
1276
+ },
1277
+ {
1278
+ "expression": "source",
1279
+ "isExpression": false,
1280
+ "asc": true,
1281
+ "nulls": "last"
1282
+ },
1283
+ {
1284
+ "expression": "name",
1285
+ "isExpression": false,
1286
+ "asc": true,
1287
+ "nulls": "last"
1288
+ },
1289
+ {
1290
+ "expression": "taken_at",
1291
+ "isExpression": false,
1292
+ "asc": true,
1293
+ "nulls": "last"
1294
+ }
1295
+ ],
1296
+ "isUnique": false,
1297
+ "concurrently": false,
1298
+ "method": "btree",
1299
+ "with": {}
1300
+ },
1301
+ "metrics_by_post": {
1302
+ "name": "metrics_by_post",
1303
+ "columns": [
1304
+ {
1305
+ "expression": "post_id",
1306
+ "isExpression": false,
1307
+ "asc": true,
1308
+ "nulls": "last"
1309
+ }
1310
+ ],
1311
+ "isUnique": false,
1312
+ "concurrently": false,
1313
+ "method": "btree",
1314
+ "with": {}
1315
+ }
1316
+ },
1317
+ "foreignKeys": {
1318
+ "metrics_launch_id_launches_id_fk": {
1319
+ "name": "metrics_launch_id_launches_id_fk",
1320
+ "tableFrom": "metrics",
1321
+ "tableTo": "launches",
1322
+ "columnsFrom": [
1323
+ "launch_id"
1324
+ ],
1325
+ "columnsTo": [
1326
+ "id"
1327
+ ],
1328
+ "onDelete": "no action",
1329
+ "onUpdate": "no action"
1330
+ },
1331
+ "metrics_post_id_posts_id_fk": {
1332
+ "name": "metrics_post_id_posts_id_fk",
1333
+ "tableFrom": "metrics",
1334
+ "tableTo": "posts",
1335
+ "columnsFrom": [
1336
+ "post_id"
1337
+ ],
1338
+ "columnsTo": [
1339
+ "id"
1340
+ ],
1341
+ "onDelete": "no action",
1342
+ "onUpdate": "no action"
1343
+ }
1344
+ },
1345
+ "compositePrimaryKeys": {},
1346
+ "uniqueConstraints": {},
1347
+ "policies": {},
1348
+ "checkConstraints": {},
1349
+ "isRLSEnabled": false
1350
+ },
1351
+ "public.posts": {
1352
+ "name": "posts",
1353
+ "schema": "",
1354
+ "columns": {
1355
+ "id": {
1356
+ "name": "id",
1357
+ "type": "integer",
1358
+ "primaryKey": true,
1359
+ "notNull": true,
1360
+ "identity": {
1361
+ "type": "byDefault",
1362
+ "name": "posts_id_seq",
1363
+ "schema": "public",
1364
+ "increment": "1",
1365
+ "startWith": "1",
1366
+ "minValue": "1",
1367
+ "maxValue": "2147483647",
1368
+ "cache": "1",
1369
+ "cycle": false
1370
+ }
1371
+ },
1372
+ "launch_id": {
1373
+ "name": "launch_id",
1374
+ "type": "integer",
1375
+ "primaryKey": false,
1376
+ "notNull": true
1377
+ },
1378
+ "channel": {
1379
+ "name": "channel",
1380
+ "type": "text",
1381
+ "primaryKey": false,
1382
+ "notNull": true
1383
+ },
1384
+ "account_id": {
1385
+ "name": "account_id",
1386
+ "type": "integer",
1387
+ "primaryKey": false,
1388
+ "notNull": false
1389
+ },
1390
+ "kind": {
1391
+ "name": "kind",
1392
+ "type": "text",
1393
+ "primaryKey": false,
1394
+ "notNull": true
1395
+ },
1396
+ "external_id": {
1397
+ "name": "external_id",
1398
+ "type": "text",
1399
+ "primaryKey": false,
1400
+ "notNull": false
1401
+ },
1402
+ "url": {
1403
+ "name": "url",
1404
+ "type": "text",
1405
+ "primaryKey": false,
1406
+ "notNull": false
1407
+ },
1408
+ "status": {
1409
+ "name": "status",
1410
+ "type": "text",
1411
+ "primaryKey": false,
1412
+ "notNull": true,
1413
+ "default": "'live'"
1414
+ },
1415
+ "content_hash": {
1416
+ "name": "content_hash",
1417
+ "type": "text",
1418
+ "primaryKey": false,
1419
+ "notNull": false
1420
+ },
1421
+ "scheduled_at": {
1422
+ "name": "scheduled_at",
1423
+ "type": "text",
1424
+ "primaryKey": false,
1425
+ "notNull": false
1426
+ },
1427
+ "published_at": {
1428
+ "name": "published_at",
1429
+ "type": "text",
1430
+ "primaryKey": false,
1431
+ "notNull": true,
1432
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1433
+ },
1434
+ "updated_at": {
1435
+ "name": "updated_at",
1436
+ "type": "text",
1437
+ "primaryKey": false,
1438
+ "notNull": true,
1439
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1440
+ }
1441
+ },
1442
+ "indexes": {},
1443
+ "foreignKeys": {
1444
+ "posts_launch_id_launches_id_fk": {
1445
+ "name": "posts_launch_id_launches_id_fk",
1446
+ "tableFrom": "posts",
1447
+ "tableTo": "launches",
1448
+ "columnsFrom": [
1449
+ "launch_id"
1450
+ ],
1451
+ "columnsTo": [
1452
+ "id"
1453
+ ],
1454
+ "onDelete": "no action",
1455
+ "onUpdate": "no action"
1456
+ },
1457
+ "posts_account_id_accounts_id_fk": {
1458
+ "name": "posts_account_id_accounts_id_fk",
1459
+ "tableFrom": "posts",
1460
+ "tableTo": "accounts",
1461
+ "columnsFrom": [
1462
+ "account_id"
1463
+ ],
1464
+ "columnsTo": [
1465
+ "id"
1466
+ ],
1467
+ "onDelete": "set null",
1468
+ "onUpdate": "no action"
1469
+ }
1470
+ },
1471
+ "compositePrimaryKeys": {},
1472
+ "uniqueConstraints": {
1473
+ "posts_piece_unique": {
1474
+ "name": "posts_piece_unique",
1475
+ "nullsNotDistinct": true,
1476
+ "columns": [
1477
+ "launch_id",
1478
+ "channel",
1479
+ "account_id",
1480
+ "kind"
1481
+ ]
1482
+ }
1483
+ },
1484
+ "policies": {},
1485
+ "checkConstraints": {},
1486
+ "isRLSEnabled": false
1487
+ },
1488
+ "public.provider_calls": {
1489
+ "name": "provider_calls",
1490
+ "schema": "",
1491
+ "columns": {
1492
+ "hour": {
1493
+ "name": "hour",
1494
+ "type": "text",
1495
+ "primaryKey": false,
1496
+ "notNull": true
1497
+ },
1498
+ "process": {
1499
+ "name": "process",
1500
+ "type": "text",
1501
+ "primaryKey": false,
1502
+ "notNull": true
1503
+ },
1504
+ "origin": {
1505
+ "name": "origin",
1506
+ "type": "text",
1507
+ "primaryKey": false,
1508
+ "notNull": true
1509
+ },
1510
+ "provider": {
1511
+ "name": "provider",
1512
+ "type": "text",
1513
+ "primaryKey": false,
1514
+ "notNull": true
1515
+ },
1516
+ "method": {
1517
+ "name": "method",
1518
+ "type": "text",
1519
+ "primaryKey": false,
1520
+ "notNull": true
1521
+ },
1522
+ "endpoint": {
1523
+ "name": "endpoint",
1524
+ "type": "text",
1525
+ "primaryKey": false,
1526
+ "notNull": true
1527
+ },
1528
+ "status": {
1529
+ "name": "status",
1530
+ "type": "integer",
1531
+ "primaryKey": false,
1532
+ "notNull": true
1533
+ },
1534
+ "calls": {
1535
+ "name": "calls",
1536
+ "type": "integer",
1537
+ "primaryKey": false,
1538
+ "notNull": true
1539
+ },
1540
+ "total_ms": {
1541
+ "name": "total_ms",
1542
+ "type": "double precision",
1543
+ "primaryKey": false,
1544
+ "notNull": true
1545
+ },
1546
+ "bytes": {
1547
+ "name": "bytes",
1548
+ "type": "double precision",
1549
+ "primaryKey": false,
1550
+ "notNull": true,
1551
+ "default": 0
1552
+ },
1553
+ "latency": {
1554
+ "name": "latency",
1555
+ "type": "jsonb",
1556
+ "primaryKey": false,
1557
+ "notNull": true,
1558
+ "default": "'{}'::jsonb"
1559
+ },
1560
+ "quota_peak": {
1561
+ "name": "quota_peak",
1562
+ "type": "double precision",
1563
+ "primaryKey": false,
1564
+ "notNull": false
1565
+ },
1566
+ "quota_limit": {
1567
+ "name": "quota_limit",
1568
+ "type": "integer",
1569
+ "primaryKey": false,
1570
+ "notNull": false
1571
+ }
1572
+ },
1573
+ "indexes": {},
1574
+ "foreignKeys": {},
1575
+ "compositePrimaryKeys": {
1576
+ "provider_calls_key": {
1577
+ "name": "provider_calls_key",
1578
+ "columns": [
1579
+ "hour",
1580
+ "process",
1581
+ "origin",
1582
+ "provider",
1583
+ "method",
1584
+ "endpoint",
1585
+ "status"
1586
+ ]
1587
+ }
1588
+ },
1589
+ "uniqueConstraints": {},
1590
+ "policies": {},
1591
+ "checkConstraints": {},
1592
+ "isRLSEnabled": false
1593
+ },
1594
+ "public.publish_attempts": {
1595
+ "name": "publish_attempts",
1596
+ "schema": "",
1597
+ "columns": {
1598
+ "launch_id": {
1599
+ "name": "launch_id",
1600
+ "type": "integer",
1601
+ "primaryKey": false,
1602
+ "notNull": true
1603
+ },
1604
+ "channel": {
1605
+ "name": "channel",
1606
+ "type": "text",
1607
+ "primaryKey": false,
1608
+ "notNull": true
1609
+ },
1610
+ "kind": {
1611
+ "name": "kind",
1612
+ "type": "text",
1613
+ "primaryKey": false,
1614
+ "notNull": true
1615
+ },
1616
+ "state": {
1617
+ "name": "state",
1618
+ "type": "text",
1619
+ "primaryKey": false,
1620
+ "notNull": true
1621
+ },
1622
+ "attempts": {
1623
+ "name": "attempts",
1624
+ "type": "integer",
1625
+ "primaryKey": false,
1626
+ "notNull": true,
1627
+ "default": 1
1628
+ },
1629
+ "lease_until": {
1630
+ "name": "lease_until",
1631
+ "type": "text",
1632
+ "primaryKey": false,
1633
+ "notNull": false
1634
+ },
1635
+ "holder": {
1636
+ "name": "holder",
1637
+ "type": "text",
1638
+ "primaryKey": false,
1639
+ "notNull": false
1640
+ },
1641
+ "error": {
1642
+ "name": "error",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": false
1646
+ },
1647
+ "external_id": {
1648
+ "name": "external_id",
1649
+ "type": "text",
1650
+ "primaryKey": false,
1651
+ "notNull": false
1652
+ },
1653
+ "url": {
1654
+ "name": "url",
1655
+ "type": "text",
1656
+ "primaryKey": false,
1657
+ "notNull": false
1658
+ },
1659
+ "started_at": {
1660
+ "name": "started_at",
1661
+ "type": "text",
1662
+ "primaryKey": false,
1663
+ "notNull": true,
1664
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1665
+ },
1666
+ "updated_at": {
1667
+ "name": "updated_at",
1668
+ "type": "text",
1669
+ "primaryKey": false,
1670
+ "notNull": true,
1671
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1672
+ }
1673
+ },
1674
+ "indexes": {
1675
+ "publish_attempts_by_state": {
1676
+ "name": "publish_attempts_by_state",
1677
+ "columns": [
1678
+ {
1679
+ "expression": "state",
1680
+ "isExpression": false,
1681
+ "asc": true,
1682
+ "nulls": "last"
1683
+ }
1684
+ ],
1685
+ "isUnique": false,
1686
+ "concurrently": false,
1687
+ "method": "btree",
1688
+ "with": {}
1689
+ }
1690
+ },
1691
+ "foreignKeys": {
1692
+ "publish_attempts_launch_id_launches_id_fk": {
1693
+ "name": "publish_attempts_launch_id_launches_id_fk",
1694
+ "tableFrom": "publish_attempts",
1695
+ "tableTo": "launches",
1696
+ "columnsFrom": [
1697
+ "launch_id"
1698
+ ],
1699
+ "columnsTo": [
1700
+ "id"
1701
+ ],
1702
+ "onDelete": "no action",
1703
+ "onUpdate": "no action"
1704
+ }
1705
+ },
1706
+ "compositePrimaryKeys": {
1707
+ "publish_attempts_piece": {
1708
+ "name": "publish_attempts_piece",
1709
+ "columns": [
1710
+ "launch_id",
1711
+ "channel",
1712
+ "kind"
1713
+ ]
1714
+ }
1715
+ },
1716
+ "uniqueConstraints": {},
1717
+ "policies": {},
1718
+ "checkConstraints": {},
1719
+ "isRLSEnabled": false
1720
+ },
1721
+ "public.secrets": {
1722
+ "name": "secrets",
1723
+ "schema": "",
1724
+ "columns": {
1725
+ "key": {
1726
+ "name": "key",
1727
+ "type": "text",
1728
+ "primaryKey": true,
1729
+ "notNull": true
1730
+ },
1731
+ "label": {
1732
+ "name": "label",
1733
+ "type": "text",
1734
+ "primaryKey": false,
1735
+ "notNull": true,
1736
+ "default": "''"
1737
+ },
1738
+ "sealed": {
1739
+ "name": "sealed",
1740
+ "type": "text",
1741
+ "primaryKey": false,
1742
+ "notNull": true
1743
+ },
1744
+ "sealed_key": {
1745
+ "name": "sealed_key",
1746
+ "type": "text",
1747
+ "primaryKey": false,
1748
+ "notNull": true
1749
+ },
1750
+ "version": {
1751
+ "name": "version",
1752
+ "type": "integer",
1753
+ "primaryKey": false,
1754
+ "notNull": true,
1755
+ "default": 1
1756
+ },
1757
+ "updated_at": {
1758
+ "name": "updated_at",
1759
+ "type": "text",
1760
+ "primaryKey": false,
1761
+ "notNull": true,
1762
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1763
+ }
1764
+ },
1765
+ "indexes": {},
1766
+ "foreignKeys": {},
1767
+ "compositePrimaryKeys": {},
1768
+ "uniqueConstraints": {},
1769
+ "policies": {},
1770
+ "checkConstraints": {},
1771
+ "isRLSEnabled": false
1772
+ },
1773
+ "public.settings": {
1774
+ "name": "settings",
1775
+ "schema": "",
1776
+ "columns": {
1777
+ "key": {
1778
+ "name": "key",
1779
+ "type": "text",
1780
+ "primaryKey": true,
1781
+ "notNull": true
1782
+ },
1783
+ "value": {
1784
+ "name": "value",
1785
+ "type": "jsonb",
1786
+ "primaryKey": false,
1787
+ "notNull": true
1788
+ },
1789
+ "updated_at": {
1790
+ "name": "updated_at",
1791
+ "type": "text",
1792
+ "primaryKey": false,
1793
+ "notNull": true,
1794
+ "default": "to_char(statement_timestamp() AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.MS\"Z\"')"
1795
+ }
1796
+ },
1797
+ "indexes": {},
1798
+ "foreignKeys": {},
1799
+ "compositePrimaryKeys": {},
1800
+ "uniqueConstraints": {},
1801
+ "policies": {},
1802
+ "checkConstraints": {},
1803
+ "isRLSEnabled": false
1804
+ },
1805
+ "public.timings": {
1806
+ "name": "timings",
1807
+ "schema": "",
1808
+ "columns": {
1809
+ "hour": {
1810
+ "name": "hour",
1811
+ "type": "text",
1812
+ "primaryKey": false,
1813
+ "notNull": true
1814
+ },
1815
+ "process": {
1816
+ "name": "process",
1817
+ "type": "text",
1818
+ "primaryKey": false,
1819
+ "notNull": true
1820
+ },
1821
+ "kind": {
1822
+ "name": "kind",
1823
+ "type": "text",
1824
+ "primaryKey": false,
1825
+ "notNull": true
1826
+ },
1827
+ "name": {
1828
+ "name": "name",
1829
+ "type": "text",
1830
+ "primaryKey": false,
1831
+ "notNull": true
1832
+ },
1833
+ "outcome": {
1834
+ "name": "outcome",
1835
+ "type": "text",
1836
+ "primaryKey": false,
1837
+ "notNull": true
1838
+ },
1839
+ "count": {
1840
+ "name": "count",
1841
+ "type": "integer",
1842
+ "primaryKey": false,
1843
+ "notNull": true
1844
+ },
1845
+ "total_ms": {
1846
+ "name": "total_ms",
1847
+ "type": "double precision",
1848
+ "primaryKey": false,
1849
+ "notNull": true
1850
+ },
1851
+ "max_ms": {
1852
+ "name": "max_ms",
1853
+ "type": "double precision",
1854
+ "primaryKey": false,
1855
+ "notNull": true
1856
+ },
1857
+ "latency": {
1858
+ "name": "latency",
1859
+ "type": "jsonb",
1860
+ "primaryKey": false,
1861
+ "notNull": true,
1862
+ "default": "'{}'::jsonb"
1863
+ }
1864
+ },
1865
+ "indexes": {},
1866
+ "foreignKeys": {},
1867
+ "compositePrimaryKeys": {
1868
+ "timings_key": {
1869
+ "name": "timings_key",
1870
+ "columns": [
1871
+ "hour",
1872
+ "process",
1873
+ "kind",
1874
+ "name",
1875
+ "outcome"
1876
+ ]
1877
+ }
1878
+ },
1879
+ "uniqueConstraints": {},
1880
+ "policies": {},
1881
+ "checkConstraints": {},
1882
+ "isRLSEnabled": false
1883
+ }
1884
+ },
1885
+ "enums": {},
1886
+ "schemas": {},
1887
+ "sequences": {},
1888
+ "roles": {},
1889
+ "policies": {},
1890
+ "views": {},
1891
+ "_meta": {
1892
+ "columns": {},
1893
+ "schemas": {},
1894
+ "tables": {}
1895
+ }
1896
+ }