jukebox-media-server 0.1.0 → 0.2.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,804 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "55e18af5-1502-499e-878c-97258d8f41ee",
5
+ "prevId": "b5a46c61-7012-40c4-8813-e120d69331e2",
6
+ "tables": {
7
+ "episodes": {
8
+ "name": "episodes",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "integer",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": true
16
+ },
17
+ "show_id": {
18
+ "name": "show_id",
19
+ "type": "integer",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "season_id": {
25
+ "name": "season_id",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "season_number": {
32
+ "name": "season_number",
33
+ "type": "integer",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "episode_number": {
39
+ "name": "episode_number",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "title": {
46
+ "name": "title",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "file_path": {
53
+ "name": "file_path",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "file_name": {
60
+ "name": "file_name",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false
65
+ },
66
+ "file_size": {
67
+ "name": "file_size",
68
+ "type": "integer",
69
+ "primaryKey": false,
70
+ "notNull": false,
71
+ "autoincrement": false
72
+ },
73
+ "extension": {
74
+ "name": "extension",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false,
78
+ "autoincrement": false
79
+ },
80
+ "tmdb_id": {
81
+ "name": "tmdb_id",
82
+ "type": "integer",
83
+ "primaryKey": false,
84
+ "notNull": false,
85
+ "autoincrement": false
86
+ },
87
+ "overview": {
88
+ "name": "overview",
89
+ "type": "text",
90
+ "primaryKey": false,
91
+ "notNull": false,
92
+ "autoincrement": false
93
+ },
94
+ "runtime": {
95
+ "name": "runtime",
96
+ "type": "integer",
97
+ "primaryKey": false,
98
+ "notNull": false,
99
+ "autoincrement": false
100
+ },
101
+ "still_path": {
102
+ "name": "still_path",
103
+ "type": "text",
104
+ "primaryKey": false,
105
+ "notNull": false,
106
+ "autoincrement": false
107
+ },
108
+ "created_at": {
109
+ "name": "created_at",
110
+ "type": "integer",
111
+ "primaryKey": false,
112
+ "notNull": true,
113
+ "autoincrement": false
114
+ },
115
+ "updated_at": {
116
+ "name": "updated_at",
117
+ "type": "integer",
118
+ "primaryKey": false,
119
+ "notNull": true,
120
+ "autoincrement": false
121
+ }
122
+ },
123
+ "indexes": {
124
+ "episodes_file_path_unique": {
125
+ "name": "episodes_file_path_unique",
126
+ "columns": [
127
+ "file_path"
128
+ ],
129
+ "isUnique": true
130
+ }
131
+ },
132
+ "foreignKeys": {
133
+ "episodes_show_id_shows_id_fk": {
134
+ "name": "episodes_show_id_shows_id_fk",
135
+ "tableFrom": "episodes",
136
+ "tableTo": "shows",
137
+ "columnsFrom": [
138
+ "show_id"
139
+ ],
140
+ "columnsTo": [
141
+ "id"
142
+ ],
143
+ "onDelete": "no action",
144
+ "onUpdate": "no action"
145
+ },
146
+ "episodes_season_id_seasons_id_fk": {
147
+ "name": "episodes_season_id_seasons_id_fk",
148
+ "tableFrom": "episodes",
149
+ "tableTo": "seasons",
150
+ "columnsFrom": [
151
+ "season_id"
152
+ ],
153
+ "columnsTo": [
154
+ "id"
155
+ ],
156
+ "onDelete": "no action",
157
+ "onUpdate": "no action"
158
+ }
159
+ },
160
+ "compositePrimaryKeys": {},
161
+ "uniqueConstraints": {},
162
+ "checkConstraints": {}
163
+ },
164
+ "favorites": {
165
+ "name": "favorites",
166
+ "columns": {
167
+ "id": {
168
+ "name": "id",
169
+ "type": "integer",
170
+ "primaryKey": true,
171
+ "notNull": true,
172
+ "autoincrement": true
173
+ },
174
+ "profile_id": {
175
+ "name": "profile_id",
176
+ "type": "integer",
177
+ "primaryKey": false,
178
+ "notNull": true,
179
+ "autoincrement": false
180
+ },
181
+ "movie_id": {
182
+ "name": "movie_id",
183
+ "type": "integer",
184
+ "primaryKey": false,
185
+ "notNull": false,
186
+ "autoincrement": false
187
+ },
188
+ "show_id": {
189
+ "name": "show_id",
190
+ "type": "integer",
191
+ "primaryKey": false,
192
+ "notNull": false,
193
+ "autoincrement": false
194
+ },
195
+ "created_at": {
196
+ "name": "created_at",
197
+ "type": "integer",
198
+ "primaryKey": false,
199
+ "notNull": true,
200
+ "autoincrement": false
201
+ }
202
+ },
203
+ "indexes": {
204
+ "favorites_profile_movie_idx": {
205
+ "name": "favorites_profile_movie_idx",
206
+ "columns": [
207
+ "profile_id",
208
+ "movie_id"
209
+ ],
210
+ "isUnique": true
211
+ },
212
+ "favorites_profile_show_idx": {
213
+ "name": "favorites_profile_show_idx",
214
+ "columns": [
215
+ "profile_id",
216
+ "show_id"
217
+ ],
218
+ "isUnique": true
219
+ }
220
+ },
221
+ "foreignKeys": {
222
+ "favorites_profile_id_profiles_id_fk": {
223
+ "name": "favorites_profile_id_profiles_id_fk",
224
+ "tableFrom": "favorites",
225
+ "tableTo": "profiles",
226
+ "columnsFrom": [
227
+ "profile_id"
228
+ ],
229
+ "columnsTo": [
230
+ "id"
231
+ ],
232
+ "onDelete": "cascade",
233
+ "onUpdate": "no action"
234
+ },
235
+ "favorites_movie_id_movies_id_fk": {
236
+ "name": "favorites_movie_id_movies_id_fk",
237
+ "tableFrom": "favorites",
238
+ "tableTo": "movies",
239
+ "columnsFrom": [
240
+ "movie_id"
241
+ ],
242
+ "columnsTo": [
243
+ "id"
244
+ ],
245
+ "onDelete": "cascade",
246
+ "onUpdate": "no action"
247
+ },
248
+ "favorites_show_id_shows_id_fk": {
249
+ "name": "favorites_show_id_shows_id_fk",
250
+ "tableFrom": "favorites",
251
+ "tableTo": "shows",
252
+ "columnsFrom": [
253
+ "show_id"
254
+ ],
255
+ "columnsTo": [
256
+ "id"
257
+ ],
258
+ "onDelete": "cascade",
259
+ "onUpdate": "no action"
260
+ }
261
+ },
262
+ "compositePrimaryKeys": {},
263
+ "uniqueConstraints": {},
264
+ "checkConstraints": {}
265
+ },
266
+ "libraries": {
267
+ "name": "libraries",
268
+ "columns": {
269
+ "id": {
270
+ "name": "id",
271
+ "type": "integer",
272
+ "primaryKey": true,
273
+ "notNull": true,
274
+ "autoincrement": true
275
+ },
276
+ "name": {
277
+ "name": "name",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": true,
281
+ "autoincrement": false
282
+ },
283
+ "path": {
284
+ "name": "path",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": true,
288
+ "autoincrement": false
289
+ },
290
+ "type": {
291
+ "name": "type",
292
+ "type": "text",
293
+ "primaryKey": false,
294
+ "notNull": true,
295
+ "autoincrement": false
296
+ },
297
+ "created_at": {
298
+ "name": "created_at",
299
+ "type": "integer",
300
+ "primaryKey": false,
301
+ "notNull": true,
302
+ "autoincrement": false
303
+ }
304
+ },
305
+ "indexes": {
306
+ "libraries_path_unique": {
307
+ "name": "libraries_path_unique",
308
+ "columns": [
309
+ "path"
310
+ ],
311
+ "isUnique": true
312
+ }
313
+ },
314
+ "foreignKeys": {},
315
+ "compositePrimaryKeys": {},
316
+ "uniqueConstraints": {},
317
+ "checkConstraints": {}
318
+ },
319
+ "movies": {
320
+ "name": "movies",
321
+ "columns": {
322
+ "id": {
323
+ "name": "id",
324
+ "type": "integer",
325
+ "primaryKey": true,
326
+ "notNull": true,
327
+ "autoincrement": true
328
+ },
329
+ "title": {
330
+ "name": "title",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true,
334
+ "autoincrement": false
335
+ },
336
+ "file_path": {
337
+ "name": "file_path",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": true,
341
+ "autoincrement": false
342
+ },
343
+ "file_name": {
344
+ "name": "file_name",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "autoincrement": false
349
+ },
350
+ "file_size": {
351
+ "name": "file_size",
352
+ "type": "integer",
353
+ "primaryKey": false,
354
+ "notNull": false,
355
+ "autoincrement": false
356
+ },
357
+ "extension": {
358
+ "name": "extension",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": false,
362
+ "autoincrement": false
363
+ },
364
+ "created_at": {
365
+ "name": "created_at",
366
+ "type": "integer",
367
+ "primaryKey": false,
368
+ "notNull": true,
369
+ "autoincrement": false
370
+ },
371
+ "updated_at": {
372
+ "name": "updated_at",
373
+ "type": "integer",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false
377
+ },
378
+ "tmdb_id": {
379
+ "name": "tmdb_id",
380
+ "type": "integer",
381
+ "primaryKey": false,
382
+ "notNull": false,
383
+ "autoincrement": false
384
+ },
385
+ "year": {
386
+ "name": "year",
387
+ "type": "integer",
388
+ "primaryKey": false,
389
+ "notNull": false,
390
+ "autoincrement": false
391
+ },
392
+ "overview": {
393
+ "name": "overview",
394
+ "type": "text",
395
+ "primaryKey": false,
396
+ "notNull": false,
397
+ "autoincrement": false
398
+ },
399
+ "runtime": {
400
+ "name": "runtime",
401
+ "type": "integer",
402
+ "primaryKey": false,
403
+ "notNull": false,
404
+ "autoincrement": false
405
+ },
406
+ "genres": {
407
+ "name": "genres",
408
+ "type": "text",
409
+ "primaryKey": false,
410
+ "notNull": false,
411
+ "autoincrement": false
412
+ },
413
+ "rating": {
414
+ "name": "rating",
415
+ "type": "real",
416
+ "primaryKey": false,
417
+ "notNull": false,
418
+ "autoincrement": false
419
+ },
420
+ "poster_path": {
421
+ "name": "poster_path",
422
+ "type": "text",
423
+ "primaryKey": false,
424
+ "notNull": false,
425
+ "autoincrement": false
426
+ },
427
+ "backdrop_path": {
428
+ "name": "backdrop_path",
429
+ "type": "text",
430
+ "primaryKey": false,
431
+ "notNull": false,
432
+ "autoincrement": false
433
+ },
434
+ "trailer_url": {
435
+ "name": "trailer_url",
436
+ "type": "text",
437
+ "primaryKey": false,
438
+ "notNull": false,
439
+ "autoincrement": false
440
+ }
441
+ },
442
+ "indexes": {
443
+ "movies_file_path_unique": {
444
+ "name": "movies_file_path_unique",
445
+ "columns": [
446
+ "file_path"
447
+ ],
448
+ "isUnique": true
449
+ }
450
+ },
451
+ "foreignKeys": {},
452
+ "compositePrimaryKeys": {},
453
+ "uniqueConstraints": {},
454
+ "checkConstraints": {}
455
+ },
456
+ "profiles": {
457
+ "name": "profiles",
458
+ "columns": {
459
+ "id": {
460
+ "name": "id",
461
+ "type": "integer",
462
+ "primaryKey": true,
463
+ "notNull": true,
464
+ "autoincrement": true
465
+ },
466
+ "name": {
467
+ "name": "name",
468
+ "type": "text",
469
+ "primaryKey": false,
470
+ "notNull": true,
471
+ "autoincrement": false
472
+ },
473
+ "emoji": {
474
+ "name": "emoji",
475
+ "type": "text",
476
+ "primaryKey": false,
477
+ "notNull": true,
478
+ "autoincrement": false
479
+ },
480
+ "created_at": {
481
+ "name": "created_at",
482
+ "type": "integer",
483
+ "primaryKey": false,
484
+ "notNull": true,
485
+ "autoincrement": false
486
+ }
487
+ },
488
+ "indexes": {
489
+ "profiles_name_unique": {
490
+ "name": "profiles_name_unique",
491
+ "columns": [
492
+ "name"
493
+ ],
494
+ "isUnique": true
495
+ }
496
+ },
497
+ "foreignKeys": {},
498
+ "compositePrimaryKeys": {},
499
+ "uniqueConstraints": {},
500
+ "checkConstraints": {}
501
+ },
502
+ "seasons": {
503
+ "name": "seasons",
504
+ "columns": {
505
+ "id": {
506
+ "name": "id",
507
+ "type": "integer",
508
+ "primaryKey": true,
509
+ "notNull": true,
510
+ "autoincrement": true
511
+ },
512
+ "show_id": {
513
+ "name": "show_id",
514
+ "type": "integer",
515
+ "primaryKey": false,
516
+ "notNull": true,
517
+ "autoincrement": false
518
+ },
519
+ "season_number": {
520
+ "name": "season_number",
521
+ "type": "integer",
522
+ "primaryKey": false,
523
+ "notNull": true,
524
+ "autoincrement": false
525
+ },
526
+ "name": {
527
+ "name": "name",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": false,
531
+ "autoincrement": false
532
+ },
533
+ "overview": {
534
+ "name": "overview",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": false,
538
+ "autoincrement": false
539
+ },
540
+ "poster_path": {
541
+ "name": "poster_path",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": false,
545
+ "autoincrement": false
546
+ },
547
+ "episode_count": {
548
+ "name": "episode_count",
549
+ "type": "integer",
550
+ "primaryKey": false,
551
+ "notNull": false,
552
+ "autoincrement": false
553
+ }
554
+ },
555
+ "indexes": {},
556
+ "foreignKeys": {
557
+ "seasons_show_id_shows_id_fk": {
558
+ "name": "seasons_show_id_shows_id_fk",
559
+ "tableFrom": "seasons",
560
+ "tableTo": "shows",
561
+ "columnsFrom": [
562
+ "show_id"
563
+ ],
564
+ "columnsTo": [
565
+ "id"
566
+ ],
567
+ "onDelete": "no action",
568
+ "onUpdate": "no action"
569
+ }
570
+ },
571
+ "compositePrimaryKeys": {},
572
+ "uniqueConstraints": {},
573
+ "checkConstraints": {}
574
+ },
575
+ "shows": {
576
+ "name": "shows",
577
+ "columns": {
578
+ "id": {
579
+ "name": "id",
580
+ "type": "integer",
581
+ "primaryKey": true,
582
+ "notNull": true,
583
+ "autoincrement": true
584
+ },
585
+ "title": {
586
+ "name": "title",
587
+ "type": "text",
588
+ "primaryKey": false,
589
+ "notNull": true,
590
+ "autoincrement": false
591
+ },
592
+ "folder_path": {
593
+ "name": "folder_path",
594
+ "type": "text",
595
+ "primaryKey": false,
596
+ "notNull": true,
597
+ "autoincrement": false
598
+ },
599
+ "tmdb_id": {
600
+ "name": "tmdb_id",
601
+ "type": "integer",
602
+ "primaryKey": false,
603
+ "notNull": false,
604
+ "autoincrement": false
605
+ },
606
+ "year": {
607
+ "name": "year",
608
+ "type": "integer",
609
+ "primaryKey": false,
610
+ "notNull": false,
611
+ "autoincrement": false
612
+ },
613
+ "overview": {
614
+ "name": "overview",
615
+ "type": "text",
616
+ "primaryKey": false,
617
+ "notNull": false,
618
+ "autoincrement": false
619
+ },
620
+ "genres": {
621
+ "name": "genres",
622
+ "type": "text",
623
+ "primaryKey": false,
624
+ "notNull": false,
625
+ "autoincrement": false
626
+ },
627
+ "rating": {
628
+ "name": "rating",
629
+ "type": "real",
630
+ "primaryKey": false,
631
+ "notNull": false,
632
+ "autoincrement": false
633
+ },
634
+ "poster_path": {
635
+ "name": "poster_path",
636
+ "type": "text",
637
+ "primaryKey": false,
638
+ "notNull": false,
639
+ "autoincrement": false
640
+ },
641
+ "backdrop_path": {
642
+ "name": "backdrop_path",
643
+ "type": "text",
644
+ "primaryKey": false,
645
+ "notNull": false,
646
+ "autoincrement": false
647
+ },
648
+ "created_at": {
649
+ "name": "created_at",
650
+ "type": "integer",
651
+ "primaryKey": false,
652
+ "notNull": true,
653
+ "autoincrement": false
654
+ },
655
+ "updated_at": {
656
+ "name": "updated_at",
657
+ "type": "integer",
658
+ "primaryKey": false,
659
+ "notNull": true,
660
+ "autoincrement": false
661
+ }
662
+ },
663
+ "indexes": {
664
+ "shows_folder_path_unique": {
665
+ "name": "shows_folder_path_unique",
666
+ "columns": [
667
+ "folder_path"
668
+ ],
669
+ "isUnique": true
670
+ }
671
+ },
672
+ "foreignKeys": {},
673
+ "compositePrimaryKeys": {},
674
+ "uniqueConstraints": {},
675
+ "checkConstraints": {}
676
+ },
677
+ "watch_progress": {
678
+ "name": "watch_progress",
679
+ "columns": {
680
+ "id": {
681
+ "name": "id",
682
+ "type": "integer",
683
+ "primaryKey": true,
684
+ "notNull": true,
685
+ "autoincrement": true
686
+ },
687
+ "profile_id": {
688
+ "name": "profile_id",
689
+ "type": "integer",
690
+ "primaryKey": false,
691
+ "notNull": true,
692
+ "autoincrement": false
693
+ },
694
+ "movie_id": {
695
+ "name": "movie_id",
696
+ "type": "integer",
697
+ "primaryKey": false,
698
+ "notNull": false,
699
+ "autoincrement": false
700
+ },
701
+ "episode_id": {
702
+ "name": "episode_id",
703
+ "type": "integer",
704
+ "primaryKey": false,
705
+ "notNull": false,
706
+ "autoincrement": false
707
+ },
708
+ "current_time": {
709
+ "name": "current_time",
710
+ "type": "integer",
711
+ "primaryKey": false,
712
+ "notNull": true,
713
+ "autoincrement": false
714
+ },
715
+ "duration": {
716
+ "name": "duration",
717
+ "type": "integer",
718
+ "primaryKey": false,
719
+ "notNull": false,
720
+ "autoincrement": false
721
+ },
722
+ "updated_at": {
723
+ "name": "updated_at",
724
+ "type": "integer",
725
+ "primaryKey": false,
726
+ "notNull": true,
727
+ "autoincrement": false
728
+ }
729
+ },
730
+ "indexes": {
731
+ "watch_progress_profile_movie_idx": {
732
+ "name": "watch_progress_profile_movie_idx",
733
+ "columns": [
734
+ "profile_id",
735
+ "movie_id"
736
+ ],
737
+ "isUnique": true
738
+ },
739
+ "watch_progress_profile_episode_idx": {
740
+ "name": "watch_progress_profile_episode_idx",
741
+ "columns": [
742
+ "profile_id",
743
+ "episode_id"
744
+ ],
745
+ "isUnique": true
746
+ }
747
+ },
748
+ "foreignKeys": {
749
+ "watch_progress_profile_id_profiles_id_fk": {
750
+ "name": "watch_progress_profile_id_profiles_id_fk",
751
+ "tableFrom": "watch_progress",
752
+ "tableTo": "profiles",
753
+ "columnsFrom": [
754
+ "profile_id"
755
+ ],
756
+ "columnsTo": [
757
+ "id"
758
+ ],
759
+ "onDelete": "cascade",
760
+ "onUpdate": "no action"
761
+ },
762
+ "watch_progress_movie_id_movies_id_fk": {
763
+ "name": "watch_progress_movie_id_movies_id_fk",
764
+ "tableFrom": "watch_progress",
765
+ "tableTo": "movies",
766
+ "columnsFrom": [
767
+ "movie_id"
768
+ ],
769
+ "columnsTo": [
770
+ "id"
771
+ ],
772
+ "onDelete": "no action",
773
+ "onUpdate": "no action"
774
+ },
775
+ "watch_progress_episode_id_episodes_id_fk": {
776
+ "name": "watch_progress_episode_id_episodes_id_fk",
777
+ "tableFrom": "watch_progress",
778
+ "tableTo": "episodes",
779
+ "columnsFrom": [
780
+ "episode_id"
781
+ ],
782
+ "columnsTo": [
783
+ "id"
784
+ ],
785
+ "onDelete": "no action",
786
+ "onUpdate": "no action"
787
+ }
788
+ },
789
+ "compositePrimaryKeys": {},
790
+ "uniqueConstraints": {},
791
+ "checkConstraints": {}
792
+ }
793
+ },
794
+ "views": {},
795
+ "enums": {},
796
+ "_meta": {
797
+ "schemas": {},
798
+ "tables": {},
799
+ "columns": {}
800
+ },
801
+ "internal": {
802
+ "indexes": {}
803
+ }
804
+ }