gitwarren 0.1.7

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.
@@ -0,0 +1,731 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "591c5ede-c25b-4cf8-a00a-d1566c7cd6c4",
5
+ "prevId": "23340602-c612-4c96-97ac-111f749d7e6d",
6
+ "tables": {
7
+ "attachments": {
8
+ "name": "attachments",
9
+ "columns": {
10
+ "sha": {
11
+ "name": "sha",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "ext": {
18
+ "name": "ext",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "mime_type": {
25
+ "name": "mime_type",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "byte_size": {
32
+ "name": "byte_size",
33
+ "type": "integer",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "width": {
39
+ "name": "width",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "height": {
46
+ "name": "height",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "original_name": {
53
+ "name": "original_name",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "created_at": {
60
+ "name": "created_at",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false,
65
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
66
+ }
67
+ },
68
+ "indexes": {},
69
+ "foreignKeys": {},
70
+ "compositePrimaryKeys": {},
71
+ "uniqueConstraints": {},
72
+ "checkConstraints": {}
73
+ },
74
+ "comment_threads": {
75
+ "name": "comment_threads",
76
+ "columns": {
77
+ "id": {
78
+ "name": "id",
79
+ "type": "integer",
80
+ "primaryKey": true,
81
+ "notNull": true,
82
+ "autoincrement": true
83
+ },
84
+ "review_id": {
85
+ "name": "review_id",
86
+ "type": "integer",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "autoincrement": false
90
+ },
91
+ "file_path": {
92
+ "name": "file_path",
93
+ "type": "text",
94
+ "primaryKey": false,
95
+ "notNull": false,
96
+ "autoincrement": false
97
+ },
98
+ "side": {
99
+ "name": "side",
100
+ "type": "text",
101
+ "primaryKey": false,
102
+ "notNull": false,
103
+ "autoincrement": false
104
+ },
105
+ "line": {
106
+ "name": "line",
107
+ "type": "integer",
108
+ "primaryKey": false,
109
+ "notNull": false,
110
+ "autoincrement": false
111
+ },
112
+ "start_line": {
113
+ "name": "start_line",
114
+ "type": "integer",
115
+ "primaryKey": false,
116
+ "notNull": false,
117
+ "autoincrement": false
118
+ },
119
+ "anchor_text": {
120
+ "name": "anchor_text",
121
+ "type": "text",
122
+ "primaryKey": false,
123
+ "notNull": false,
124
+ "autoincrement": false
125
+ },
126
+ "anchor_sha": {
127
+ "name": "anchor_sha",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": false,
131
+ "autoincrement": false
132
+ },
133
+ "anchor_snapshot": {
134
+ "name": "anchor_snapshot",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": false,
138
+ "autoincrement": false
139
+ },
140
+ "resolved_at": {
141
+ "name": "resolved_at",
142
+ "type": "text",
143
+ "primaryKey": false,
144
+ "notNull": false,
145
+ "autoincrement": false
146
+ },
147
+ "resolved_by": {
148
+ "name": "resolved_by",
149
+ "type": "text",
150
+ "primaryKey": false,
151
+ "notNull": false,
152
+ "autoincrement": false
153
+ },
154
+ "created_at": {
155
+ "name": "created_at",
156
+ "type": "text",
157
+ "primaryKey": false,
158
+ "notNull": true,
159
+ "autoincrement": false,
160
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
161
+ },
162
+ "updated_at": {
163
+ "name": "updated_at",
164
+ "type": "text",
165
+ "primaryKey": false,
166
+ "notNull": true,
167
+ "autoincrement": false,
168
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
169
+ }
170
+ },
171
+ "indexes": {
172
+ "comment_threads_review_idx": {
173
+ "name": "comment_threads_review_idx",
174
+ "columns": [
175
+ "review_id",
176
+ "updated_at"
177
+ ],
178
+ "isUnique": false
179
+ },
180
+ "comment_threads_file_idx": {
181
+ "name": "comment_threads_file_idx",
182
+ "columns": [
183
+ "review_id",
184
+ "file_path"
185
+ ],
186
+ "isUnique": false
187
+ }
188
+ },
189
+ "foreignKeys": {
190
+ "comment_threads_review_id_reviews_id_fk": {
191
+ "name": "comment_threads_review_id_reviews_id_fk",
192
+ "tableFrom": "comment_threads",
193
+ "tableTo": "reviews",
194
+ "columnsFrom": [
195
+ "review_id"
196
+ ],
197
+ "columnsTo": [
198
+ "id"
199
+ ],
200
+ "onDelete": "cascade",
201
+ "onUpdate": "no action"
202
+ }
203
+ },
204
+ "compositePrimaryKeys": {},
205
+ "uniqueConstraints": {},
206
+ "checkConstraints": {}
207
+ },
208
+ "comments": {
209
+ "name": "comments",
210
+ "columns": {
211
+ "id": {
212
+ "name": "id",
213
+ "type": "integer",
214
+ "primaryKey": true,
215
+ "notNull": true,
216
+ "autoincrement": true
217
+ },
218
+ "thread_id": {
219
+ "name": "thread_id",
220
+ "type": "integer",
221
+ "primaryKey": false,
222
+ "notNull": true,
223
+ "autoincrement": false
224
+ },
225
+ "author_kind": {
226
+ "name": "author_kind",
227
+ "type": "text",
228
+ "primaryKey": false,
229
+ "notNull": true,
230
+ "autoincrement": false
231
+ },
232
+ "author_id": {
233
+ "name": "author_id",
234
+ "type": "integer",
235
+ "primaryKey": false,
236
+ "notNull": false,
237
+ "autoincrement": false
238
+ },
239
+ "author_name": {
240
+ "name": "author_name",
241
+ "type": "text",
242
+ "primaryKey": false,
243
+ "notNull": true,
244
+ "autoincrement": false
245
+ },
246
+ "author_label": {
247
+ "name": "author_label",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": false,
251
+ "autoincrement": false
252
+ },
253
+ "author_session": {
254
+ "name": "author_session",
255
+ "type": "text",
256
+ "primaryKey": false,
257
+ "notNull": false,
258
+ "autoincrement": false
259
+ },
260
+ "body": {
261
+ "name": "body",
262
+ "type": "text",
263
+ "primaryKey": false,
264
+ "notNull": true,
265
+ "autoincrement": false
266
+ },
267
+ "created_at": {
268
+ "name": "created_at",
269
+ "type": "text",
270
+ "primaryKey": false,
271
+ "notNull": true,
272
+ "autoincrement": false,
273
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
274
+ },
275
+ "updated_at": {
276
+ "name": "updated_at",
277
+ "type": "text",
278
+ "primaryKey": false,
279
+ "notNull": true,
280
+ "autoincrement": false,
281
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
282
+ }
283
+ },
284
+ "indexes": {
285
+ "comments_thread_idx": {
286
+ "name": "comments_thread_idx",
287
+ "columns": [
288
+ "thread_id",
289
+ "created_at"
290
+ ],
291
+ "isUnique": false
292
+ }
293
+ },
294
+ "foreignKeys": {
295
+ "comments_thread_id_comment_threads_id_fk": {
296
+ "name": "comments_thread_id_comment_threads_id_fk",
297
+ "tableFrom": "comments",
298
+ "tableTo": "comment_threads",
299
+ "columnsFrom": [
300
+ "thread_id"
301
+ ],
302
+ "columnsTo": [
303
+ "id"
304
+ ],
305
+ "onDelete": "cascade",
306
+ "onUpdate": "no action"
307
+ },
308
+ "comments_author_id_principals_id_fk": {
309
+ "name": "comments_author_id_principals_id_fk",
310
+ "tableFrom": "comments",
311
+ "tableTo": "principals",
312
+ "columnsFrom": [
313
+ "author_id"
314
+ ],
315
+ "columnsTo": [
316
+ "id"
317
+ ],
318
+ "onDelete": "no action",
319
+ "onUpdate": "no action"
320
+ }
321
+ },
322
+ "compositePrimaryKeys": {},
323
+ "uniqueConstraints": {},
324
+ "checkConstraints": {}
325
+ },
326
+ "hosts": {
327
+ "name": "hosts",
328
+ "columns": {
329
+ "id": {
330
+ "name": "id",
331
+ "type": "integer",
332
+ "primaryKey": true,
333
+ "notNull": true,
334
+ "autoincrement": true
335
+ },
336
+ "instance_id": {
337
+ "name": "instance_id",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": false,
341
+ "autoincrement": false
342
+ },
343
+ "label": {
344
+ "name": "label",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "autoincrement": false
349
+ },
350
+ "kind": {
351
+ "name": "kind",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": true,
355
+ "autoincrement": false,
356
+ "default": "'ssh'"
357
+ },
358
+ "target": {
359
+ "name": "target",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true,
363
+ "autoincrement": false
364
+ },
365
+ "editor_target": {
366
+ "name": "editor_target",
367
+ "type": "text",
368
+ "primaryKey": false,
369
+ "notNull": false,
370
+ "autoincrement": false
371
+ },
372
+ "last_seen_at": {
373
+ "name": "last_seen_at",
374
+ "type": "text",
375
+ "primaryKey": false,
376
+ "notNull": false,
377
+ "autoincrement": false
378
+ },
379
+ "created_at": {
380
+ "name": "created_at",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": true,
384
+ "autoincrement": false,
385
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
386
+ }
387
+ },
388
+ "indexes": {
389
+ "hosts_kind_target_idx": {
390
+ "name": "hosts_kind_target_idx",
391
+ "columns": [
392
+ "kind",
393
+ "target"
394
+ ],
395
+ "isUnique": true
396
+ },
397
+ "hosts_instance_idx": {
398
+ "name": "hosts_instance_idx",
399
+ "columns": [
400
+ "instance_id"
401
+ ],
402
+ "isUnique": true,
403
+ "where": "\"hosts\".\"instance_id\" is not null"
404
+ }
405
+ },
406
+ "foreignKeys": {},
407
+ "compositePrimaryKeys": {},
408
+ "uniqueConstraints": {},
409
+ "checkConstraints": {}
410
+ },
411
+ "principals": {
412
+ "name": "principals",
413
+ "columns": {
414
+ "id": {
415
+ "name": "id",
416
+ "type": "integer",
417
+ "primaryKey": true,
418
+ "notNull": true,
419
+ "autoincrement": true
420
+ },
421
+ "kind": {
422
+ "name": "kind",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": true,
426
+ "autoincrement": false
427
+ },
428
+ "identifier": {
429
+ "name": "identifier",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": true,
433
+ "autoincrement": false
434
+ },
435
+ "display_name": {
436
+ "name": "display_name",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "autoincrement": false
441
+ },
442
+ "created_at": {
443
+ "name": "created_at",
444
+ "type": "text",
445
+ "primaryKey": false,
446
+ "notNull": true,
447
+ "autoincrement": false,
448
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
449
+ }
450
+ },
451
+ "indexes": {
452
+ "principals_identity_idx": {
453
+ "name": "principals_identity_idx",
454
+ "columns": [
455
+ "kind",
456
+ "identifier"
457
+ ],
458
+ "isUnique": true
459
+ }
460
+ },
461
+ "foreignKeys": {},
462
+ "compositePrimaryKeys": {},
463
+ "uniqueConstraints": {},
464
+ "checkConstraints": {}
465
+ },
466
+ "repositories": {
467
+ "name": "repositories",
468
+ "columns": {
469
+ "id": {
470
+ "name": "id",
471
+ "type": "integer",
472
+ "primaryKey": true,
473
+ "notNull": true,
474
+ "autoincrement": true
475
+ },
476
+ "host_id": {
477
+ "name": "host_id",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": false,
481
+ "autoincrement": false
482
+ },
483
+ "path": {
484
+ "name": "path",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": true,
488
+ "autoincrement": false
489
+ },
490
+ "name": {
491
+ "name": "name",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "autoincrement": false
496
+ },
497
+ "created_at": {
498
+ "name": "created_at",
499
+ "type": "text",
500
+ "primaryKey": false,
501
+ "notNull": true,
502
+ "autoincrement": false,
503
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
504
+ },
505
+ "updated_at": {
506
+ "name": "updated_at",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "autoincrement": false,
511
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
512
+ }
513
+ },
514
+ "indexes": {
515
+ "repositories_name_idx": {
516
+ "name": "repositories_name_idx",
517
+ "columns": [
518
+ "name"
519
+ ],
520
+ "isUnique": false
521
+ },
522
+ "repositories_host_path_idx": {
523
+ "name": "repositories_host_path_idx",
524
+ "columns": [
525
+ "host_id",
526
+ "path"
527
+ ],
528
+ "isUnique": true
529
+ },
530
+ "repositories_local_path_idx": {
531
+ "name": "repositories_local_path_idx",
532
+ "columns": [
533
+ "path"
534
+ ],
535
+ "isUnique": true,
536
+ "where": "\"repositories\".\"host_id\" is null"
537
+ }
538
+ },
539
+ "foreignKeys": {},
540
+ "compositePrimaryKeys": {},
541
+ "uniqueConstraints": {},
542
+ "checkConstraints": {}
543
+ },
544
+ "reviewed_files": {
545
+ "name": "reviewed_files",
546
+ "columns": {
547
+ "id": {
548
+ "name": "id",
549
+ "type": "integer",
550
+ "primaryKey": true,
551
+ "notNull": true,
552
+ "autoincrement": true
553
+ },
554
+ "review_id": {
555
+ "name": "review_id",
556
+ "type": "integer",
557
+ "primaryKey": false,
558
+ "notNull": true,
559
+ "autoincrement": false
560
+ },
561
+ "file_path": {
562
+ "name": "file_path",
563
+ "type": "text",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "autoincrement": false
567
+ },
568
+ "content_digest": {
569
+ "name": "content_digest",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": true,
573
+ "autoincrement": false
574
+ },
575
+ "reviewed_at": {
576
+ "name": "reviewed_at",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": true,
580
+ "autoincrement": false,
581
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
582
+ }
583
+ },
584
+ "indexes": {
585
+ "reviewed_files_path_idx": {
586
+ "name": "reviewed_files_path_idx",
587
+ "columns": [
588
+ "review_id",
589
+ "file_path"
590
+ ],
591
+ "isUnique": true
592
+ }
593
+ },
594
+ "foreignKeys": {
595
+ "reviewed_files_review_id_reviews_id_fk": {
596
+ "name": "reviewed_files_review_id_reviews_id_fk",
597
+ "tableFrom": "reviewed_files",
598
+ "tableTo": "reviews",
599
+ "columnsFrom": [
600
+ "review_id"
601
+ ],
602
+ "columnsTo": [
603
+ "id"
604
+ ],
605
+ "onDelete": "cascade",
606
+ "onUpdate": "no action"
607
+ }
608
+ },
609
+ "compositePrimaryKeys": {},
610
+ "uniqueConstraints": {},
611
+ "checkConstraints": {}
612
+ },
613
+ "reviews": {
614
+ "name": "reviews",
615
+ "columns": {
616
+ "id": {
617
+ "name": "id",
618
+ "type": "integer",
619
+ "primaryKey": true,
620
+ "notNull": true,
621
+ "autoincrement": true
622
+ },
623
+ "repository_id": {
624
+ "name": "repository_id",
625
+ "type": "integer",
626
+ "primaryKey": false,
627
+ "notNull": true,
628
+ "autoincrement": false
629
+ },
630
+ "title": {
631
+ "name": "title",
632
+ "type": "text",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "autoincrement": false
636
+ },
637
+ "description": {
638
+ "name": "description",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": true,
642
+ "autoincrement": false,
643
+ "default": "''"
644
+ },
645
+ "base_ref": {
646
+ "name": "base_ref",
647
+ "type": "text",
648
+ "primaryKey": false,
649
+ "notNull": true,
650
+ "autoincrement": false
651
+ },
652
+ "head_ref": {
653
+ "name": "head_ref",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": true,
657
+ "autoincrement": false
658
+ },
659
+ "status": {
660
+ "name": "status",
661
+ "type": "text",
662
+ "primaryKey": false,
663
+ "notNull": true,
664
+ "autoincrement": false,
665
+ "default": "'open'"
666
+ },
667
+ "created_at": {
668
+ "name": "created_at",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false,
673
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
674
+ },
675
+ "updated_at": {
676
+ "name": "updated_at",
677
+ "type": "text",
678
+ "primaryKey": false,
679
+ "notNull": true,
680
+ "autoincrement": false,
681
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
682
+ },
683
+ "closed_at": {
684
+ "name": "closed_at",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": false,
688
+ "autoincrement": false
689
+ }
690
+ },
691
+ "indexes": {
692
+ "reviews_repository_idx": {
693
+ "name": "reviews_repository_idx",
694
+ "columns": [
695
+ "repository_id",
696
+ "status"
697
+ ],
698
+ "isUnique": false
699
+ }
700
+ },
701
+ "foreignKeys": {
702
+ "reviews_repository_id_repositories_id_fk": {
703
+ "name": "reviews_repository_id_repositories_id_fk",
704
+ "tableFrom": "reviews",
705
+ "tableTo": "repositories",
706
+ "columnsFrom": [
707
+ "repository_id"
708
+ ],
709
+ "columnsTo": [
710
+ "id"
711
+ ],
712
+ "onDelete": "cascade",
713
+ "onUpdate": "no action"
714
+ }
715
+ },
716
+ "compositePrimaryKeys": {},
717
+ "uniqueConstraints": {},
718
+ "checkConstraints": {}
719
+ }
720
+ },
721
+ "views": {},
722
+ "enums": {},
723
+ "_meta": {
724
+ "schemas": {},
725
+ "tables": {},
726
+ "columns": {}
727
+ },
728
+ "internal": {
729
+ "indexes": {}
730
+ }
731
+ }