jukebox-media-server 0.1.1 → 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.
@@ -0,0 +1,1059 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "9e60d80a-1f2d-4c6e-9f44-d5a6f4d9a009",
5
+ "prevId": "fcf1bc05-2b5a-4a4a-ba9c-422a3d2dbfa5",
6
+ "tables": {
7
+ "auth_config": {
8
+ "name": "auth_config",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "integer",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "password_hash": {
18
+ "name": "password_hash",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": false,
22
+ "autoincrement": false
23
+ },
24
+ "updated_at": {
25
+ "name": "updated_at",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ }
31
+ },
32
+ "indexes": {},
33
+ "foreignKeys": {},
34
+ "compositePrimaryKeys": {},
35
+ "uniqueConstraints": {},
36
+ "checkConstraints": {}
37
+ },
38
+ "episodes": {
39
+ "name": "episodes",
40
+ "columns": {
41
+ "id": {
42
+ "name": "id",
43
+ "type": "integer",
44
+ "primaryKey": true,
45
+ "notNull": true,
46
+ "autoincrement": true
47
+ },
48
+ "show_id": {
49
+ "name": "show_id",
50
+ "type": "integer",
51
+ "primaryKey": false,
52
+ "notNull": true,
53
+ "autoincrement": false
54
+ },
55
+ "season_id": {
56
+ "name": "season_id",
57
+ "type": "integer",
58
+ "primaryKey": false,
59
+ "notNull": true,
60
+ "autoincrement": false
61
+ },
62
+ "season_number": {
63
+ "name": "season_number",
64
+ "type": "integer",
65
+ "primaryKey": false,
66
+ "notNull": true,
67
+ "autoincrement": false
68
+ },
69
+ "episode_number": {
70
+ "name": "episode_number",
71
+ "type": "integer",
72
+ "primaryKey": false,
73
+ "notNull": true,
74
+ "autoincrement": false
75
+ },
76
+ "title": {
77
+ "name": "title",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": true,
81
+ "autoincrement": false
82
+ },
83
+ "file_path": {
84
+ "name": "file_path",
85
+ "type": "text",
86
+ "primaryKey": false,
87
+ "notNull": true,
88
+ "autoincrement": false
89
+ },
90
+ "file_name": {
91
+ "name": "file_name",
92
+ "type": "text",
93
+ "primaryKey": false,
94
+ "notNull": true,
95
+ "autoincrement": false
96
+ },
97
+ "file_size": {
98
+ "name": "file_size",
99
+ "type": "integer",
100
+ "primaryKey": false,
101
+ "notNull": false,
102
+ "autoincrement": false
103
+ },
104
+ "extension": {
105
+ "name": "extension",
106
+ "type": "text",
107
+ "primaryKey": false,
108
+ "notNull": false,
109
+ "autoincrement": false
110
+ },
111
+ "tmdb_id": {
112
+ "name": "tmdb_id",
113
+ "type": "integer",
114
+ "primaryKey": false,
115
+ "notNull": false,
116
+ "autoincrement": false
117
+ },
118
+ "overview": {
119
+ "name": "overview",
120
+ "type": "text",
121
+ "primaryKey": false,
122
+ "notNull": false,
123
+ "autoincrement": false
124
+ },
125
+ "runtime": {
126
+ "name": "runtime",
127
+ "type": "integer",
128
+ "primaryKey": false,
129
+ "notNull": false,
130
+ "autoincrement": false
131
+ },
132
+ "still_path": {
133
+ "name": "still_path",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": false,
137
+ "autoincrement": false
138
+ },
139
+ "created_at": {
140
+ "name": "created_at",
141
+ "type": "integer",
142
+ "primaryKey": false,
143
+ "notNull": true,
144
+ "autoincrement": false
145
+ },
146
+ "updated_at": {
147
+ "name": "updated_at",
148
+ "type": "integer",
149
+ "primaryKey": false,
150
+ "notNull": true,
151
+ "autoincrement": false
152
+ }
153
+ },
154
+ "indexes": {
155
+ "episodes_file_path_unique": {
156
+ "name": "episodes_file_path_unique",
157
+ "columns": [
158
+ "file_path"
159
+ ],
160
+ "isUnique": true
161
+ }
162
+ },
163
+ "foreignKeys": {
164
+ "episodes_show_id_shows_id_fk": {
165
+ "name": "episodes_show_id_shows_id_fk",
166
+ "tableFrom": "episodes",
167
+ "tableTo": "shows",
168
+ "columnsFrom": [
169
+ "show_id"
170
+ ],
171
+ "columnsTo": [
172
+ "id"
173
+ ],
174
+ "onDelete": "no action",
175
+ "onUpdate": "no action"
176
+ },
177
+ "episodes_season_id_seasons_id_fk": {
178
+ "name": "episodes_season_id_seasons_id_fk",
179
+ "tableFrom": "episodes",
180
+ "tableTo": "seasons",
181
+ "columnsFrom": [
182
+ "season_id"
183
+ ],
184
+ "columnsTo": [
185
+ "id"
186
+ ],
187
+ "onDelete": "no action",
188
+ "onUpdate": "no action"
189
+ }
190
+ },
191
+ "compositePrimaryKeys": {},
192
+ "uniqueConstraints": {},
193
+ "checkConstraints": {}
194
+ },
195
+ "favorites": {
196
+ "name": "favorites",
197
+ "columns": {
198
+ "id": {
199
+ "name": "id",
200
+ "type": "integer",
201
+ "primaryKey": true,
202
+ "notNull": true,
203
+ "autoincrement": true
204
+ },
205
+ "profile_id": {
206
+ "name": "profile_id",
207
+ "type": "integer",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "autoincrement": false
211
+ },
212
+ "movie_id": {
213
+ "name": "movie_id",
214
+ "type": "integer",
215
+ "primaryKey": false,
216
+ "notNull": false,
217
+ "autoincrement": false
218
+ },
219
+ "show_id": {
220
+ "name": "show_id",
221
+ "type": "integer",
222
+ "primaryKey": false,
223
+ "notNull": false,
224
+ "autoincrement": false
225
+ },
226
+ "created_at": {
227
+ "name": "created_at",
228
+ "type": "integer",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "autoincrement": false
232
+ }
233
+ },
234
+ "indexes": {
235
+ "favorites_profile_movie_idx": {
236
+ "name": "favorites_profile_movie_idx",
237
+ "columns": [
238
+ "profile_id",
239
+ "movie_id"
240
+ ],
241
+ "isUnique": true
242
+ },
243
+ "favorites_profile_show_idx": {
244
+ "name": "favorites_profile_show_idx",
245
+ "columns": [
246
+ "profile_id",
247
+ "show_id"
248
+ ],
249
+ "isUnique": true
250
+ }
251
+ },
252
+ "foreignKeys": {
253
+ "favorites_profile_id_profiles_id_fk": {
254
+ "name": "favorites_profile_id_profiles_id_fk",
255
+ "tableFrom": "favorites",
256
+ "tableTo": "profiles",
257
+ "columnsFrom": [
258
+ "profile_id"
259
+ ],
260
+ "columnsTo": [
261
+ "id"
262
+ ],
263
+ "onDelete": "cascade",
264
+ "onUpdate": "no action"
265
+ },
266
+ "favorites_movie_id_movies_id_fk": {
267
+ "name": "favorites_movie_id_movies_id_fk",
268
+ "tableFrom": "favorites",
269
+ "tableTo": "movies",
270
+ "columnsFrom": [
271
+ "movie_id"
272
+ ],
273
+ "columnsTo": [
274
+ "id"
275
+ ],
276
+ "onDelete": "cascade",
277
+ "onUpdate": "no action"
278
+ },
279
+ "favorites_show_id_shows_id_fk": {
280
+ "name": "favorites_show_id_shows_id_fk",
281
+ "tableFrom": "favorites",
282
+ "tableTo": "shows",
283
+ "columnsFrom": [
284
+ "show_id"
285
+ ],
286
+ "columnsTo": [
287
+ "id"
288
+ ],
289
+ "onDelete": "cascade",
290
+ "onUpdate": "no action"
291
+ }
292
+ },
293
+ "compositePrimaryKeys": {},
294
+ "uniqueConstraints": {},
295
+ "checkConstraints": {}
296
+ },
297
+ "libraries": {
298
+ "name": "libraries",
299
+ "columns": {
300
+ "id": {
301
+ "name": "id",
302
+ "type": "integer",
303
+ "primaryKey": true,
304
+ "notNull": true,
305
+ "autoincrement": true
306
+ },
307
+ "name": {
308
+ "name": "name",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true,
312
+ "autoincrement": false
313
+ },
314
+ "path": {
315
+ "name": "path",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": true,
319
+ "autoincrement": false
320
+ },
321
+ "type": {
322
+ "name": "type",
323
+ "type": "text",
324
+ "primaryKey": false,
325
+ "notNull": true,
326
+ "autoincrement": false
327
+ },
328
+ "created_at": {
329
+ "name": "created_at",
330
+ "type": "integer",
331
+ "primaryKey": false,
332
+ "notNull": true,
333
+ "autoincrement": false
334
+ }
335
+ },
336
+ "indexes": {
337
+ "libraries_path_unique": {
338
+ "name": "libraries_path_unique",
339
+ "columns": [
340
+ "path"
341
+ ],
342
+ "isUnique": true
343
+ }
344
+ },
345
+ "foreignKeys": {},
346
+ "compositePrimaryKeys": {},
347
+ "uniqueConstraints": {},
348
+ "checkConstraints": {}
349
+ },
350
+ "movies": {
351
+ "name": "movies",
352
+ "columns": {
353
+ "id": {
354
+ "name": "id",
355
+ "type": "integer",
356
+ "primaryKey": true,
357
+ "notNull": true,
358
+ "autoincrement": true
359
+ },
360
+ "title": {
361
+ "name": "title",
362
+ "type": "text",
363
+ "primaryKey": false,
364
+ "notNull": true,
365
+ "autoincrement": false
366
+ },
367
+ "file_path": {
368
+ "name": "file_path",
369
+ "type": "text",
370
+ "primaryKey": false,
371
+ "notNull": true,
372
+ "autoincrement": false
373
+ },
374
+ "file_name": {
375
+ "name": "file_name",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": true,
379
+ "autoincrement": false
380
+ },
381
+ "file_size": {
382
+ "name": "file_size",
383
+ "type": "integer",
384
+ "primaryKey": false,
385
+ "notNull": false,
386
+ "autoincrement": false
387
+ },
388
+ "extension": {
389
+ "name": "extension",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": false,
393
+ "autoincrement": false
394
+ },
395
+ "created_at": {
396
+ "name": "created_at",
397
+ "type": "integer",
398
+ "primaryKey": false,
399
+ "notNull": true,
400
+ "autoincrement": false
401
+ },
402
+ "updated_at": {
403
+ "name": "updated_at",
404
+ "type": "integer",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "autoincrement": false
408
+ },
409
+ "tmdb_id": {
410
+ "name": "tmdb_id",
411
+ "type": "integer",
412
+ "primaryKey": false,
413
+ "notNull": false,
414
+ "autoincrement": false
415
+ },
416
+ "year": {
417
+ "name": "year",
418
+ "type": "integer",
419
+ "primaryKey": false,
420
+ "notNull": false,
421
+ "autoincrement": false
422
+ },
423
+ "overview": {
424
+ "name": "overview",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": false,
428
+ "autoincrement": false
429
+ },
430
+ "runtime": {
431
+ "name": "runtime",
432
+ "type": "integer",
433
+ "primaryKey": false,
434
+ "notNull": false,
435
+ "autoincrement": false
436
+ },
437
+ "genres": {
438
+ "name": "genres",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": false,
442
+ "autoincrement": false
443
+ },
444
+ "rating": {
445
+ "name": "rating",
446
+ "type": "real",
447
+ "primaryKey": false,
448
+ "notNull": false,
449
+ "autoincrement": false
450
+ },
451
+ "poster_path": {
452
+ "name": "poster_path",
453
+ "type": "text",
454
+ "primaryKey": false,
455
+ "notNull": false,
456
+ "autoincrement": false
457
+ },
458
+ "backdrop_path": {
459
+ "name": "backdrop_path",
460
+ "type": "text",
461
+ "primaryKey": false,
462
+ "notNull": false,
463
+ "autoincrement": false
464
+ },
465
+ "trailer_url": {
466
+ "name": "trailer_url",
467
+ "type": "text",
468
+ "primaryKey": false,
469
+ "notNull": false,
470
+ "autoincrement": false
471
+ }
472
+ },
473
+ "indexes": {
474
+ "movies_file_path_unique": {
475
+ "name": "movies_file_path_unique",
476
+ "columns": [
477
+ "file_path"
478
+ ],
479
+ "isUnique": true
480
+ }
481
+ },
482
+ "foreignKeys": {},
483
+ "compositePrimaryKeys": {},
484
+ "uniqueConstraints": {},
485
+ "checkConstraints": {}
486
+ },
487
+ "profiles": {
488
+ "name": "profiles",
489
+ "columns": {
490
+ "id": {
491
+ "name": "id",
492
+ "type": "integer",
493
+ "primaryKey": true,
494
+ "notNull": true,
495
+ "autoincrement": true
496
+ },
497
+ "name": {
498
+ "name": "name",
499
+ "type": "text",
500
+ "primaryKey": false,
501
+ "notNull": true,
502
+ "autoincrement": false
503
+ },
504
+ "emoji": {
505
+ "name": "emoji",
506
+ "type": "text",
507
+ "primaryKey": false,
508
+ "notNull": true,
509
+ "autoincrement": false
510
+ },
511
+ "created_at": {
512
+ "name": "created_at",
513
+ "type": "integer",
514
+ "primaryKey": false,
515
+ "notNull": true,
516
+ "autoincrement": false
517
+ }
518
+ },
519
+ "indexes": {
520
+ "profiles_name_unique": {
521
+ "name": "profiles_name_unique",
522
+ "columns": [
523
+ "name"
524
+ ],
525
+ "isUnique": true
526
+ }
527
+ },
528
+ "foreignKeys": {},
529
+ "compositePrimaryKeys": {},
530
+ "uniqueConstraints": {},
531
+ "checkConstraints": {}
532
+ },
533
+ "scan_jobs": {
534
+ "name": "scan_jobs",
535
+ "columns": {
536
+ "id": {
537
+ "name": "id",
538
+ "type": "integer",
539
+ "primaryKey": true,
540
+ "notNull": true,
541
+ "autoincrement": true
542
+ },
543
+ "started_at": {
544
+ "name": "started_at",
545
+ "type": "integer",
546
+ "primaryKey": false,
547
+ "notNull": true,
548
+ "autoincrement": false
549
+ },
550
+ "ended_at": {
551
+ "name": "ended_at",
552
+ "type": "integer",
553
+ "primaryKey": false,
554
+ "notNull": false,
555
+ "autoincrement": false
556
+ },
557
+ "status": {
558
+ "name": "status",
559
+ "type": "text",
560
+ "primaryKey": false,
561
+ "notNull": true,
562
+ "autoincrement": false
563
+ },
564
+ "added": {
565
+ "name": "added",
566
+ "type": "integer",
567
+ "primaryKey": false,
568
+ "notNull": true,
569
+ "autoincrement": false,
570
+ "default": 0
571
+ },
572
+ "updated": {
573
+ "name": "updated",
574
+ "type": "integer",
575
+ "primaryKey": false,
576
+ "notNull": true,
577
+ "autoincrement": false,
578
+ "default": 0
579
+ },
580
+ "total": {
581
+ "name": "total",
582
+ "type": "integer",
583
+ "primaryKey": false,
584
+ "notNull": true,
585
+ "autoincrement": false,
586
+ "default": 0
587
+ },
588
+ "error_message": {
589
+ "name": "error_message",
590
+ "type": "text",
591
+ "primaryKey": false,
592
+ "notNull": false,
593
+ "autoincrement": false
594
+ }
595
+ },
596
+ "indexes": {},
597
+ "foreignKeys": {},
598
+ "compositePrimaryKeys": {},
599
+ "uniqueConstraints": {},
600
+ "checkConstraints": {}
601
+ },
602
+ "seasons": {
603
+ "name": "seasons",
604
+ "columns": {
605
+ "id": {
606
+ "name": "id",
607
+ "type": "integer",
608
+ "primaryKey": true,
609
+ "notNull": true,
610
+ "autoincrement": true
611
+ },
612
+ "show_id": {
613
+ "name": "show_id",
614
+ "type": "integer",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "season_number": {
620
+ "name": "season_number",
621
+ "type": "integer",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false
625
+ },
626
+ "name": {
627
+ "name": "name",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": false,
631
+ "autoincrement": false
632
+ },
633
+ "overview": {
634
+ "name": "overview",
635
+ "type": "text",
636
+ "primaryKey": false,
637
+ "notNull": false,
638
+ "autoincrement": false
639
+ },
640
+ "poster_path": {
641
+ "name": "poster_path",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": false,
645
+ "autoincrement": false
646
+ },
647
+ "episode_count": {
648
+ "name": "episode_count",
649
+ "type": "integer",
650
+ "primaryKey": false,
651
+ "notNull": false,
652
+ "autoincrement": false
653
+ }
654
+ },
655
+ "indexes": {},
656
+ "foreignKeys": {
657
+ "seasons_show_id_shows_id_fk": {
658
+ "name": "seasons_show_id_shows_id_fk",
659
+ "tableFrom": "seasons",
660
+ "tableTo": "shows",
661
+ "columnsFrom": [
662
+ "show_id"
663
+ ],
664
+ "columnsTo": [
665
+ "id"
666
+ ],
667
+ "onDelete": "no action",
668
+ "onUpdate": "no action"
669
+ }
670
+ },
671
+ "compositePrimaryKeys": {},
672
+ "uniqueConstraints": {},
673
+ "checkConstraints": {}
674
+ },
675
+ "sessions": {
676
+ "name": "sessions",
677
+ "columns": {
678
+ "id": {
679
+ "name": "id",
680
+ "type": "text",
681
+ "primaryKey": true,
682
+ "notNull": true,
683
+ "autoincrement": false
684
+ },
685
+ "created_at": {
686
+ "name": "created_at",
687
+ "type": "integer",
688
+ "primaryKey": false,
689
+ "notNull": true,
690
+ "autoincrement": false
691
+ },
692
+ "expires_at": {
693
+ "name": "expires_at",
694
+ "type": "integer",
695
+ "primaryKey": false,
696
+ "notNull": true,
697
+ "autoincrement": false
698
+ },
699
+ "last_seen_at": {
700
+ "name": "last_seen_at",
701
+ "type": "integer",
702
+ "primaryKey": false,
703
+ "notNull": true,
704
+ "autoincrement": false
705
+ },
706
+ "user_agent": {
707
+ "name": "user_agent",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": false,
711
+ "autoincrement": false
712
+ }
713
+ },
714
+ "indexes": {},
715
+ "foreignKeys": {},
716
+ "compositePrimaryKeys": {},
717
+ "uniqueConstraints": {},
718
+ "checkConstraints": {}
719
+ },
720
+ "settings": {
721
+ "name": "settings",
722
+ "columns": {
723
+ "key": {
724
+ "name": "key",
725
+ "type": "text",
726
+ "primaryKey": true,
727
+ "notNull": true,
728
+ "autoincrement": false
729
+ },
730
+ "value": {
731
+ "name": "value",
732
+ "type": "text",
733
+ "primaryKey": false,
734
+ "notNull": true,
735
+ "autoincrement": false
736
+ },
737
+ "updated_at": {
738
+ "name": "updated_at",
739
+ "type": "integer",
740
+ "primaryKey": false,
741
+ "notNull": true,
742
+ "autoincrement": false
743
+ }
744
+ },
745
+ "indexes": {},
746
+ "foreignKeys": {},
747
+ "compositePrimaryKeys": {},
748
+ "uniqueConstraints": {},
749
+ "checkConstraints": {}
750
+ },
751
+ "shows": {
752
+ "name": "shows",
753
+ "columns": {
754
+ "id": {
755
+ "name": "id",
756
+ "type": "integer",
757
+ "primaryKey": true,
758
+ "notNull": true,
759
+ "autoincrement": true
760
+ },
761
+ "title": {
762
+ "name": "title",
763
+ "type": "text",
764
+ "primaryKey": false,
765
+ "notNull": true,
766
+ "autoincrement": false
767
+ },
768
+ "folder_path": {
769
+ "name": "folder_path",
770
+ "type": "text",
771
+ "primaryKey": false,
772
+ "notNull": true,
773
+ "autoincrement": false
774
+ },
775
+ "tmdb_id": {
776
+ "name": "tmdb_id",
777
+ "type": "integer",
778
+ "primaryKey": false,
779
+ "notNull": false,
780
+ "autoincrement": false
781
+ },
782
+ "year": {
783
+ "name": "year",
784
+ "type": "integer",
785
+ "primaryKey": false,
786
+ "notNull": false,
787
+ "autoincrement": false
788
+ },
789
+ "overview": {
790
+ "name": "overview",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false,
794
+ "autoincrement": false
795
+ },
796
+ "genres": {
797
+ "name": "genres",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": false,
801
+ "autoincrement": false
802
+ },
803
+ "rating": {
804
+ "name": "rating",
805
+ "type": "real",
806
+ "primaryKey": false,
807
+ "notNull": false,
808
+ "autoincrement": false
809
+ },
810
+ "poster_path": {
811
+ "name": "poster_path",
812
+ "type": "text",
813
+ "primaryKey": false,
814
+ "notNull": false,
815
+ "autoincrement": false
816
+ },
817
+ "backdrop_path": {
818
+ "name": "backdrop_path",
819
+ "type": "text",
820
+ "primaryKey": false,
821
+ "notNull": false,
822
+ "autoincrement": false
823
+ },
824
+ "created_at": {
825
+ "name": "created_at",
826
+ "type": "integer",
827
+ "primaryKey": false,
828
+ "notNull": true,
829
+ "autoincrement": false
830
+ },
831
+ "updated_at": {
832
+ "name": "updated_at",
833
+ "type": "integer",
834
+ "primaryKey": false,
835
+ "notNull": true,
836
+ "autoincrement": false
837
+ }
838
+ },
839
+ "indexes": {
840
+ "shows_folder_path_unique": {
841
+ "name": "shows_folder_path_unique",
842
+ "columns": [
843
+ "folder_path"
844
+ ],
845
+ "isUnique": true
846
+ }
847
+ },
848
+ "foreignKeys": {},
849
+ "compositePrimaryKeys": {},
850
+ "uniqueConstraints": {},
851
+ "checkConstraints": {}
852
+ },
853
+ "subtitles": {
854
+ "name": "subtitles",
855
+ "columns": {
856
+ "id": {
857
+ "name": "id",
858
+ "type": "integer",
859
+ "primaryKey": true,
860
+ "notNull": true,
861
+ "autoincrement": true
862
+ },
863
+ "movie_id": {
864
+ "name": "movie_id",
865
+ "type": "integer",
866
+ "primaryKey": false,
867
+ "notNull": false,
868
+ "autoincrement": false
869
+ },
870
+ "episode_id": {
871
+ "name": "episode_id",
872
+ "type": "integer",
873
+ "primaryKey": false,
874
+ "notNull": false,
875
+ "autoincrement": false
876
+ },
877
+ "file_path": {
878
+ "name": "file_path",
879
+ "type": "text",
880
+ "primaryKey": false,
881
+ "notNull": true,
882
+ "autoincrement": false
883
+ },
884
+ "language": {
885
+ "name": "language",
886
+ "type": "text",
887
+ "primaryKey": false,
888
+ "notNull": true,
889
+ "autoincrement": false
890
+ },
891
+ "format": {
892
+ "name": "format",
893
+ "type": "text",
894
+ "primaryKey": false,
895
+ "notNull": true,
896
+ "autoincrement": false
897
+ }
898
+ },
899
+ "indexes": {},
900
+ "foreignKeys": {
901
+ "subtitles_movie_id_movies_id_fk": {
902
+ "name": "subtitles_movie_id_movies_id_fk",
903
+ "tableFrom": "subtitles",
904
+ "tableTo": "movies",
905
+ "columnsFrom": [
906
+ "movie_id"
907
+ ],
908
+ "columnsTo": [
909
+ "id"
910
+ ],
911
+ "onDelete": "cascade",
912
+ "onUpdate": "no action"
913
+ },
914
+ "subtitles_episode_id_episodes_id_fk": {
915
+ "name": "subtitles_episode_id_episodes_id_fk",
916
+ "tableFrom": "subtitles",
917
+ "tableTo": "episodes",
918
+ "columnsFrom": [
919
+ "episode_id"
920
+ ],
921
+ "columnsTo": [
922
+ "id"
923
+ ],
924
+ "onDelete": "cascade",
925
+ "onUpdate": "no action"
926
+ }
927
+ },
928
+ "compositePrimaryKeys": {},
929
+ "uniqueConstraints": {},
930
+ "checkConstraints": {}
931
+ },
932
+ "watch_progress": {
933
+ "name": "watch_progress",
934
+ "columns": {
935
+ "id": {
936
+ "name": "id",
937
+ "type": "integer",
938
+ "primaryKey": true,
939
+ "notNull": true,
940
+ "autoincrement": true
941
+ },
942
+ "profile_id": {
943
+ "name": "profile_id",
944
+ "type": "integer",
945
+ "primaryKey": false,
946
+ "notNull": true,
947
+ "autoincrement": false
948
+ },
949
+ "movie_id": {
950
+ "name": "movie_id",
951
+ "type": "integer",
952
+ "primaryKey": false,
953
+ "notNull": false,
954
+ "autoincrement": false
955
+ },
956
+ "episode_id": {
957
+ "name": "episode_id",
958
+ "type": "integer",
959
+ "primaryKey": false,
960
+ "notNull": false,
961
+ "autoincrement": false
962
+ },
963
+ "current_time": {
964
+ "name": "current_time",
965
+ "type": "integer",
966
+ "primaryKey": false,
967
+ "notNull": true,
968
+ "autoincrement": false
969
+ },
970
+ "duration": {
971
+ "name": "duration",
972
+ "type": "integer",
973
+ "primaryKey": false,
974
+ "notNull": false,
975
+ "autoincrement": false
976
+ },
977
+ "updated_at": {
978
+ "name": "updated_at",
979
+ "type": "integer",
980
+ "primaryKey": false,
981
+ "notNull": true,
982
+ "autoincrement": false
983
+ }
984
+ },
985
+ "indexes": {
986
+ "watch_progress_profile_movie_idx": {
987
+ "name": "watch_progress_profile_movie_idx",
988
+ "columns": [
989
+ "profile_id",
990
+ "movie_id"
991
+ ],
992
+ "isUnique": true
993
+ },
994
+ "watch_progress_profile_episode_idx": {
995
+ "name": "watch_progress_profile_episode_idx",
996
+ "columns": [
997
+ "profile_id",
998
+ "episode_id"
999
+ ],
1000
+ "isUnique": true
1001
+ }
1002
+ },
1003
+ "foreignKeys": {
1004
+ "watch_progress_profile_id_profiles_id_fk": {
1005
+ "name": "watch_progress_profile_id_profiles_id_fk",
1006
+ "tableFrom": "watch_progress",
1007
+ "tableTo": "profiles",
1008
+ "columnsFrom": [
1009
+ "profile_id"
1010
+ ],
1011
+ "columnsTo": [
1012
+ "id"
1013
+ ],
1014
+ "onDelete": "cascade",
1015
+ "onUpdate": "no action"
1016
+ },
1017
+ "watch_progress_movie_id_movies_id_fk": {
1018
+ "name": "watch_progress_movie_id_movies_id_fk",
1019
+ "tableFrom": "watch_progress",
1020
+ "tableTo": "movies",
1021
+ "columnsFrom": [
1022
+ "movie_id"
1023
+ ],
1024
+ "columnsTo": [
1025
+ "id"
1026
+ ],
1027
+ "onDelete": "cascade",
1028
+ "onUpdate": "no action"
1029
+ },
1030
+ "watch_progress_episode_id_episodes_id_fk": {
1031
+ "name": "watch_progress_episode_id_episodes_id_fk",
1032
+ "tableFrom": "watch_progress",
1033
+ "tableTo": "episodes",
1034
+ "columnsFrom": [
1035
+ "episode_id"
1036
+ ],
1037
+ "columnsTo": [
1038
+ "id"
1039
+ ],
1040
+ "onDelete": "cascade",
1041
+ "onUpdate": "no action"
1042
+ }
1043
+ },
1044
+ "compositePrimaryKeys": {},
1045
+ "uniqueConstraints": {},
1046
+ "checkConstraints": {}
1047
+ }
1048
+ },
1049
+ "views": {},
1050
+ "enums": {},
1051
+ "_meta": {
1052
+ "schemas": {},
1053
+ "tables": {},
1054
+ "columns": {}
1055
+ },
1056
+ "internal": {
1057
+ "indexes": {}
1058
+ }
1059
+ }