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,646 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "23340602-c612-4c96-97ac-111f749d7e6d",
5
+ "prevId": "74c8cfc7-984e-4c9a-a717-a5d1484e2556",
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
+ "principals": {
327
+ "name": "principals",
328
+ "columns": {
329
+ "id": {
330
+ "name": "id",
331
+ "type": "integer",
332
+ "primaryKey": true,
333
+ "notNull": true,
334
+ "autoincrement": true
335
+ },
336
+ "kind": {
337
+ "name": "kind",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": true,
341
+ "autoincrement": false
342
+ },
343
+ "identifier": {
344
+ "name": "identifier",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "autoincrement": false
349
+ },
350
+ "display_name": {
351
+ "name": "display_name",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": true,
355
+ "autoincrement": false
356
+ },
357
+ "created_at": {
358
+ "name": "created_at",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "autoincrement": false,
363
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
364
+ }
365
+ },
366
+ "indexes": {
367
+ "principals_identity_idx": {
368
+ "name": "principals_identity_idx",
369
+ "columns": [
370
+ "kind",
371
+ "identifier"
372
+ ],
373
+ "isUnique": true
374
+ }
375
+ },
376
+ "foreignKeys": {},
377
+ "compositePrimaryKeys": {},
378
+ "uniqueConstraints": {},
379
+ "checkConstraints": {}
380
+ },
381
+ "repositories": {
382
+ "name": "repositories",
383
+ "columns": {
384
+ "id": {
385
+ "name": "id",
386
+ "type": "integer",
387
+ "primaryKey": true,
388
+ "notNull": true,
389
+ "autoincrement": true
390
+ },
391
+ "host_id": {
392
+ "name": "host_id",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": false,
396
+ "autoincrement": false
397
+ },
398
+ "path": {
399
+ "name": "path",
400
+ "type": "text",
401
+ "primaryKey": false,
402
+ "notNull": true,
403
+ "autoincrement": false
404
+ },
405
+ "name": {
406
+ "name": "name",
407
+ "type": "text",
408
+ "primaryKey": false,
409
+ "notNull": true,
410
+ "autoincrement": false
411
+ },
412
+ "created_at": {
413
+ "name": "created_at",
414
+ "type": "text",
415
+ "primaryKey": false,
416
+ "notNull": true,
417
+ "autoincrement": false,
418
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
419
+ },
420
+ "updated_at": {
421
+ "name": "updated_at",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": true,
425
+ "autoincrement": false,
426
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
427
+ }
428
+ },
429
+ "indexes": {
430
+ "repositories_name_idx": {
431
+ "name": "repositories_name_idx",
432
+ "columns": [
433
+ "name"
434
+ ],
435
+ "isUnique": false
436
+ },
437
+ "repositories_host_path_idx": {
438
+ "name": "repositories_host_path_idx",
439
+ "columns": [
440
+ "host_id",
441
+ "path"
442
+ ],
443
+ "isUnique": true
444
+ },
445
+ "repositories_local_path_idx": {
446
+ "name": "repositories_local_path_idx",
447
+ "columns": [
448
+ "path"
449
+ ],
450
+ "isUnique": true,
451
+ "where": "\"repositories\".\"host_id\" is null"
452
+ }
453
+ },
454
+ "foreignKeys": {},
455
+ "compositePrimaryKeys": {},
456
+ "uniqueConstraints": {},
457
+ "checkConstraints": {}
458
+ },
459
+ "reviewed_files": {
460
+ "name": "reviewed_files",
461
+ "columns": {
462
+ "id": {
463
+ "name": "id",
464
+ "type": "integer",
465
+ "primaryKey": true,
466
+ "notNull": true,
467
+ "autoincrement": true
468
+ },
469
+ "review_id": {
470
+ "name": "review_id",
471
+ "type": "integer",
472
+ "primaryKey": false,
473
+ "notNull": true,
474
+ "autoincrement": false
475
+ },
476
+ "file_path": {
477
+ "name": "file_path",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "autoincrement": false
482
+ },
483
+ "content_digest": {
484
+ "name": "content_digest",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": true,
488
+ "autoincrement": false
489
+ },
490
+ "reviewed_at": {
491
+ "name": "reviewed_at",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "autoincrement": false,
496
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
497
+ }
498
+ },
499
+ "indexes": {
500
+ "reviewed_files_path_idx": {
501
+ "name": "reviewed_files_path_idx",
502
+ "columns": [
503
+ "review_id",
504
+ "file_path"
505
+ ],
506
+ "isUnique": true
507
+ }
508
+ },
509
+ "foreignKeys": {
510
+ "reviewed_files_review_id_reviews_id_fk": {
511
+ "name": "reviewed_files_review_id_reviews_id_fk",
512
+ "tableFrom": "reviewed_files",
513
+ "tableTo": "reviews",
514
+ "columnsFrom": [
515
+ "review_id"
516
+ ],
517
+ "columnsTo": [
518
+ "id"
519
+ ],
520
+ "onDelete": "cascade",
521
+ "onUpdate": "no action"
522
+ }
523
+ },
524
+ "compositePrimaryKeys": {},
525
+ "uniqueConstraints": {},
526
+ "checkConstraints": {}
527
+ },
528
+ "reviews": {
529
+ "name": "reviews",
530
+ "columns": {
531
+ "id": {
532
+ "name": "id",
533
+ "type": "integer",
534
+ "primaryKey": true,
535
+ "notNull": true,
536
+ "autoincrement": true
537
+ },
538
+ "repository_id": {
539
+ "name": "repository_id",
540
+ "type": "integer",
541
+ "primaryKey": false,
542
+ "notNull": true,
543
+ "autoincrement": false
544
+ },
545
+ "title": {
546
+ "name": "title",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": true,
550
+ "autoincrement": false
551
+ },
552
+ "description": {
553
+ "name": "description",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "autoincrement": false,
558
+ "default": "''"
559
+ },
560
+ "base_ref": {
561
+ "name": "base_ref",
562
+ "type": "text",
563
+ "primaryKey": false,
564
+ "notNull": true,
565
+ "autoincrement": false
566
+ },
567
+ "head_ref": {
568
+ "name": "head_ref",
569
+ "type": "text",
570
+ "primaryKey": false,
571
+ "notNull": true,
572
+ "autoincrement": false
573
+ },
574
+ "status": {
575
+ "name": "status",
576
+ "type": "text",
577
+ "primaryKey": false,
578
+ "notNull": true,
579
+ "autoincrement": false,
580
+ "default": "'open'"
581
+ },
582
+ "created_at": {
583
+ "name": "created_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
+ "updated_at": {
591
+ "name": "updated_at",
592
+ "type": "text",
593
+ "primaryKey": false,
594
+ "notNull": true,
595
+ "autoincrement": false,
596
+ "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))"
597
+ },
598
+ "closed_at": {
599
+ "name": "closed_at",
600
+ "type": "text",
601
+ "primaryKey": false,
602
+ "notNull": false,
603
+ "autoincrement": false
604
+ }
605
+ },
606
+ "indexes": {
607
+ "reviews_repository_idx": {
608
+ "name": "reviews_repository_idx",
609
+ "columns": [
610
+ "repository_id",
611
+ "status"
612
+ ],
613
+ "isUnique": false
614
+ }
615
+ },
616
+ "foreignKeys": {
617
+ "reviews_repository_id_repositories_id_fk": {
618
+ "name": "reviews_repository_id_repositories_id_fk",
619
+ "tableFrom": "reviews",
620
+ "tableTo": "repositories",
621
+ "columnsFrom": [
622
+ "repository_id"
623
+ ],
624
+ "columnsTo": [
625
+ "id"
626
+ ],
627
+ "onDelete": "cascade",
628
+ "onUpdate": "no action"
629
+ }
630
+ },
631
+ "compositePrimaryKeys": {},
632
+ "uniqueConstraints": {},
633
+ "checkConstraints": {}
634
+ }
635
+ },
636
+ "views": {},
637
+ "enums": {},
638
+ "_meta": {
639
+ "schemas": {},
640
+ "tables": {},
641
+ "columns": {}
642
+ },
643
+ "internal": {
644
+ "indexes": {}
645
+ }
646
+ }