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,738 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "58a9da50-062b-41ac-b245-72ba030a0292",
5
+ "prevId": "591c5ede-c25b-4cf8-a00a-d1566c7cd6c4",
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
+ "daemon_version": {
380
+ "name": "daemon_version",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": false,
384
+ "autoincrement": false
385
+ },
386
+ "created_at": {
387
+ "name": "created_at",
388
+ "type": "text",
389
+ "primaryKey": false,
390
+ "notNull": true,
391
+ "autoincrement": false,
392
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
393
+ }
394
+ },
395
+ "indexes": {
396
+ "hosts_kind_target_idx": {
397
+ "name": "hosts_kind_target_idx",
398
+ "columns": [
399
+ "kind",
400
+ "target"
401
+ ],
402
+ "isUnique": true
403
+ },
404
+ "hosts_instance_idx": {
405
+ "name": "hosts_instance_idx",
406
+ "columns": [
407
+ "instance_id"
408
+ ],
409
+ "isUnique": true,
410
+ "where": "\"hosts\".\"instance_id\" is not null"
411
+ }
412
+ },
413
+ "foreignKeys": {},
414
+ "compositePrimaryKeys": {},
415
+ "uniqueConstraints": {},
416
+ "checkConstraints": {}
417
+ },
418
+ "principals": {
419
+ "name": "principals",
420
+ "columns": {
421
+ "id": {
422
+ "name": "id",
423
+ "type": "integer",
424
+ "primaryKey": true,
425
+ "notNull": true,
426
+ "autoincrement": true
427
+ },
428
+ "kind": {
429
+ "name": "kind",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": true,
433
+ "autoincrement": false
434
+ },
435
+ "identifier": {
436
+ "name": "identifier",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "autoincrement": false
441
+ },
442
+ "display_name": {
443
+ "name": "display_name",
444
+ "type": "text",
445
+ "primaryKey": false,
446
+ "notNull": true,
447
+ "autoincrement": false
448
+ },
449
+ "created_at": {
450
+ "name": "created_at",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": true,
454
+ "autoincrement": false,
455
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
456
+ }
457
+ },
458
+ "indexes": {
459
+ "principals_identity_idx": {
460
+ "name": "principals_identity_idx",
461
+ "columns": [
462
+ "kind",
463
+ "identifier"
464
+ ],
465
+ "isUnique": true
466
+ }
467
+ },
468
+ "foreignKeys": {},
469
+ "compositePrimaryKeys": {},
470
+ "uniqueConstraints": {},
471
+ "checkConstraints": {}
472
+ },
473
+ "repositories": {
474
+ "name": "repositories",
475
+ "columns": {
476
+ "id": {
477
+ "name": "id",
478
+ "type": "integer",
479
+ "primaryKey": true,
480
+ "notNull": true,
481
+ "autoincrement": true
482
+ },
483
+ "host_id": {
484
+ "name": "host_id",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": false,
488
+ "autoincrement": false
489
+ },
490
+ "path": {
491
+ "name": "path",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "autoincrement": false
496
+ },
497
+ "name": {
498
+ "name": "name",
499
+ "type": "text",
500
+ "primaryKey": false,
501
+ "notNull": true,
502
+ "autoincrement": false
503
+ },
504
+ "created_at": {
505
+ "name": "created_at",
506
+ "type": "text",
507
+ "primaryKey": false,
508
+ "notNull": true,
509
+ "autoincrement": false,
510
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
511
+ },
512
+ "updated_at": {
513
+ "name": "updated_at",
514
+ "type": "text",
515
+ "primaryKey": false,
516
+ "notNull": true,
517
+ "autoincrement": false,
518
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
519
+ }
520
+ },
521
+ "indexes": {
522
+ "repositories_name_idx": {
523
+ "name": "repositories_name_idx",
524
+ "columns": [
525
+ "name"
526
+ ],
527
+ "isUnique": false
528
+ },
529
+ "repositories_host_path_idx": {
530
+ "name": "repositories_host_path_idx",
531
+ "columns": [
532
+ "host_id",
533
+ "path"
534
+ ],
535
+ "isUnique": true
536
+ },
537
+ "repositories_local_path_idx": {
538
+ "name": "repositories_local_path_idx",
539
+ "columns": [
540
+ "path"
541
+ ],
542
+ "isUnique": true,
543
+ "where": "\"repositories\".\"host_id\" is null"
544
+ }
545
+ },
546
+ "foreignKeys": {},
547
+ "compositePrimaryKeys": {},
548
+ "uniqueConstraints": {},
549
+ "checkConstraints": {}
550
+ },
551
+ "reviewed_files": {
552
+ "name": "reviewed_files",
553
+ "columns": {
554
+ "id": {
555
+ "name": "id",
556
+ "type": "integer",
557
+ "primaryKey": true,
558
+ "notNull": true,
559
+ "autoincrement": true
560
+ },
561
+ "review_id": {
562
+ "name": "review_id",
563
+ "type": "integer",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "autoincrement": false
567
+ },
568
+ "file_path": {
569
+ "name": "file_path",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": true,
573
+ "autoincrement": false
574
+ },
575
+ "content_digest": {
576
+ "name": "content_digest",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": true,
580
+ "autoincrement": false
581
+ },
582
+ "reviewed_at": {
583
+ "name": "reviewed_at",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": true,
587
+ "autoincrement": false,
588
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
589
+ }
590
+ },
591
+ "indexes": {
592
+ "reviewed_files_path_idx": {
593
+ "name": "reviewed_files_path_idx",
594
+ "columns": [
595
+ "review_id",
596
+ "file_path"
597
+ ],
598
+ "isUnique": true
599
+ }
600
+ },
601
+ "foreignKeys": {
602
+ "reviewed_files_review_id_reviews_id_fk": {
603
+ "name": "reviewed_files_review_id_reviews_id_fk",
604
+ "tableFrom": "reviewed_files",
605
+ "tableTo": "reviews",
606
+ "columnsFrom": [
607
+ "review_id"
608
+ ],
609
+ "columnsTo": [
610
+ "id"
611
+ ],
612
+ "onDelete": "cascade",
613
+ "onUpdate": "no action"
614
+ }
615
+ },
616
+ "compositePrimaryKeys": {},
617
+ "uniqueConstraints": {},
618
+ "checkConstraints": {}
619
+ },
620
+ "reviews": {
621
+ "name": "reviews",
622
+ "columns": {
623
+ "id": {
624
+ "name": "id",
625
+ "type": "integer",
626
+ "primaryKey": true,
627
+ "notNull": true,
628
+ "autoincrement": true
629
+ },
630
+ "repository_id": {
631
+ "name": "repository_id",
632
+ "type": "integer",
633
+ "primaryKey": false,
634
+ "notNull": true,
635
+ "autoincrement": false
636
+ },
637
+ "title": {
638
+ "name": "title",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": true,
642
+ "autoincrement": false
643
+ },
644
+ "description": {
645
+ "name": "description",
646
+ "type": "text",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "autoincrement": false,
650
+ "default": "''"
651
+ },
652
+ "base_ref": {
653
+ "name": "base_ref",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": true,
657
+ "autoincrement": false
658
+ },
659
+ "head_ref": {
660
+ "name": "head_ref",
661
+ "type": "text",
662
+ "primaryKey": false,
663
+ "notNull": true,
664
+ "autoincrement": false
665
+ },
666
+ "status": {
667
+ "name": "status",
668
+ "type": "text",
669
+ "primaryKey": false,
670
+ "notNull": true,
671
+ "autoincrement": false,
672
+ "default": "'open'"
673
+ },
674
+ "created_at": {
675
+ "name": "created_at",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": true,
679
+ "autoincrement": false,
680
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
681
+ },
682
+ "updated_at": {
683
+ "name": "updated_at",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": true,
687
+ "autoincrement": false,
688
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
689
+ },
690
+ "closed_at": {
691
+ "name": "closed_at",
692
+ "type": "text",
693
+ "primaryKey": false,
694
+ "notNull": false,
695
+ "autoincrement": false
696
+ }
697
+ },
698
+ "indexes": {
699
+ "reviews_repository_idx": {
700
+ "name": "reviews_repository_idx",
701
+ "columns": [
702
+ "repository_id",
703
+ "status"
704
+ ],
705
+ "isUnique": false
706
+ }
707
+ },
708
+ "foreignKeys": {
709
+ "reviews_repository_id_repositories_id_fk": {
710
+ "name": "reviews_repository_id_repositories_id_fk",
711
+ "tableFrom": "reviews",
712
+ "tableTo": "repositories",
713
+ "columnsFrom": [
714
+ "repository_id"
715
+ ],
716
+ "columnsTo": [
717
+ "id"
718
+ ],
719
+ "onDelete": "cascade",
720
+ "onUpdate": "no action"
721
+ }
722
+ },
723
+ "compositePrimaryKeys": {},
724
+ "uniqueConstraints": {},
725
+ "checkConstraints": {}
726
+ }
727
+ },
728
+ "views": {},
729
+ "enums": {},
730
+ "_meta": {
731
+ "schemas": {},
732
+ "tables": {},
733
+ "columns": {}
734
+ },
735
+ "internal": {
736
+ "indexes": {}
737
+ }
738
+ }