@everylanguage/shared-types 1.0.6 → 1.0.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.
- package/package.json +1 -1
- package/types/database.d.ts +1573 -212
package/types/database.d.ts
CHANGED
|
@@ -162,6 +162,106 @@ export type Database = {
|
|
|
162
162
|
}
|
|
163
163
|
];
|
|
164
164
|
};
|
|
165
|
+
bible_versions: {
|
|
166
|
+
Row: {
|
|
167
|
+
created_at: string | null;
|
|
168
|
+
id: string;
|
|
169
|
+
name: string;
|
|
170
|
+
structure_notes: string | null;
|
|
171
|
+
updated_at: string | null;
|
|
172
|
+
};
|
|
173
|
+
Insert: {
|
|
174
|
+
created_at?: string | null;
|
|
175
|
+
id?: string;
|
|
176
|
+
name: string;
|
|
177
|
+
structure_notes?: string | null;
|
|
178
|
+
updated_at?: string | null;
|
|
179
|
+
};
|
|
180
|
+
Update: {
|
|
181
|
+
created_at?: string | null;
|
|
182
|
+
id?: string;
|
|
183
|
+
name?: string;
|
|
184
|
+
structure_notes?: string | null;
|
|
185
|
+
updated_at?: string | null;
|
|
186
|
+
};
|
|
187
|
+
Relationships: [];
|
|
188
|
+
};
|
|
189
|
+
books: {
|
|
190
|
+
Row: {
|
|
191
|
+
bible_version_id: string;
|
|
192
|
+
book_number: number;
|
|
193
|
+
created_at: string | null;
|
|
194
|
+
global_order: number | null;
|
|
195
|
+
id: string;
|
|
196
|
+
name: string;
|
|
197
|
+
updated_at: string | null;
|
|
198
|
+
};
|
|
199
|
+
Insert: {
|
|
200
|
+
bible_version_id: string;
|
|
201
|
+
book_number: number;
|
|
202
|
+
created_at?: string | null;
|
|
203
|
+
global_order?: number | null;
|
|
204
|
+
id?: string;
|
|
205
|
+
name: string;
|
|
206
|
+
updated_at?: string | null;
|
|
207
|
+
};
|
|
208
|
+
Update: {
|
|
209
|
+
bible_version_id?: string;
|
|
210
|
+
book_number?: number;
|
|
211
|
+
created_at?: string | null;
|
|
212
|
+
global_order?: number | null;
|
|
213
|
+
id?: string;
|
|
214
|
+
name?: string;
|
|
215
|
+
updated_at?: string | null;
|
|
216
|
+
};
|
|
217
|
+
Relationships: [
|
|
218
|
+
{
|
|
219
|
+
foreignKeyName: "books_bible_version_id_fkey";
|
|
220
|
+
columns: ["bible_version_id"];
|
|
221
|
+
isOneToOne: false;
|
|
222
|
+
referencedRelation: "bible_versions";
|
|
223
|
+
referencedColumns: ["id"];
|
|
224
|
+
}
|
|
225
|
+
];
|
|
226
|
+
};
|
|
227
|
+
chapters: {
|
|
228
|
+
Row: {
|
|
229
|
+
book_id: string;
|
|
230
|
+
chapter_number: number;
|
|
231
|
+
created_at: string | null;
|
|
232
|
+
global_order: number | null;
|
|
233
|
+
id: string;
|
|
234
|
+
total_verses: number;
|
|
235
|
+
updated_at: string | null;
|
|
236
|
+
};
|
|
237
|
+
Insert: {
|
|
238
|
+
book_id: string;
|
|
239
|
+
chapter_number: number;
|
|
240
|
+
created_at?: string | null;
|
|
241
|
+
global_order?: number | null;
|
|
242
|
+
id?: string;
|
|
243
|
+
total_verses: number;
|
|
244
|
+
updated_at?: string | null;
|
|
245
|
+
};
|
|
246
|
+
Update: {
|
|
247
|
+
book_id?: string;
|
|
248
|
+
chapter_number?: number;
|
|
249
|
+
created_at?: string | null;
|
|
250
|
+
global_order?: number | null;
|
|
251
|
+
id?: string;
|
|
252
|
+
total_verses?: number;
|
|
253
|
+
updated_at?: string | null;
|
|
254
|
+
};
|
|
255
|
+
Relationships: [
|
|
256
|
+
{
|
|
257
|
+
foreignKeyName: "chapters_book_id_fkey";
|
|
258
|
+
columns: ["book_id"];
|
|
259
|
+
isOneToOne: false;
|
|
260
|
+
referencedRelation: "books";
|
|
261
|
+
referencedColumns: ["id"];
|
|
262
|
+
}
|
|
263
|
+
];
|
|
264
|
+
};
|
|
165
265
|
language_aliases: {
|
|
166
266
|
Row: {
|
|
167
267
|
alias_name: string;
|
|
@@ -485,6 +585,13 @@ export type Database = {
|
|
|
485
585
|
referencedRelation: "language_entities";
|
|
486
586
|
referencedColumns: ["id"];
|
|
487
587
|
},
|
|
588
|
+
{
|
|
589
|
+
foreignKeyName: "media_file_listens_media_file_id_fkey";
|
|
590
|
+
columns: ["media_file_id"];
|
|
591
|
+
isOneToOne: false;
|
|
592
|
+
referencedRelation: "media_files";
|
|
593
|
+
referencedColumns: ["id"];
|
|
594
|
+
},
|
|
488
595
|
{
|
|
489
596
|
foreignKeyName: "media_file_listens_session_id_fkey";
|
|
490
597
|
columns: ["session_id"];
|
|
@@ -494,290 +601,1141 @@ export type Database = {
|
|
|
494
601
|
}
|
|
495
602
|
];
|
|
496
603
|
};
|
|
497
|
-
|
|
604
|
+
media_files: {
|
|
498
605
|
Row: {
|
|
499
|
-
|
|
500
|
-
context_id: string | null;
|
|
501
|
-
context_type: string;
|
|
606
|
+
check_status: Database["public"]["Enums"]["check_status"] | null;
|
|
502
607
|
created_at: string | null;
|
|
503
|
-
|
|
608
|
+
created_by: string | null;
|
|
609
|
+
deleted_at: string | null;
|
|
610
|
+
duration_seconds: number | null;
|
|
611
|
+
file_size: number | null;
|
|
504
612
|
id: string;
|
|
505
|
-
|
|
613
|
+
language_entity_id: string;
|
|
614
|
+
local_path: string | null;
|
|
615
|
+
media_type: Database["public"]["Enums"]["media_type"];
|
|
616
|
+
project_id: string | null;
|
|
617
|
+
publish_status: Database["public"]["Enums"]["publish_status"] | null;
|
|
618
|
+
remote_path: string | null;
|
|
506
619
|
updated_at: string | null;
|
|
620
|
+
upload_status: Database["public"]["Enums"]["upload_status"] | null;
|
|
621
|
+
version: number | null;
|
|
507
622
|
};
|
|
508
623
|
Insert: {
|
|
509
|
-
|
|
510
|
-
context_id?: string | null;
|
|
511
|
-
context_type: string;
|
|
624
|
+
check_status?: Database["public"]["Enums"]["check_status"] | null;
|
|
512
625
|
created_at?: string | null;
|
|
513
|
-
|
|
626
|
+
created_by?: string | null;
|
|
627
|
+
deleted_at?: string | null;
|
|
628
|
+
duration_seconds?: number | null;
|
|
629
|
+
file_size?: number | null;
|
|
514
630
|
id?: string;
|
|
515
|
-
|
|
631
|
+
language_entity_id: string;
|
|
632
|
+
local_path?: string | null;
|
|
633
|
+
media_type: Database["public"]["Enums"]["media_type"];
|
|
634
|
+
project_id?: string | null;
|
|
635
|
+
publish_status?: Database["public"]["Enums"]["publish_status"] | null;
|
|
636
|
+
remote_path?: string | null;
|
|
516
637
|
updated_at?: string | null;
|
|
638
|
+
upload_status?: Database["public"]["Enums"]["upload_status"] | null;
|
|
639
|
+
version?: number | null;
|
|
517
640
|
};
|
|
518
641
|
Update: {
|
|
519
|
-
|
|
520
|
-
context_id?: string | null;
|
|
521
|
-
context_type?: string;
|
|
642
|
+
check_status?: Database["public"]["Enums"]["check_status"] | null;
|
|
522
643
|
created_at?: string | null;
|
|
523
|
-
|
|
644
|
+
created_by?: string | null;
|
|
645
|
+
deleted_at?: string | null;
|
|
646
|
+
duration_seconds?: number | null;
|
|
647
|
+
file_size?: number | null;
|
|
524
648
|
id?: string;
|
|
525
|
-
|
|
649
|
+
language_entity_id?: string;
|
|
650
|
+
local_path?: string | null;
|
|
651
|
+
media_type?: Database["public"]["Enums"]["media_type"];
|
|
652
|
+
project_id?: string | null;
|
|
653
|
+
publish_status?: Database["public"]["Enums"]["publish_status"] | null;
|
|
654
|
+
remote_path?: string | null;
|
|
526
655
|
updated_at?: string | null;
|
|
656
|
+
upload_status?: Database["public"]["Enums"]["upload_status"] | null;
|
|
657
|
+
version?: number | null;
|
|
527
658
|
};
|
|
528
659
|
Relationships: [
|
|
529
660
|
{
|
|
530
|
-
foreignKeyName: "
|
|
531
|
-
columns: ["
|
|
661
|
+
foreignKeyName: "media_files_created_by_fkey";
|
|
662
|
+
columns: ["created_by"];
|
|
532
663
|
isOneToOne: false;
|
|
533
|
-
referencedRelation: "
|
|
664
|
+
referencedRelation: "users";
|
|
665
|
+
referencedColumns: ["id"];
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
foreignKeyName: "media_files_language_entity_id_fkey";
|
|
669
|
+
columns: ["language_entity_id"];
|
|
670
|
+
isOneToOne: false;
|
|
671
|
+
referencedRelation: "language_entities";
|
|
672
|
+
referencedColumns: ["id"];
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
foreignKeyName: "media_files_project_id_fkey";
|
|
676
|
+
columns: ["project_id"];
|
|
677
|
+
isOneToOne: false;
|
|
678
|
+
referencedRelation: "projects";
|
|
534
679
|
referencedColumns: ["id"];
|
|
535
680
|
}
|
|
536
681
|
];
|
|
537
682
|
};
|
|
538
|
-
|
|
683
|
+
media_files_tags: {
|
|
539
684
|
Row: {
|
|
540
|
-
alias_name: string;
|
|
541
685
|
created_at: string | null;
|
|
542
|
-
|
|
686
|
+
created_by: string | null;
|
|
543
687
|
id: string;
|
|
544
|
-
|
|
688
|
+
media_file_id: string;
|
|
689
|
+
tag_id: string;
|
|
690
|
+
updated_at: string | null;
|
|
545
691
|
};
|
|
546
692
|
Insert: {
|
|
547
|
-
alias_name: string;
|
|
548
693
|
created_at?: string | null;
|
|
549
|
-
|
|
694
|
+
created_by?: string | null;
|
|
550
695
|
id?: string;
|
|
551
|
-
|
|
696
|
+
media_file_id: string;
|
|
697
|
+
tag_id: string;
|
|
698
|
+
updated_at?: string | null;
|
|
552
699
|
};
|
|
553
700
|
Update: {
|
|
554
|
-
alias_name?: string;
|
|
555
701
|
created_at?: string | null;
|
|
556
|
-
|
|
702
|
+
created_by?: string | null;
|
|
557
703
|
id?: string;
|
|
558
|
-
|
|
704
|
+
media_file_id?: string;
|
|
705
|
+
tag_id?: string;
|
|
706
|
+
updated_at?: string | null;
|
|
559
707
|
};
|
|
560
708
|
Relationships: [
|
|
561
709
|
{
|
|
562
|
-
foreignKeyName: "
|
|
563
|
-
columns: ["
|
|
710
|
+
foreignKeyName: "media_files_tags_created_by_fkey";
|
|
711
|
+
columns: ["created_by"];
|
|
564
712
|
isOneToOne: false;
|
|
565
|
-
referencedRelation: "
|
|
713
|
+
referencedRelation: "users";
|
|
714
|
+
referencedColumns: ["id"];
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
foreignKeyName: "media_files_tags_media_file_id_fkey";
|
|
718
|
+
columns: ["media_file_id"];
|
|
719
|
+
isOneToOne: false;
|
|
720
|
+
referencedRelation: "media_files";
|
|
721
|
+
referencedColumns: ["id"];
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
foreignKeyName: "media_files_tags_tag_id_fkey";
|
|
725
|
+
columns: ["tag_id"];
|
|
726
|
+
isOneToOne: false;
|
|
727
|
+
referencedRelation: "tags";
|
|
566
728
|
referencedColumns: ["id"];
|
|
567
729
|
}
|
|
568
730
|
];
|
|
569
731
|
};
|
|
570
|
-
|
|
732
|
+
media_files_targets: {
|
|
571
733
|
Row: {
|
|
572
734
|
created_at: string | null;
|
|
735
|
+
created_by: string | null;
|
|
573
736
|
deleted_at: string | null;
|
|
574
737
|
id: string;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
738
|
+
is_bible_audio: boolean | null;
|
|
739
|
+
media_file_id: string;
|
|
740
|
+
target_id: string;
|
|
741
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
742
|
+
updated_at: string | null;
|
|
578
743
|
};
|
|
579
744
|
Insert: {
|
|
580
745
|
created_at?: string | null;
|
|
746
|
+
created_by?: string | null;
|
|
581
747
|
deleted_at?: string | null;
|
|
582
748
|
id?: string;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
749
|
+
is_bible_audio?: boolean | null;
|
|
750
|
+
media_file_id: string;
|
|
751
|
+
target_id: string;
|
|
752
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
753
|
+
updated_at?: string | null;
|
|
586
754
|
};
|
|
587
755
|
Update: {
|
|
588
756
|
created_at?: string | null;
|
|
757
|
+
created_by?: string | null;
|
|
589
758
|
deleted_at?: string | null;
|
|
590
759
|
id?: string;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
760
|
+
is_bible_audio?: boolean | null;
|
|
761
|
+
media_file_id?: string;
|
|
762
|
+
target_id?: string;
|
|
763
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
764
|
+
updated_at?: string | null;
|
|
594
765
|
};
|
|
595
766
|
Relationships: [
|
|
596
767
|
{
|
|
597
|
-
foreignKeyName: "
|
|
598
|
-
columns: ["
|
|
768
|
+
foreignKeyName: "media_files_targets_created_by_fkey";
|
|
769
|
+
columns: ["created_by"];
|
|
599
770
|
isOneToOne: false;
|
|
600
|
-
referencedRelation: "
|
|
771
|
+
referencedRelation: "users";
|
|
772
|
+
referencedColumns: ["id"];
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
foreignKeyName: "media_files_targets_media_file_id_fkey";
|
|
776
|
+
columns: ["media_file_id"];
|
|
777
|
+
isOneToOne: false;
|
|
778
|
+
referencedRelation: "media_files";
|
|
601
779
|
referencedColumns: ["id"];
|
|
602
780
|
}
|
|
603
781
|
];
|
|
604
782
|
};
|
|
605
|
-
|
|
783
|
+
media_files_verses: {
|
|
606
784
|
Row: {
|
|
607
785
|
created_at: string | null;
|
|
608
786
|
created_by: string | null;
|
|
609
787
|
deleted_at: string | null;
|
|
610
|
-
|
|
788
|
+
duration_seconds: number;
|
|
611
789
|
id: string;
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
790
|
+
media_file_id: string;
|
|
791
|
+
start_time_seconds: number;
|
|
792
|
+
updated_at: string | null;
|
|
793
|
+
verse_id: string;
|
|
794
|
+
verse_text_id: string | null;
|
|
616
795
|
};
|
|
617
796
|
Insert: {
|
|
618
797
|
created_at?: string | null;
|
|
619
798
|
created_by?: string | null;
|
|
620
799
|
deleted_at?: string | null;
|
|
621
|
-
|
|
800
|
+
duration_seconds: number;
|
|
622
801
|
id?: string;
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
802
|
+
media_file_id: string;
|
|
803
|
+
start_time_seconds: number;
|
|
804
|
+
updated_at?: string | null;
|
|
805
|
+
verse_id: string;
|
|
806
|
+
verse_text_id?: string | null;
|
|
627
807
|
};
|
|
628
808
|
Update: {
|
|
629
809
|
created_at?: string | null;
|
|
630
810
|
created_by?: string | null;
|
|
631
811
|
deleted_at?: string | null;
|
|
632
|
-
|
|
812
|
+
duration_seconds?: number;
|
|
633
813
|
id?: string;
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
814
|
+
media_file_id?: string;
|
|
815
|
+
start_time_seconds?: number;
|
|
816
|
+
updated_at?: string | null;
|
|
817
|
+
verse_id?: string;
|
|
818
|
+
verse_text_id?: string | null;
|
|
638
819
|
};
|
|
639
820
|
Relationships: [
|
|
640
821
|
{
|
|
641
|
-
foreignKeyName: "
|
|
822
|
+
foreignKeyName: "media_files_verses_created_by_fkey";
|
|
642
823
|
columns: ["created_by"];
|
|
643
824
|
isOneToOne: false;
|
|
644
825
|
referencedRelation: "users";
|
|
645
826
|
referencedColumns: ["id"];
|
|
646
827
|
},
|
|
647
828
|
{
|
|
648
|
-
foreignKeyName: "
|
|
649
|
-
columns: ["
|
|
829
|
+
foreignKeyName: "media_files_verses_media_file_id_fkey";
|
|
830
|
+
columns: ["media_file_id"];
|
|
650
831
|
isOneToOne: false;
|
|
651
|
-
referencedRelation: "
|
|
832
|
+
referencedRelation: "media_files";
|
|
833
|
+
referencedColumns: ["id"];
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
foreignKeyName: "media_files_verses_verse_id_fkey";
|
|
837
|
+
columns: ["verse_id"];
|
|
838
|
+
isOneToOne: false;
|
|
839
|
+
referencedRelation: "verses";
|
|
840
|
+
referencedColumns: ["id"];
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
foreignKeyName: "media_files_verses_verse_text_id_fkey";
|
|
844
|
+
columns: ["verse_text_id"];
|
|
845
|
+
isOneToOne: false;
|
|
846
|
+
referencedRelation: "verse_texts";
|
|
652
847
|
referencedColumns: ["id"];
|
|
653
848
|
}
|
|
654
849
|
];
|
|
655
850
|
};
|
|
656
|
-
|
|
851
|
+
passages: {
|
|
657
852
|
Row: {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
853
|
+
book_id: string;
|
|
854
|
+
created_at: string | null;
|
|
855
|
+
created_by: string | null;
|
|
856
|
+
end_verse_id: string;
|
|
661
857
|
id: string;
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
parent_id: string | null;
|
|
665
|
-
region_id: string;
|
|
666
|
-
reviewed_at: string | null;
|
|
667
|
-
reviewed_by: string | null;
|
|
668
|
-
version: number;
|
|
858
|
+
start_verse_id: string;
|
|
859
|
+
updated_at: string | null;
|
|
669
860
|
};
|
|
670
861
|
Insert: {
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
862
|
+
book_id: string;
|
|
863
|
+
created_at?: string | null;
|
|
864
|
+
created_by?: string | null;
|
|
865
|
+
end_verse_id: string;
|
|
674
866
|
id?: string;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
parent_id?: string | null;
|
|
678
|
-
region_id: string;
|
|
679
|
-
reviewed_at?: string | null;
|
|
680
|
-
reviewed_by?: string | null;
|
|
681
|
-
version: number;
|
|
867
|
+
start_verse_id: string;
|
|
868
|
+
updated_at?: string | null;
|
|
682
869
|
};
|
|
683
870
|
Update: {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
871
|
+
book_id?: string;
|
|
872
|
+
created_at?: string | null;
|
|
873
|
+
created_by?: string | null;
|
|
874
|
+
end_verse_id?: string;
|
|
687
875
|
id?: string;
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
parent_id?: string | null;
|
|
691
|
-
region_id?: string;
|
|
692
|
-
reviewed_at?: string | null;
|
|
693
|
-
reviewed_by?: string | null;
|
|
694
|
-
version?: number;
|
|
876
|
+
start_verse_id?: string;
|
|
877
|
+
updated_at?: string | null;
|
|
695
878
|
};
|
|
696
879
|
Relationships: [
|
|
697
880
|
{
|
|
698
|
-
foreignKeyName: "
|
|
699
|
-
columns: ["
|
|
881
|
+
foreignKeyName: "passages_book_id_fkey";
|
|
882
|
+
columns: ["book_id"];
|
|
883
|
+
isOneToOne: false;
|
|
884
|
+
referencedRelation: "books";
|
|
885
|
+
referencedColumns: ["id"];
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
foreignKeyName: "passages_created_by_fkey";
|
|
889
|
+
columns: ["created_by"];
|
|
890
|
+
isOneToOne: false;
|
|
891
|
+
referencedRelation: "users";
|
|
892
|
+
referencedColumns: ["id"];
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
foreignKeyName: "passages_end_verse_id_fkey";
|
|
896
|
+
columns: ["end_verse_id"];
|
|
897
|
+
isOneToOne: false;
|
|
898
|
+
referencedRelation: "verses";
|
|
899
|
+
referencedColumns: ["id"];
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
foreignKeyName: "passages_start_verse_id_fkey";
|
|
903
|
+
columns: ["start_verse_id"];
|
|
904
|
+
isOneToOne: false;
|
|
905
|
+
referencedRelation: "verses";
|
|
906
|
+
referencedColumns: ["id"];
|
|
907
|
+
}
|
|
908
|
+
];
|
|
909
|
+
};
|
|
910
|
+
permissions: {
|
|
911
|
+
Row: {
|
|
912
|
+
allow_deny: boolean;
|
|
913
|
+
context_id: string | null;
|
|
914
|
+
context_type: string;
|
|
915
|
+
created_at: string | null;
|
|
916
|
+
description: string;
|
|
917
|
+
id: string;
|
|
918
|
+
role_id: string;
|
|
919
|
+
updated_at: string | null;
|
|
920
|
+
};
|
|
921
|
+
Insert: {
|
|
922
|
+
allow_deny?: boolean;
|
|
923
|
+
context_id?: string | null;
|
|
924
|
+
context_type: string;
|
|
925
|
+
created_at?: string | null;
|
|
926
|
+
description: string;
|
|
927
|
+
id?: string;
|
|
928
|
+
role_id: string;
|
|
929
|
+
updated_at?: string | null;
|
|
930
|
+
};
|
|
931
|
+
Update: {
|
|
932
|
+
allow_deny?: boolean;
|
|
933
|
+
context_id?: string | null;
|
|
934
|
+
context_type?: string;
|
|
935
|
+
created_at?: string | null;
|
|
936
|
+
description?: string;
|
|
937
|
+
id?: string;
|
|
938
|
+
role_id?: string;
|
|
939
|
+
updated_at?: string | null;
|
|
940
|
+
};
|
|
941
|
+
Relationships: [
|
|
942
|
+
{
|
|
943
|
+
foreignKeyName: "permissions_role_id_fkey";
|
|
944
|
+
columns: ["role_id"];
|
|
945
|
+
isOneToOne: false;
|
|
946
|
+
referencedRelation: "roles";
|
|
947
|
+
referencedColumns: ["id"];
|
|
948
|
+
}
|
|
949
|
+
];
|
|
950
|
+
};
|
|
951
|
+
playlist_groups: {
|
|
952
|
+
Row: {
|
|
953
|
+
created_at: string | null;
|
|
954
|
+
description: string | null;
|
|
955
|
+
id: string;
|
|
956
|
+
title: string;
|
|
957
|
+
updated_at: string | null;
|
|
958
|
+
user_id: string;
|
|
959
|
+
};
|
|
960
|
+
Insert: {
|
|
961
|
+
created_at?: string | null;
|
|
962
|
+
description?: string | null;
|
|
963
|
+
id?: string;
|
|
964
|
+
title: string;
|
|
965
|
+
updated_at?: string | null;
|
|
966
|
+
user_id: string;
|
|
967
|
+
};
|
|
968
|
+
Update: {
|
|
969
|
+
created_at?: string | null;
|
|
970
|
+
description?: string | null;
|
|
971
|
+
id?: string;
|
|
972
|
+
title?: string;
|
|
973
|
+
updated_at?: string | null;
|
|
974
|
+
user_id?: string;
|
|
975
|
+
};
|
|
976
|
+
Relationships: [
|
|
977
|
+
{
|
|
978
|
+
foreignKeyName: "playlist_groups_user_id_fkey";
|
|
979
|
+
columns: ["user_id"];
|
|
980
|
+
isOneToOne: false;
|
|
981
|
+
referencedRelation: "users";
|
|
982
|
+
referencedColumns: ["id"];
|
|
983
|
+
}
|
|
984
|
+
];
|
|
985
|
+
};
|
|
986
|
+
playlist_items: {
|
|
987
|
+
Row: {
|
|
988
|
+
created_at: string | null;
|
|
989
|
+
created_by: string | null;
|
|
990
|
+
id: string;
|
|
991
|
+
order_index: number;
|
|
992
|
+
playlist_id: string;
|
|
993
|
+
target_id: string;
|
|
994
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
995
|
+
updated_at: string | null;
|
|
996
|
+
};
|
|
997
|
+
Insert: {
|
|
998
|
+
created_at?: string | null;
|
|
999
|
+
created_by?: string | null;
|
|
1000
|
+
id?: string;
|
|
1001
|
+
order_index: number;
|
|
1002
|
+
playlist_id: string;
|
|
1003
|
+
target_id: string;
|
|
1004
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1005
|
+
updated_at?: string | null;
|
|
1006
|
+
};
|
|
1007
|
+
Update: {
|
|
1008
|
+
created_at?: string | null;
|
|
1009
|
+
created_by?: string | null;
|
|
1010
|
+
id?: string;
|
|
1011
|
+
order_index?: number;
|
|
1012
|
+
playlist_id?: string;
|
|
1013
|
+
target_id?: string;
|
|
1014
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
1015
|
+
updated_at?: string | null;
|
|
1016
|
+
};
|
|
1017
|
+
Relationships: [
|
|
1018
|
+
{
|
|
1019
|
+
foreignKeyName: "playlist_items_created_by_fkey";
|
|
1020
|
+
columns: ["created_by"];
|
|
1021
|
+
isOneToOne: false;
|
|
1022
|
+
referencedRelation: "users";
|
|
1023
|
+
referencedColumns: ["id"];
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
foreignKeyName: "playlist_items_playlist_id_fkey";
|
|
1027
|
+
columns: ["playlist_id"];
|
|
1028
|
+
isOneToOne: false;
|
|
1029
|
+
referencedRelation: "playlists";
|
|
1030
|
+
referencedColumns: ["id"];
|
|
1031
|
+
}
|
|
1032
|
+
];
|
|
1033
|
+
};
|
|
1034
|
+
playlists: {
|
|
1035
|
+
Row: {
|
|
1036
|
+
created_at: string | null;
|
|
1037
|
+
created_by: string | null;
|
|
1038
|
+
description: string | null;
|
|
1039
|
+
id: string;
|
|
1040
|
+
title: string;
|
|
1041
|
+
updated_at: string | null;
|
|
1042
|
+
user_id: string;
|
|
1043
|
+
};
|
|
1044
|
+
Insert: {
|
|
1045
|
+
created_at?: string | null;
|
|
1046
|
+
created_by?: string | null;
|
|
1047
|
+
description?: string | null;
|
|
1048
|
+
id?: string;
|
|
1049
|
+
title: string;
|
|
1050
|
+
updated_at?: string | null;
|
|
1051
|
+
user_id: string;
|
|
1052
|
+
};
|
|
1053
|
+
Update: {
|
|
1054
|
+
created_at?: string | null;
|
|
1055
|
+
created_by?: string | null;
|
|
1056
|
+
description?: string | null;
|
|
1057
|
+
id?: string;
|
|
1058
|
+
title?: string;
|
|
1059
|
+
updated_at?: string | null;
|
|
1060
|
+
user_id?: string;
|
|
1061
|
+
};
|
|
1062
|
+
Relationships: [
|
|
1063
|
+
{
|
|
1064
|
+
foreignKeyName: "playlists_created_by_fkey";
|
|
1065
|
+
columns: ["created_by"];
|
|
1066
|
+
isOneToOne: false;
|
|
1067
|
+
referencedRelation: "users";
|
|
1068
|
+
referencedColumns: ["id"];
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
foreignKeyName: "playlists_user_id_fkey";
|
|
1072
|
+
columns: ["user_id"];
|
|
1073
|
+
isOneToOne: false;
|
|
1074
|
+
referencedRelation: "users";
|
|
1075
|
+
referencedColumns: ["id"];
|
|
1076
|
+
}
|
|
1077
|
+
];
|
|
1078
|
+
};
|
|
1079
|
+
playlists_playlist_groups: {
|
|
1080
|
+
Row: {
|
|
1081
|
+
created_at: string | null;
|
|
1082
|
+
created_by: string | null;
|
|
1083
|
+
id: string;
|
|
1084
|
+
index: number;
|
|
1085
|
+
playlist_group_id: string;
|
|
1086
|
+
playlist_id: string;
|
|
1087
|
+
updated_at: string | null;
|
|
1088
|
+
};
|
|
1089
|
+
Insert: {
|
|
1090
|
+
created_at?: string | null;
|
|
1091
|
+
created_by?: string | null;
|
|
1092
|
+
id?: string;
|
|
1093
|
+
index: number;
|
|
1094
|
+
playlist_group_id: string;
|
|
1095
|
+
playlist_id: string;
|
|
1096
|
+
updated_at?: string | null;
|
|
1097
|
+
};
|
|
1098
|
+
Update: {
|
|
1099
|
+
created_at?: string | null;
|
|
1100
|
+
created_by?: string | null;
|
|
1101
|
+
id?: string;
|
|
1102
|
+
index?: number;
|
|
1103
|
+
playlist_group_id?: string;
|
|
1104
|
+
playlist_id?: string;
|
|
1105
|
+
updated_at?: string | null;
|
|
1106
|
+
};
|
|
1107
|
+
Relationships: [
|
|
1108
|
+
{
|
|
1109
|
+
foreignKeyName: "playlists_playlist_groups_created_by_fkey";
|
|
1110
|
+
columns: ["created_by"];
|
|
1111
|
+
isOneToOne: false;
|
|
1112
|
+
referencedRelation: "users";
|
|
1113
|
+
referencedColumns: ["id"];
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
foreignKeyName: "playlists_playlist_groups_playlist_group_id_fkey";
|
|
1117
|
+
columns: ["playlist_group_id"];
|
|
1118
|
+
isOneToOne: false;
|
|
1119
|
+
referencedRelation: "playlist_groups";
|
|
1120
|
+
referencedColumns: ["id"];
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
foreignKeyName: "playlists_playlist_groups_playlist_id_fkey";
|
|
1124
|
+
columns: ["playlist_id"];
|
|
1125
|
+
isOneToOne: false;
|
|
1126
|
+
referencedRelation: "playlists";
|
|
1127
|
+
referencedColumns: ["id"];
|
|
1128
|
+
}
|
|
1129
|
+
];
|
|
1130
|
+
};
|
|
1131
|
+
projects: {
|
|
1132
|
+
Row: {
|
|
1133
|
+
created_at: string | null;
|
|
1134
|
+
deleted_at: string | null;
|
|
1135
|
+
description: string | null;
|
|
1136
|
+
id: string;
|
|
1137
|
+
location: unknown | null;
|
|
1138
|
+
name: string;
|
|
1139
|
+
region_id: string | null;
|
|
1140
|
+
source_language_entity_id: string;
|
|
1141
|
+
target_language_entity_id: string;
|
|
1142
|
+
updated_at: string | null;
|
|
1143
|
+
};
|
|
1144
|
+
Insert: {
|
|
1145
|
+
created_at?: string | null;
|
|
1146
|
+
deleted_at?: string | null;
|
|
1147
|
+
description?: string | null;
|
|
1148
|
+
id?: string;
|
|
1149
|
+
location?: unknown | null;
|
|
1150
|
+
name: string;
|
|
1151
|
+
region_id?: string | null;
|
|
1152
|
+
source_language_entity_id: string;
|
|
1153
|
+
target_language_entity_id: string;
|
|
1154
|
+
updated_at?: string | null;
|
|
1155
|
+
};
|
|
1156
|
+
Update: {
|
|
1157
|
+
created_at?: string | null;
|
|
1158
|
+
deleted_at?: string | null;
|
|
1159
|
+
description?: string | null;
|
|
1160
|
+
id?: string;
|
|
1161
|
+
location?: unknown | null;
|
|
1162
|
+
name?: string;
|
|
1163
|
+
region_id?: string | null;
|
|
1164
|
+
source_language_entity_id?: string;
|
|
1165
|
+
target_language_entity_id?: string;
|
|
1166
|
+
updated_at?: string | null;
|
|
1167
|
+
};
|
|
1168
|
+
Relationships: [
|
|
1169
|
+
{
|
|
1170
|
+
foreignKeyName: "projects_region_id_fkey";
|
|
1171
|
+
columns: ["region_id"];
|
|
1172
|
+
isOneToOne: false;
|
|
1173
|
+
referencedRelation: "regions";
|
|
1174
|
+
referencedColumns: ["id"];
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
foreignKeyName: "projects_source_language_entity_id_fkey";
|
|
1178
|
+
columns: ["source_language_entity_id"];
|
|
1179
|
+
isOneToOne: false;
|
|
1180
|
+
referencedRelation: "language_entities";
|
|
1181
|
+
referencedColumns: ["id"];
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
foreignKeyName: "projects_target_language_entity_id_fkey";
|
|
1185
|
+
columns: ["target_language_entity_id"];
|
|
1186
|
+
isOneToOne: false;
|
|
1187
|
+
referencedRelation: "language_entities";
|
|
1188
|
+
referencedColumns: ["id"];
|
|
1189
|
+
}
|
|
1190
|
+
];
|
|
1191
|
+
};
|
|
1192
|
+
region_aliases: {
|
|
1193
|
+
Row: {
|
|
1194
|
+
alias_name: string;
|
|
1195
|
+
created_at: string | null;
|
|
1196
|
+
deleted_at: string | null;
|
|
1197
|
+
id: string;
|
|
1198
|
+
region_id: string;
|
|
1199
|
+
};
|
|
1200
|
+
Insert: {
|
|
1201
|
+
alias_name: string;
|
|
1202
|
+
created_at?: string | null;
|
|
1203
|
+
deleted_at?: string | null;
|
|
1204
|
+
id?: string;
|
|
1205
|
+
region_id: string;
|
|
1206
|
+
};
|
|
1207
|
+
Update: {
|
|
1208
|
+
alias_name?: string;
|
|
1209
|
+
created_at?: string | null;
|
|
1210
|
+
deleted_at?: string | null;
|
|
1211
|
+
id?: string;
|
|
1212
|
+
region_id?: string;
|
|
1213
|
+
};
|
|
1214
|
+
Relationships: [
|
|
1215
|
+
{
|
|
1216
|
+
foreignKeyName: "region_aliases_region_id_fkey";
|
|
1217
|
+
columns: ["region_id"];
|
|
1218
|
+
isOneToOne: false;
|
|
1219
|
+
referencedRelation: "regions";
|
|
1220
|
+
referencedColumns: ["id"];
|
|
1221
|
+
}
|
|
1222
|
+
];
|
|
1223
|
+
};
|
|
1224
|
+
region_properties: {
|
|
1225
|
+
Row: {
|
|
1226
|
+
created_at: string | null;
|
|
1227
|
+
deleted_at: string | null;
|
|
1228
|
+
id: string;
|
|
1229
|
+
key: string;
|
|
1230
|
+
region_id: string;
|
|
1231
|
+
value: string;
|
|
1232
|
+
};
|
|
1233
|
+
Insert: {
|
|
1234
|
+
created_at?: string | null;
|
|
1235
|
+
deleted_at?: string | null;
|
|
1236
|
+
id?: string;
|
|
1237
|
+
key: string;
|
|
1238
|
+
region_id: string;
|
|
1239
|
+
value: string;
|
|
1240
|
+
};
|
|
1241
|
+
Update: {
|
|
1242
|
+
created_at?: string | null;
|
|
1243
|
+
deleted_at?: string | null;
|
|
1244
|
+
id?: string;
|
|
1245
|
+
key?: string;
|
|
1246
|
+
region_id?: string;
|
|
1247
|
+
value?: string;
|
|
1248
|
+
};
|
|
1249
|
+
Relationships: [
|
|
1250
|
+
{
|
|
1251
|
+
foreignKeyName: "region_properties_region_id_fkey";
|
|
1252
|
+
columns: ["region_id"];
|
|
1253
|
+
isOneToOne: false;
|
|
1254
|
+
referencedRelation: "regions";
|
|
1255
|
+
referencedColumns: ["id"];
|
|
1256
|
+
}
|
|
1257
|
+
];
|
|
1258
|
+
};
|
|
1259
|
+
region_sources: {
|
|
1260
|
+
Row: {
|
|
1261
|
+
created_at: string | null;
|
|
1262
|
+
created_by: string | null;
|
|
1263
|
+
deleted_at: string | null;
|
|
1264
|
+
external_id: string | null;
|
|
1265
|
+
id: string;
|
|
1266
|
+
is_external: boolean;
|
|
1267
|
+
region_id: string;
|
|
1268
|
+
source: string;
|
|
1269
|
+
version: string | null;
|
|
1270
|
+
};
|
|
1271
|
+
Insert: {
|
|
1272
|
+
created_at?: string | null;
|
|
1273
|
+
created_by?: string | null;
|
|
1274
|
+
deleted_at?: string | null;
|
|
1275
|
+
external_id?: string | null;
|
|
1276
|
+
id?: string;
|
|
1277
|
+
is_external?: boolean;
|
|
1278
|
+
region_id: string;
|
|
1279
|
+
source: string;
|
|
1280
|
+
version?: string | null;
|
|
1281
|
+
};
|
|
1282
|
+
Update: {
|
|
1283
|
+
created_at?: string | null;
|
|
1284
|
+
created_by?: string | null;
|
|
1285
|
+
deleted_at?: string | null;
|
|
1286
|
+
external_id?: string | null;
|
|
1287
|
+
id?: string;
|
|
1288
|
+
is_external?: boolean;
|
|
1289
|
+
region_id?: string;
|
|
1290
|
+
source?: string;
|
|
1291
|
+
version?: string | null;
|
|
1292
|
+
};
|
|
1293
|
+
Relationships: [
|
|
1294
|
+
{
|
|
1295
|
+
foreignKeyName: "region_sources_created_by_fkey";
|
|
1296
|
+
columns: ["created_by"];
|
|
1297
|
+
isOneToOne: false;
|
|
1298
|
+
referencedRelation: "users";
|
|
1299
|
+
referencedColumns: ["id"];
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
foreignKeyName: "region_sources_region_id_fkey";
|
|
1303
|
+
columns: ["region_id"];
|
|
1304
|
+
isOneToOne: false;
|
|
1305
|
+
referencedRelation: "regions";
|
|
1306
|
+
referencedColumns: ["id"];
|
|
1307
|
+
}
|
|
1308
|
+
];
|
|
1309
|
+
};
|
|
1310
|
+
region_versions: {
|
|
1311
|
+
Row: {
|
|
1312
|
+
change_type: Database["public"]["Enums"]["change_type"];
|
|
1313
|
+
changed_at: string | null;
|
|
1314
|
+
changed_by: string;
|
|
1315
|
+
id: string;
|
|
1316
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
1317
|
+
name: string;
|
|
1318
|
+
parent_id: string | null;
|
|
1319
|
+
region_id: string;
|
|
1320
|
+
reviewed_at: string | null;
|
|
1321
|
+
reviewed_by: string | null;
|
|
1322
|
+
version: number;
|
|
1323
|
+
};
|
|
1324
|
+
Insert: {
|
|
1325
|
+
change_type: Database["public"]["Enums"]["change_type"];
|
|
1326
|
+
changed_at?: string | null;
|
|
1327
|
+
changed_by: string;
|
|
1328
|
+
id?: string;
|
|
1329
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
1330
|
+
name: string;
|
|
1331
|
+
parent_id?: string | null;
|
|
1332
|
+
region_id: string;
|
|
1333
|
+
reviewed_at?: string | null;
|
|
1334
|
+
reviewed_by?: string | null;
|
|
1335
|
+
version: number;
|
|
1336
|
+
};
|
|
1337
|
+
Update: {
|
|
1338
|
+
change_type?: Database["public"]["Enums"]["change_type"];
|
|
1339
|
+
changed_at?: string | null;
|
|
1340
|
+
changed_by?: string;
|
|
1341
|
+
id?: string;
|
|
1342
|
+
level?: Database["public"]["Enums"]["region_level"];
|
|
1343
|
+
name?: string;
|
|
1344
|
+
parent_id?: string | null;
|
|
1345
|
+
region_id?: string;
|
|
1346
|
+
reviewed_at?: string | null;
|
|
1347
|
+
reviewed_by?: string | null;
|
|
1348
|
+
version?: number;
|
|
1349
|
+
};
|
|
1350
|
+
Relationships: [
|
|
1351
|
+
{
|
|
1352
|
+
foreignKeyName: "region_versions_changed_by_fkey";
|
|
1353
|
+
columns: ["changed_by"];
|
|
1354
|
+
isOneToOne: false;
|
|
1355
|
+
referencedRelation: "users";
|
|
1356
|
+
referencedColumns: ["id"];
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
foreignKeyName: "region_versions_region_id_fkey";
|
|
1360
|
+
columns: ["region_id"];
|
|
1361
|
+
isOneToOne: false;
|
|
1362
|
+
referencedRelation: "regions";
|
|
1363
|
+
referencedColumns: ["id"];
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
foreignKeyName: "region_versions_reviewed_by_fkey";
|
|
1367
|
+
columns: ["reviewed_by"];
|
|
1368
|
+
isOneToOne: false;
|
|
1369
|
+
referencedRelation: "users";
|
|
1370
|
+
referencedColumns: ["id"];
|
|
1371
|
+
}
|
|
1372
|
+
];
|
|
1373
|
+
};
|
|
1374
|
+
regions: {
|
|
1375
|
+
Row: {
|
|
1376
|
+
boundary: unknown | null;
|
|
1377
|
+
created_at: string | null;
|
|
1378
|
+
deleted_at: string | null;
|
|
1379
|
+
id: string;
|
|
1380
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
1381
|
+
name: string;
|
|
1382
|
+
parent_id: string | null;
|
|
1383
|
+
updated_at: string | null;
|
|
1384
|
+
};
|
|
1385
|
+
Insert: {
|
|
1386
|
+
boundary?: unknown | null;
|
|
1387
|
+
created_at?: string | null;
|
|
1388
|
+
deleted_at?: string | null;
|
|
1389
|
+
id?: string;
|
|
1390
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
1391
|
+
name: string;
|
|
1392
|
+
parent_id?: string | null;
|
|
1393
|
+
updated_at?: string | null;
|
|
1394
|
+
};
|
|
1395
|
+
Update: {
|
|
1396
|
+
boundary?: unknown | null;
|
|
1397
|
+
created_at?: string | null;
|
|
1398
|
+
deleted_at?: string | null;
|
|
1399
|
+
id?: string;
|
|
1400
|
+
level?: Database["public"]["Enums"]["region_level"];
|
|
1401
|
+
name?: string;
|
|
1402
|
+
parent_id?: string | null;
|
|
1403
|
+
updated_at?: string | null;
|
|
1404
|
+
};
|
|
1405
|
+
Relationships: [
|
|
1406
|
+
{
|
|
1407
|
+
foreignKeyName: "regions_parent_id_fkey";
|
|
1408
|
+
columns: ["parent_id"];
|
|
1409
|
+
isOneToOne: false;
|
|
1410
|
+
referencedRelation: "regions";
|
|
1411
|
+
referencedColumns: ["id"];
|
|
1412
|
+
}
|
|
1413
|
+
];
|
|
1414
|
+
};
|
|
1415
|
+
roles: {
|
|
1416
|
+
Row: {
|
|
1417
|
+
created_at: string | null;
|
|
1418
|
+
id: string;
|
|
1419
|
+
name: string;
|
|
1420
|
+
updated_at: string | null;
|
|
1421
|
+
};
|
|
1422
|
+
Insert: {
|
|
1423
|
+
created_at?: string | null;
|
|
1424
|
+
id?: string;
|
|
1425
|
+
name: string;
|
|
1426
|
+
updated_at?: string | null;
|
|
1427
|
+
};
|
|
1428
|
+
Update: {
|
|
1429
|
+
created_at?: string | null;
|
|
1430
|
+
id?: string;
|
|
1431
|
+
name?: string;
|
|
1432
|
+
updated_at?: string | null;
|
|
1433
|
+
};
|
|
1434
|
+
Relationships: [];
|
|
1435
|
+
};
|
|
1436
|
+
segments: {
|
|
1437
|
+
Row: {
|
|
1438
|
+
created_at: string | null;
|
|
1439
|
+
created_by: string | null;
|
|
1440
|
+
deleted_at: string | null;
|
|
1441
|
+
id: string;
|
|
1442
|
+
local_path: string | null;
|
|
1443
|
+
remote_path: string | null;
|
|
1444
|
+
type: Database["public"]["Enums"]["segment_type"];
|
|
1445
|
+
updated_at: string | null;
|
|
1446
|
+
};
|
|
1447
|
+
Insert: {
|
|
1448
|
+
created_at?: string | null;
|
|
1449
|
+
created_by?: string | null;
|
|
1450
|
+
deleted_at?: string | null;
|
|
1451
|
+
id?: string;
|
|
1452
|
+
local_path?: string | null;
|
|
1453
|
+
remote_path?: string | null;
|
|
1454
|
+
type: Database["public"]["Enums"]["segment_type"];
|
|
1455
|
+
updated_at?: string | null;
|
|
1456
|
+
};
|
|
1457
|
+
Update: {
|
|
1458
|
+
created_at?: string | null;
|
|
1459
|
+
created_by?: string | null;
|
|
1460
|
+
deleted_at?: string | null;
|
|
1461
|
+
id?: string;
|
|
1462
|
+
local_path?: string | null;
|
|
1463
|
+
remote_path?: string | null;
|
|
1464
|
+
type?: Database["public"]["Enums"]["segment_type"];
|
|
1465
|
+
updated_at?: string | null;
|
|
1466
|
+
};
|
|
1467
|
+
Relationships: [
|
|
1468
|
+
{
|
|
1469
|
+
foreignKeyName: "segments_created_by_fkey";
|
|
1470
|
+
columns: ["created_by"];
|
|
1471
|
+
isOneToOne: false;
|
|
1472
|
+
referencedRelation: "users";
|
|
1473
|
+
referencedColumns: ["id"];
|
|
1474
|
+
}
|
|
1475
|
+
];
|
|
1476
|
+
};
|
|
1477
|
+
segments_targets: {
|
|
1478
|
+
Row: {
|
|
1479
|
+
created_at: string | null;
|
|
1480
|
+
created_by: string | null;
|
|
1481
|
+
deleted_at: string | null;
|
|
1482
|
+
id: string;
|
|
1483
|
+
is_bible_audio: boolean | null;
|
|
1484
|
+
segment_id: string;
|
|
1485
|
+
target_id: string;
|
|
1486
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1487
|
+
updated_at: string | null;
|
|
1488
|
+
};
|
|
1489
|
+
Insert: {
|
|
1490
|
+
created_at?: string | null;
|
|
1491
|
+
created_by?: string | null;
|
|
1492
|
+
deleted_at?: string | null;
|
|
1493
|
+
id?: string;
|
|
1494
|
+
is_bible_audio?: boolean | null;
|
|
1495
|
+
segment_id: string;
|
|
1496
|
+
target_id: string;
|
|
1497
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1498
|
+
updated_at?: string | null;
|
|
1499
|
+
};
|
|
1500
|
+
Update: {
|
|
1501
|
+
created_at?: string | null;
|
|
1502
|
+
created_by?: string | null;
|
|
1503
|
+
deleted_at?: string | null;
|
|
1504
|
+
id?: string;
|
|
1505
|
+
is_bible_audio?: boolean | null;
|
|
1506
|
+
segment_id?: string;
|
|
1507
|
+
target_id?: string;
|
|
1508
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
1509
|
+
updated_at?: string | null;
|
|
1510
|
+
};
|
|
1511
|
+
Relationships: [
|
|
1512
|
+
{
|
|
1513
|
+
foreignKeyName: "segments_targets_created_by_fkey";
|
|
1514
|
+
columns: ["created_by"];
|
|
700
1515
|
isOneToOne: false;
|
|
701
1516
|
referencedRelation: "users";
|
|
702
1517
|
referencedColumns: ["id"];
|
|
703
1518
|
},
|
|
704
1519
|
{
|
|
705
|
-
foreignKeyName: "
|
|
706
|
-
columns: ["
|
|
1520
|
+
foreignKeyName: "segments_targets_segment_id_fkey";
|
|
1521
|
+
columns: ["segment_id"];
|
|
1522
|
+
isOneToOne: false;
|
|
1523
|
+
referencedRelation: "segments";
|
|
1524
|
+
referencedColumns: ["id"];
|
|
1525
|
+
}
|
|
1526
|
+
];
|
|
1527
|
+
};
|
|
1528
|
+
sequences: {
|
|
1529
|
+
Row: {
|
|
1530
|
+
book_id: string;
|
|
1531
|
+
created_at: string | null;
|
|
1532
|
+
deleted_at: string | null;
|
|
1533
|
+
description: string | null;
|
|
1534
|
+
end_verse_id: string | null;
|
|
1535
|
+
id: string;
|
|
1536
|
+
is_bible_audio: boolean | null;
|
|
1537
|
+
name: string;
|
|
1538
|
+
project_id: string;
|
|
1539
|
+
start_verse_id: string | null;
|
|
1540
|
+
updated_at: string | null;
|
|
1541
|
+
};
|
|
1542
|
+
Insert: {
|
|
1543
|
+
book_id: string;
|
|
1544
|
+
created_at?: string | null;
|
|
1545
|
+
deleted_at?: string | null;
|
|
1546
|
+
description?: string | null;
|
|
1547
|
+
end_verse_id?: string | null;
|
|
1548
|
+
id?: string;
|
|
1549
|
+
is_bible_audio?: boolean | null;
|
|
1550
|
+
name: string;
|
|
1551
|
+
project_id: string;
|
|
1552
|
+
start_verse_id?: string | null;
|
|
1553
|
+
updated_at?: string | null;
|
|
1554
|
+
};
|
|
1555
|
+
Update: {
|
|
1556
|
+
book_id?: string;
|
|
1557
|
+
created_at?: string | null;
|
|
1558
|
+
deleted_at?: string | null;
|
|
1559
|
+
description?: string | null;
|
|
1560
|
+
end_verse_id?: string | null;
|
|
1561
|
+
id?: string;
|
|
1562
|
+
is_bible_audio?: boolean | null;
|
|
1563
|
+
name?: string;
|
|
1564
|
+
project_id?: string;
|
|
1565
|
+
start_verse_id?: string | null;
|
|
1566
|
+
updated_at?: string | null;
|
|
1567
|
+
};
|
|
1568
|
+
Relationships: [
|
|
1569
|
+
{
|
|
1570
|
+
foreignKeyName: "sequences_book_id_fkey";
|
|
1571
|
+
columns: ["book_id"];
|
|
1572
|
+
isOneToOne: false;
|
|
1573
|
+
referencedRelation: "books";
|
|
1574
|
+
referencedColumns: ["id"];
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
foreignKeyName: "sequences_end_verse_id_fkey";
|
|
1578
|
+
columns: ["end_verse_id"];
|
|
1579
|
+
isOneToOne: false;
|
|
1580
|
+
referencedRelation: "verses";
|
|
1581
|
+
referencedColumns: ["id"];
|
|
1582
|
+
},
|
|
1583
|
+
{
|
|
1584
|
+
foreignKeyName: "sequences_project_id_fkey";
|
|
1585
|
+
columns: ["project_id"];
|
|
1586
|
+
isOneToOne: false;
|
|
1587
|
+
referencedRelation: "projects";
|
|
1588
|
+
referencedColumns: ["id"];
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
foreignKeyName: "sequences_start_verse_id_fkey";
|
|
1592
|
+
columns: ["start_verse_id"];
|
|
1593
|
+
isOneToOne: false;
|
|
1594
|
+
referencedRelation: "verses";
|
|
1595
|
+
referencedColumns: ["id"];
|
|
1596
|
+
}
|
|
1597
|
+
];
|
|
1598
|
+
};
|
|
1599
|
+
sequences_segments: {
|
|
1600
|
+
Row: {
|
|
1601
|
+
created_at: string | null;
|
|
1602
|
+
id: string;
|
|
1603
|
+
is_deleted: boolean | null;
|
|
1604
|
+
is_numbered: boolean | null;
|
|
1605
|
+
segment_color: string | null;
|
|
1606
|
+
segment_id: string;
|
|
1607
|
+
segment_index: number;
|
|
1608
|
+
sequence_id: string;
|
|
1609
|
+
updated_at: string | null;
|
|
1610
|
+
};
|
|
1611
|
+
Insert: {
|
|
1612
|
+
created_at?: string | null;
|
|
1613
|
+
id?: string;
|
|
1614
|
+
is_deleted?: boolean | null;
|
|
1615
|
+
is_numbered?: boolean | null;
|
|
1616
|
+
segment_color?: string | null;
|
|
1617
|
+
segment_id: string;
|
|
1618
|
+
segment_index: number;
|
|
1619
|
+
sequence_id: string;
|
|
1620
|
+
updated_at?: string | null;
|
|
1621
|
+
};
|
|
1622
|
+
Update: {
|
|
1623
|
+
created_at?: string | null;
|
|
1624
|
+
id?: string;
|
|
1625
|
+
is_deleted?: boolean | null;
|
|
1626
|
+
is_numbered?: boolean | null;
|
|
1627
|
+
segment_color?: string | null;
|
|
1628
|
+
segment_id?: string;
|
|
1629
|
+
segment_index?: number;
|
|
1630
|
+
sequence_id?: string;
|
|
1631
|
+
updated_at?: string | null;
|
|
1632
|
+
};
|
|
1633
|
+
Relationships: [
|
|
1634
|
+
{
|
|
1635
|
+
foreignKeyName: "sequences_segments_segment_id_fkey";
|
|
1636
|
+
columns: ["segment_id"];
|
|
707
1637
|
isOneToOne: false;
|
|
708
|
-
referencedRelation: "
|
|
1638
|
+
referencedRelation: "segments";
|
|
709
1639
|
referencedColumns: ["id"];
|
|
710
1640
|
},
|
|
711
1641
|
{
|
|
712
|
-
foreignKeyName: "
|
|
713
|
-
columns: ["
|
|
1642
|
+
foreignKeyName: "sequences_segments_sequence_id_fkey";
|
|
1643
|
+
columns: ["sequence_id"];
|
|
714
1644
|
isOneToOne: false;
|
|
715
|
-
referencedRelation: "
|
|
1645
|
+
referencedRelation: "sequences";
|
|
716
1646
|
referencedColumns: ["id"];
|
|
717
1647
|
}
|
|
718
1648
|
];
|
|
719
1649
|
};
|
|
720
|
-
|
|
1650
|
+
sequences_tags: {
|
|
721
1651
|
Row: {
|
|
722
|
-
boundary: unknown | null;
|
|
723
1652
|
created_at: string | null;
|
|
724
|
-
deleted_at: string | null;
|
|
725
1653
|
id: string;
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
parent_id: string | null;
|
|
1654
|
+
sequence_id: string;
|
|
1655
|
+
tag_id: string;
|
|
729
1656
|
updated_at: string | null;
|
|
730
1657
|
};
|
|
731
1658
|
Insert: {
|
|
732
|
-
boundary?: unknown | null;
|
|
733
1659
|
created_at?: string | null;
|
|
734
|
-
deleted_at?: string | null;
|
|
735
1660
|
id?: string;
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
parent_id?: string | null;
|
|
1661
|
+
sequence_id: string;
|
|
1662
|
+
tag_id: string;
|
|
739
1663
|
updated_at?: string | null;
|
|
740
1664
|
};
|
|
741
1665
|
Update: {
|
|
742
|
-
boundary?: unknown | null;
|
|
743
1666
|
created_at?: string | null;
|
|
744
|
-
deleted_at?: string | null;
|
|
745
1667
|
id?: string;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
parent_id?: string | null;
|
|
1668
|
+
sequence_id?: string;
|
|
1669
|
+
tag_id?: string;
|
|
749
1670
|
updated_at?: string | null;
|
|
750
1671
|
};
|
|
751
1672
|
Relationships: [
|
|
752
1673
|
{
|
|
753
|
-
foreignKeyName: "
|
|
754
|
-
columns: ["
|
|
1674
|
+
foreignKeyName: "sequences_tags_sequence_id_fkey";
|
|
1675
|
+
columns: ["sequence_id"];
|
|
755
1676
|
isOneToOne: false;
|
|
756
|
-
referencedRelation: "
|
|
1677
|
+
referencedRelation: "sequences";
|
|
1678
|
+
referencedColumns: ["id"];
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
foreignKeyName: "sequences_tags_tag_id_fkey";
|
|
1682
|
+
columns: ["tag_id"];
|
|
1683
|
+
isOneToOne: false;
|
|
1684
|
+
referencedRelation: "tags";
|
|
757
1685
|
referencedColumns: ["id"];
|
|
758
1686
|
}
|
|
759
1687
|
];
|
|
760
1688
|
};
|
|
761
|
-
|
|
1689
|
+
sequences_targets: {
|
|
762
1690
|
Row: {
|
|
763
1691
|
created_at: string | null;
|
|
1692
|
+
created_by: string | null;
|
|
1693
|
+
deleted_at: string | null;
|
|
764
1694
|
id: string;
|
|
765
|
-
|
|
1695
|
+
is_bible_audio: boolean | null;
|
|
1696
|
+
sequence_id: string;
|
|
1697
|
+
target_id: string;
|
|
1698
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
766
1699
|
updated_at: string | null;
|
|
767
1700
|
};
|
|
768
1701
|
Insert: {
|
|
769
1702
|
created_at?: string | null;
|
|
1703
|
+
created_by?: string | null;
|
|
1704
|
+
deleted_at?: string | null;
|
|
770
1705
|
id?: string;
|
|
771
|
-
|
|
1706
|
+
is_bible_audio?: boolean | null;
|
|
1707
|
+
sequence_id: string;
|
|
1708
|
+
target_id: string;
|
|
1709
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
772
1710
|
updated_at?: string | null;
|
|
773
1711
|
};
|
|
774
1712
|
Update: {
|
|
775
1713
|
created_at?: string | null;
|
|
1714
|
+
created_by?: string | null;
|
|
1715
|
+
deleted_at?: string | null;
|
|
776
1716
|
id?: string;
|
|
777
|
-
|
|
1717
|
+
is_bible_audio?: boolean | null;
|
|
1718
|
+
sequence_id?: string;
|
|
1719
|
+
target_id?: string;
|
|
1720
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
778
1721
|
updated_at?: string | null;
|
|
779
1722
|
};
|
|
780
|
-
Relationships: [
|
|
1723
|
+
Relationships: [
|
|
1724
|
+
{
|
|
1725
|
+
foreignKeyName: "sequences_targets_created_by_fkey";
|
|
1726
|
+
columns: ["created_by"];
|
|
1727
|
+
isOneToOne: false;
|
|
1728
|
+
referencedRelation: "users";
|
|
1729
|
+
referencedColumns: ["id"];
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
foreignKeyName: "sequences_targets_sequence_id_fkey";
|
|
1733
|
+
columns: ["sequence_id"];
|
|
1734
|
+
isOneToOne: false;
|
|
1735
|
+
referencedRelation: "sequences";
|
|
1736
|
+
referencedColumns: ["id"];
|
|
1737
|
+
}
|
|
1738
|
+
];
|
|
781
1739
|
};
|
|
782
1740
|
sessions: {
|
|
783
1741
|
Row: {
|
|
@@ -895,136 +1853,325 @@ export type Database = {
|
|
|
895
1853
|
foreignKeyName: "share_opens_session_id_fkey";
|
|
896
1854
|
columns: ["session_id"];
|
|
897
1855
|
isOneToOne: false;
|
|
898
|
-
referencedRelation: "sessions";
|
|
1856
|
+
referencedRelation: "sessions";
|
|
1857
|
+
referencedColumns: ["id"];
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
foreignKeyName: "share_opens_share_id_fkey";
|
|
1861
|
+
columns: ["share_id"];
|
|
1862
|
+
isOneToOne: false;
|
|
1863
|
+
referencedRelation: "shares";
|
|
1864
|
+
referencedColumns: ["id"];
|
|
1865
|
+
}
|
|
1866
|
+
];
|
|
1867
|
+
};
|
|
1868
|
+
shares: {
|
|
1869
|
+
Row: {
|
|
1870
|
+
anon_user_id: string;
|
|
1871
|
+
created_at: string | null;
|
|
1872
|
+
device_id: string;
|
|
1873
|
+
id: string;
|
|
1874
|
+
language_entity_id: string;
|
|
1875
|
+
location: unknown | null;
|
|
1876
|
+
origin_share_id: string | null;
|
|
1877
|
+
session_id: string;
|
|
1878
|
+
share_entity_id: string;
|
|
1879
|
+
share_entity_type: Database["public"]["Enums"]["share_entity_type"];
|
|
1880
|
+
shared_at: string | null;
|
|
1881
|
+
};
|
|
1882
|
+
Insert: {
|
|
1883
|
+
anon_user_id: string;
|
|
1884
|
+
created_at?: string | null;
|
|
1885
|
+
device_id: string;
|
|
1886
|
+
id?: string;
|
|
1887
|
+
language_entity_id: string;
|
|
1888
|
+
location?: unknown | null;
|
|
1889
|
+
origin_share_id?: string | null;
|
|
1890
|
+
session_id: string;
|
|
1891
|
+
share_entity_id: string;
|
|
1892
|
+
share_entity_type: Database["public"]["Enums"]["share_entity_type"];
|
|
1893
|
+
shared_at?: string | null;
|
|
1894
|
+
};
|
|
1895
|
+
Update: {
|
|
1896
|
+
anon_user_id?: string;
|
|
1897
|
+
created_at?: string | null;
|
|
1898
|
+
device_id?: string;
|
|
1899
|
+
id?: string;
|
|
1900
|
+
language_entity_id?: string;
|
|
1901
|
+
location?: unknown | null;
|
|
1902
|
+
origin_share_id?: string | null;
|
|
1903
|
+
session_id?: string;
|
|
1904
|
+
share_entity_id?: string;
|
|
1905
|
+
share_entity_type?: Database["public"]["Enums"]["share_entity_type"];
|
|
1906
|
+
shared_at?: string | null;
|
|
1907
|
+
};
|
|
1908
|
+
Relationships: [
|
|
1909
|
+
{
|
|
1910
|
+
foreignKeyName: "shares_anon_user_id_fkey";
|
|
1911
|
+
columns: ["anon_user_id"];
|
|
1912
|
+
isOneToOne: false;
|
|
1913
|
+
referencedRelation: "users_anon";
|
|
1914
|
+
referencedColumns: ["id"];
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
foreignKeyName: "shares_language_entity_id_fkey";
|
|
1918
|
+
columns: ["language_entity_id"];
|
|
1919
|
+
isOneToOne: false;
|
|
1920
|
+
referencedRelation: "language_entities";
|
|
1921
|
+
referencedColumns: ["id"];
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
foreignKeyName: "shares_origin_share_id_fkey";
|
|
1925
|
+
columns: ["origin_share_id"];
|
|
1926
|
+
isOneToOne: false;
|
|
1927
|
+
referencedRelation: "shares";
|
|
1928
|
+
referencedColumns: ["id"];
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
foreignKeyName: "shares_session_id_fkey";
|
|
1932
|
+
columns: ["session_id"];
|
|
1933
|
+
isOneToOne: false;
|
|
1934
|
+
referencedRelation: "sessions";
|
|
1935
|
+
referencedColumns: ["id"];
|
|
1936
|
+
}
|
|
1937
|
+
];
|
|
1938
|
+
};
|
|
1939
|
+
spatial_ref_sys: {
|
|
1940
|
+
Row: {
|
|
1941
|
+
auth_name: string | null;
|
|
1942
|
+
auth_srid: number | null;
|
|
1943
|
+
proj4text: string | null;
|
|
1944
|
+
srid: number;
|
|
1945
|
+
srtext: string | null;
|
|
1946
|
+
};
|
|
1947
|
+
Insert: {
|
|
1948
|
+
auth_name?: string | null;
|
|
1949
|
+
auth_srid?: number | null;
|
|
1950
|
+
proj4text?: string | null;
|
|
1951
|
+
srid: number;
|
|
1952
|
+
srtext?: string | null;
|
|
1953
|
+
};
|
|
1954
|
+
Update: {
|
|
1955
|
+
auth_name?: string | null;
|
|
1956
|
+
auth_srid?: number | null;
|
|
1957
|
+
proj4text?: string | null;
|
|
1958
|
+
srid?: number;
|
|
1959
|
+
srtext?: string | null;
|
|
1960
|
+
};
|
|
1961
|
+
Relationships: [];
|
|
1962
|
+
};
|
|
1963
|
+
tags: {
|
|
1964
|
+
Row: {
|
|
1965
|
+
created_at: string | null;
|
|
1966
|
+
created_by: string | null;
|
|
1967
|
+
id: string;
|
|
1968
|
+
key: string;
|
|
1969
|
+
updated_at: string | null;
|
|
1970
|
+
value: string;
|
|
1971
|
+
};
|
|
1972
|
+
Insert: {
|
|
1973
|
+
created_at?: string | null;
|
|
1974
|
+
created_by?: string | null;
|
|
1975
|
+
id?: string;
|
|
1976
|
+
key: string;
|
|
1977
|
+
updated_at?: string | null;
|
|
1978
|
+
value: string;
|
|
1979
|
+
};
|
|
1980
|
+
Update: {
|
|
1981
|
+
created_at?: string | null;
|
|
1982
|
+
created_by?: string | null;
|
|
1983
|
+
id?: string;
|
|
1984
|
+
key?: string;
|
|
1985
|
+
updated_at?: string | null;
|
|
1986
|
+
value?: string;
|
|
1987
|
+
};
|
|
1988
|
+
Relationships: [
|
|
1989
|
+
{
|
|
1990
|
+
foreignKeyName: "tags_created_by_fkey";
|
|
1991
|
+
columns: ["created_by"];
|
|
1992
|
+
isOneToOne: false;
|
|
1993
|
+
referencedRelation: "users";
|
|
1994
|
+
referencedColumns: ["id"];
|
|
1995
|
+
}
|
|
1996
|
+
];
|
|
1997
|
+
};
|
|
1998
|
+
teams: {
|
|
1999
|
+
Row: {
|
|
2000
|
+
created_at: string | null;
|
|
2001
|
+
id: string;
|
|
2002
|
+
name: string;
|
|
2003
|
+
type: string | null;
|
|
2004
|
+
updated_at: string | null;
|
|
2005
|
+
};
|
|
2006
|
+
Insert: {
|
|
2007
|
+
created_at?: string | null;
|
|
2008
|
+
id?: string;
|
|
2009
|
+
name: string;
|
|
2010
|
+
type?: string | null;
|
|
2011
|
+
updated_at?: string | null;
|
|
2012
|
+
};
|
|
2013
|
+
Update: {
|
|
2014
|
+
created_at?: string | null;
|
|
2015
|
+
id?: string;
|
|
2016
|
+
name?: string;
|
|
2017
|
+
type?: string | null;
|
|
2018
|
+
updated_at?: string | null;
|
|
2019
|
+
};
|
|
2020
|
+
Relationships: [];
|
|
2021
|
+
};
|
|
2022
|
+
text_versions: {
|
|
2023
|
+
Row: {
|
|
2024
|
+
bible_version_id: string;
|
|
2025
|
+
created_at: string | null;
|
|
2026
|
+
created_by: string | null;
|
|
2027
|
+
deleted_at: string | null;
|
|
2028
|
+
id: string;
|
|
2029
|
+
language_id: string;
|
|
2030
|
+
name: string;
|
|
2031
|
+
text_version_source: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2032
|
+
updated_at: string | null;
|
|
2033
|
+
};
|
|
2034
|
+
Insert: {
|
|
2035
|
+
bible_version_id: string;
|
|
2036
|
+
created_at?: string | null;
|
|
2037
|
+
created_by?: string | null;
|
|
2038
|
+
deleted_at?: string | null;
|
|
2039
|
+
id?: string;
|
|
2040
|
+
language_id: string;
|
|
2041
|
+
name: string;
|
|
2042
|
+
text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2043
|
+
updated_at?: string | null;
|
|
2044
|
+
};
|
|
2045
|
+
Update: {
|
|
2046
|
+
bible_version_id?: string;
|
|
2047
|
+
created_at?: string | null;
|
|
2048
|
+
created_by?: string | null;
|
|
2049
|
+
deleted_at?: string | null;
|
|
2050
|
+
id?: string;
|
|
2051
|
+
language_id?: string;
|
|
2052
|
+
name?: string;
|
|
2053
|
+
text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2054
|
+
updated_at?: string | null;
|
|
2055
|
+
};
|
|
2056
|
+
Relationships: [
|
|
2057
|
+
{
|
|
2058
|
+
foreignKeyName: "text_versions_bible_version_id_fkey";
|
|
2059
|
+
columns: ["bible_version_id"];
|
|
2060
|
+
isOneToOne: false;
|
|
2061
|
+
referencedRelation: "bible_versions";
|
|
2062
|
+
referencedColumns: ["id"];
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
foreignKeyName: "text_versions_created_by_fkey";
|
|
2066
|
+
columns: ["created_by"];
|
|
2067
|
+
isOneToOne: false;
|
|
2068
|
+
referencedRelation: "users";
|
|
899
2069
|
referencedColumns: ["id"];
|
|
900
2070
|
},
|
|
901
2071
|
{
|
|
902
|
-
foreignKeyName: "
|
|
903
|
-
columns: ["
|
|
2072
|
+
foreignKeyName: "text_versions_language_id_fkey";
|
|
2073
|
+
columns: ["language_id"];
|
|
904
2074
|
isOneToOne: false;
|
|
905
|
-
referencedRelation: "
|
|
2075
|
+
referencedRelation: "language_entities";
|
|
906
2076
|
referencedColumns: ["id"];
|
|
907
2077
|
}
|
|
908
2078
|
];
|
|
909
2079
|
};
|
|
910
|
-
|
|
2080
|
+
user_bookmark_folders: {
|
|
911
2081
|
Row: {
|
|
912
|
-
|
|
2082
|
+
color: string | null;
|
|
913
2083
|
created_at: string | null;
|
|
914
|
-
device_id: string;
|
|
915
2084
|
id: string;
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
share_entity_id: string;
|
|
921
|
-
share_entity_type: Database["public"]["Enums"]["share_entity_type"];
|
|
922
|
-
shared_at: string | null;
|
|
2085
|
+
name: string;
|
|
2086
|
+
parent_folder_id: string | null;
|
|
2087
|
+
updated_at: string | null;
|
|
2088
|
+
user_id: string;
|
|
923
2089
|
};
|
|
924
2090
|
Insert: {
|
|
925
|
-
|
|
2091
|
+
color?: string | null;
|
|
926
2092
|
created_at?: string | null;
|
|
927
|
-
device_id: string;
|
|
928
2093
|
id?: string;
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
share_entity_id: string;
|
|
934
|
-
share_entity_type: Database["public"]["Enums"]["share_entity_type"];
|
|
935
|
-
shared_at?: string | null;
|
|
2094
|
+
name: string;
|
|
2095
|
+
parent_folder_id?: string | null;
|
|
2096
|
+
updated_at?: string | null;
|
|
2097
|
+
user_id: string;
|
|
936
2098
|
};
|
|
937
2099
|
Update: {
|
|
938
|
-
|
|
2100
|
+
color?: string | null;
|
|
939
2101
|
created_at?: string | null;
|
|
940
|
-
device_id?: string;
|
|
941
2102
|
id?: string;
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
share_entity_id?: string;
|
|
947
|
-
share_entity_type?: Database["public"]["Enums"]["share_entity_type"];
|
|
948
|
-
shared_at?: string | null;
|
|
2103
|
+
name?: string;
|
|
2104
|
+
parent_folder_id?: string | null;
|
|
2105
|
+
updated_at?: string | null;
|
|
2106
|
+
user_id?: string;
|
|
949
2107
|
};
|
|
950
2108
|
Relationships: [
|
|
951
2109
|
{
|
|
952
|
-
foreignKeyName: "
|
|
953
|
-
columns: ["
|
|
954
|
-
isOneToOne: false;
|
|
955
|
-
referencedRelation: "users_anon";
|
|
956
|
-
referencedColumns: ["id"];
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
foreignKeyName: "shares_language_entity_id_fkey";
|
|
960
|
-
columns: ["language_entity_id"];
|
|
961
|
-
isOneToOne: false;
|
|
962
|
-
referencedRelation: "language_entities";
|
|
963
|
-
referencedColumns: ["id"];
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
foreignKeyName: "shares_origin_share_id_fkey";
|
|
967
|
-
columns: ["origin_share_id"];
|
|
2110
|
+
foreignKeyName: "user_bookmark_folders_parent_folder_id_fkey";
|
|
2111
|
+
columns: ["parent_folder_id"];
|
|
968
2112
|
isOneToOne: false;
|
|
969
|
-
referencedRelation: "
|
|
2113
|
+
referencedRelation: "user_bookmark_folders";
|
|
970
2114
|
referencedColumns: ["id"];
|
|
971
2115
|
},
|
|
972
2116
|
{
|
|
973
|
-
foreignKeyName: "
|
|
974
|
-
columns: ["
|
|
2117
|
+
foreignKeyName: "user_bookmark_folders_user_id_fkey";
|
|
2118
|
+
columns: ["user_id"];
|
|
975
2119
|
isOneToOne: false;
|
|
976
|
-
referencedRelation: "
|
|
2120
|
+
referencedRelation: "users";
|
|
977
2121
|
referencedColumns: ["id"];
|
|
978
2122
|
}
|
|
979
2123
|
];
|
|
980
2124
|
};
|
|
981
|
-
|
|
982
|
-
Row: {
|
|
983
|
-
auth_name: string | null;
|
|
984
|
-
auth_srid: number | null;
|
|
985
|
-
proj4text: string | null;
|
|
986
|
-
srid: number;
|
|
987
|
-
srtext: string | null;
|
|
988
|
-
};
|
|
989
|
-
Insert: {
|
|
990
|
-
auth_name?: string | null;
|
|
991
|
-
auth_srid?: number | null;
|
|
992
|
-
proj4text?: string | null;
|
|
993
|
-
srid: number;
|
|
994
|
-
srtext?: string | null;
|
|
995
|
-
};
|
|
996
|
-
Update: {
|
|
997
|
-
auth_name?: string | null;
|
|
998
|
-
auth_srid?: number | null;
|
|
999
|
-
proj4text?: string | null;
|
|
1000
|
-
srid?: number;
|
|
1001
|
-
srtext?: string | null;
|
|
1002
|
-
};
|
|
1003
|
-
Relationships: [];
|
|
1004
|
-
};
|
|
1005
|
-
teams: {
|
|
2125
|
+
user_bookmarks: {
|
|
1006
2126
|
Row: {
|
|
2127
|
+
bookmark_folder_id: string | null;
|
|
2128
|
+
color: string | null;
|
|
1007
2129
|
created_at: string | null;
|
|
1008
2130
|
id: string;
|
|
1009
|
-
|
|
1010
|
-
|
|
2131
|
+
note: string | null;
|
|
2132
|
+
target_id: string;
|
|
2133
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1011
2134
|
updated_at: string | null;
|
|
2135
|
+
user_id: string;
|
|
1012
2136
|
};
|
|
1013
2137
|
Insert: {
|
|
2138
|
+
bookmark_folder_id?: string | null;
|
|
2139
|
+
color?: string | null;
|
|
1014
2140
|
created_at?: string | null;
|
|
1015
2141
|
id?: string;
|
|
1016
|
-
|
|
1017
|
-
|
|
2142
|
+
note?: string | null;
|
|
2143
|
+
target_id: string;
|
|
2144
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1018
2145
|
updated_at?: string | null;
|
|
2146
|
+
user_id: string;
|
|
1019
2147
|
};
|
|
1020
2148
|
Update: {
|
|
2149
|
+
bookmark_folder_id?: string | null;
|
|
2150
|
+
color?: string | null;
|
|
1021
2151
|
created_at?: string | null;
|
|
1022
2152
|
id?: string;
|
|
1023
|
-
|
|
1024
|
-
|
|
2153
|
+
note?: string | null;
|
|
2154
|
+
target_id?: string;
|
|
2155
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
1025
2156
|
updated_at?: string | null;
|
|
2157
|
+
user_id?: string;
|
|
1026
2158
|
};
|
|
1027
|
-
Relationships: [
|
|
2159
|
+
Relationships: [
|
|
2160
|
+
{
|
|
2161
|
+
foreignKeyName: "user_bookmarks_bookmark_folder_id_fkey";
|
|
2162
|
+
columns: ["bookmark_folder_id"];
|
|
2163
|
+
isOneToOne: false;
|
|
2164
|
+
referencedRelation: "user_bookmark_folders";
|
|
2165
|
+
referencedColumns: ["id"];
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
foreignKeyName: "user_bookmarks_user_id_fkey";
|
|
2169
|
+
columns: ["user_id"];
|
|
2170
|
+
isOneToOne: false;
|
|
2171
|
+
referencedRelation: "users";
|
|
2172
|
+
referencedColumns: ["id"];
|
|
2173
|
+
}
|
|
2174
|
+
];
|
|
1028
2175
|
};
|
|
1029
2176
|
user_contributions: {
|
|
1030
2177
|
Row: {
|
|
@@ -1080,6 +2227,86 @@ export type Database = {
|
|
|
1080
2227
|
}
|
|
1081
2228
|
];
|
|
1082
2229
|
};
|
|
2230
|
+
user_custom_texts: {
|
|
2231
|
+
Row: {
|
|
2232
|
+
created_at: string | null;
|
|
2233
|
+
created_by: string;
|
|
2234
|
+
formatting: Json | null;
|
|
2235
|
+
id: string;
|
|
2236
|
+
text: string;
|
|
2237
|
+
updated_at: string | null;
|
|
2238
|
+
};
|
|
2239
|
+
Insert: {
|
|
2240
|
+
created_at?: string | null;
|
|
2241
|
+
created_by: string;
|
|
2242
|
+
formatting?: Json | null;
|
|
2243
|
+
id?: string;
|
|
2244
|
+
text: string;
|
|
2245
|
+
updated_at?: string | null;
|
|
2246
|
+
};
|
|
2247
|
+
Update: {
|
|
2248
|
+
created_at?: string | null;
|
|
2249
|
+
created_by?: string;
|
|
2250
|
+
formatting?: Json | null;
|
|
2251
|
+
id?: string;
|
|
2252
|
+
text?: string;
|
|
2253
|
+
updated_at?: string | null;
|
|
2254
|
+
};
|
|
2255
|
+
Relationships: [
|
|
2256
|
+
{
|
|
2257
|
+
foreignKeyName: "user_custom_texts_created_by_fkey";
|
|
2258
|
+
columns: ["created_by"];
|
|
2259
|
+
isOneToOne: false;
|
|
2260
|
+
referencedRelation: "users";
|
|
2261
|
+
referencedColumns: ["id"];
|
|
2262
|
+
}
|
|
2263
|
+
];
|
|
2264
|
+
};
|
|
2265
|
+
user_positions: {
|
|
2266
|
+
Row: {
|
|
2267
|
+
bookmark_folder_id: string | null;
|
|
2268
|
+
created_at: string | null;
|
|
2269
|
+
id: string;
|
|
2270
|
+
target_id: string;
|
|
2271
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
2272
|
+
updated_at: string | null;
|
|
2273
|
+
user_id: string;
|
|
2274
|
+
};
|
|
2275
|
+
Insert: {
|
|
2276
|
+
bookmark_folder_id?: string | null;
|
|
2277
|
+
created_at?: string | null;
|
|
2278
|
+
id?: string;
|
|
2279
|
+
target_id: string;
|
|
2280
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
2281
|
+
updated_at?: string | null;
|
|
2282
|
+
user_id: string;
|
|
2283
|
+
};
|
|
2284
|
+
Update: {
|
|
2285
|
+
bookmark_folder_id?: string | null;
|
|
2286
|
+
created_at?: string | null;
|
|
2287
|
+
id?: string;
|
|
2288
|
+
target_id?: string;
|
|
2289
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
2290
|
+
updated_at?: string | null;
|
|
2291
|
+
user_id?: string;
|
|
2292
|
+
};
|
|
2293
|
+
Relationships: [
|
|
2294
|
+
{
|
|
2295
|
+
foreignKeyName: "user_positions_bookmark_folder_id_fkey";
|
|
2296
|
+
columns: ["bookmark_folder_id"];
|
|
2297
|
+
isOneToOne: false;
|
|
2298
|
+
referencedRelation: "user_bookmark_folders";
|
|
2299
|
+
referencedColumns: ["id"];
|
|
2300
|
+
},
|
|
2301
|
+
{
|
|
2302
|
+
foreignKeyName: "user_positions_user_id_fkey";
|
|
2303
|
+
columns: ["user_id"];
|
|
2304
|
+
isOneToOne: false;
|
|
2305
|
+
referencedRelation: "users";
|
|
2306
|
+
referencedColumns: ["id"];
|
|
2307
|
+
}
|
|
2308
|
+
];
|
|
2309
|
+
};
|
|
1083
2310
|
user_roles: {
|
|
1084
2311
|
Row: {
|
|
1085
2312
|
context_id: string | null;
|
|
@@ -1248,6 +2475,103 @@ export type Database = {
|
|
|
1248
2475
|
isOneToOne: false;
|
|
1249
2476
|
referencedRelation: "sessions";
|
|
1250
2477
|
referencedColumns: ["id"];
|
|
2478
|
+
},
|
|
2479
|
+
{
|
|
2480
|
+
foreignKeyName: "verse_listens_verse_id_fkey";
|
|
2481
|
+
columns: ["verse_id"];
|
|
2482
|
+
isOneToOne: false;
|
|
2483
|
+
referencedRelation: "verses";
|
|
2484
|
+
referencedColumns: ["id"];
|
|
2485
|
+
}
|
|
2486
|
+
];
|
|
2487
|
+
};
|
|
2488
|
+
verse_texts: {
|
|
2489
|
+
Row: {
|
|
2490
|
+
created_at: string | null;
|
|
2491
|
+
created_by: string | null;
|
|
2492
|
+
deleted_at: string | null;
|
|
2493
|
+
id: string;
|
|
2494
|
+
text_version_id: string;
|
|
2495
|
+
updated_at: string | null;
|
|
2496
|
+
verse_id: string;
|
|
2497
|
+
verse_text: string;
|
|
2498
|
+
};
|
|
2499
|
+
Insert: {
|
|
2500
|
+
created_at?: string | null;
|
|
2501
|
+
created_by?: string | null;
|
|
2502
|
+
deleted_at?: string | null;
|
|
2503
|
+
id?: string;
|
|
2504
|
+
text_version_id: string;
|
|
2505
|
+
updated_at?: string | null;
|
|
2506
|
+
verse_id: string;
|
|
2507
|
+
verse_text: string;
|
|
2508
|
+
};
|
|
2509
|
+
Update: {
|
|
2510
|
+
created_at?: string | null;
|
|
2511
|
+
created_by?: string | null;
|
|
2512
|
+
deleted_at?: string | null;
|
|
2513
|
+
id?: string;
|
|
2514
|
+
text_version_id?: string;
|
|
2515
|
+
updated_at?: string | null;
|
|
2516
|
+
verse_id?: string;
|
|
2517
|
+
verse_text?: string;
|
|
2518
|
+
};
|
|
2519
|
+
Relationships: [
|
|
2520
|
+
{
|
|
2521
|
+
foreignKeyName: "verse_texts_created_by_fkey";
|
|
2522
|
+
columns: ["created_by"];
|
|
2523
|
+
isOneToOne: false;
|
|
2524
|
+
referencedRelation: "users";
|
|
2525
|
+
referencedColumns: ["id"];
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
foreignKeyName: "verse_texts_text_version_id_fkey";
|
|
2529
|
+
columns: ["text_version_id"];
|
|
2530
|
+
isOneToOne: false;
|
|
2531
|
+
referencedRelation: "text_versions";
|
|
2532
|
+
referencedColumns: ["id"];
|
|
2533
|
+
},
|
|
2534
|
+
{
|
|
2535
|
+
foreignKeyName: "verse_texts_verse_id_fkey";
|
|
2536
|
+
columns: ["verse_id"];
|
|
2537
|
+
isOneToOne: false;
|
|
2538
|
+
referencedRelation: "verses";
|
|
2539
|
+
referencedColumns: ["id"];
|
|
2540
|
+
}
|
|
2541
|
+
];
|
|
2542
|
+
};
|
|
2543
|
+
verses: {
|
|
2544
|
+
Row: {
|
|
2545
|
+
chapter_id: string;
|
|
2546
|
+
created_at: string | null;
|
|
2547
|
+
global_order: number | null;
|
|
2548
|
+
id: string;
|
|
2549
|
+
updated_at: string | null;
|
|
2550
|
+
verse_number: number;
|
|
2551
|
+
};
|
|
2552
|
+
Insert: {
|
|
2553
|
+
chapter_id: string;
|
|
2554
|
+
created_at?: string | null;
|
|
2555
|
+
global_order?: number | null;
|
|
2556
|
+
id?: string;
|
|
2557
|
+
updated_at?: string | null;
|
|
2558
|
+
verse_number: number;
|
|
2559
|
+
};
|
|
2560
|
+
Update: {
|
|
2561
|
+
chapter_id?: string;
|
|
2562
|
+
created_at?: string | null;
|
|
2563
|
+
global_order?: number | null;
|
|
2564
|
+
id?: string;
|
|
2565
|
+
updated_at?: string | null;
|
|
2566
|
+
verse_number?: number;
|
|
2567
|
+
};
|
|
2568
|
+
Relationships: [
|
|
2569
|
+
{
|
|
2570
|
+
foreignKeyName: "verses_chapter_id_fkey";
|
|
2571
|
+
columns: ["chapter_id"];
|
|
2572
|
+
isOneToOne: false;
|
|
2573
|
+
referencedRelation: "chapters";
|
|
2574
|
+
referencedColumns: ["id"];
|
|
1251
2575
|
}
|
|
1252
2576
|
];
|
|
1253
2577
|
};
|
|
@@ -1994,6 +3318,12 @@ export type Database = {
|
|
|
1994
3318
|
};
|
|
1995
3319
|
Returns: unknown;
|
|
1996
3320
|
};
|
|
3321
|
+
get_chapter_global_order: {
|
|
3322
|
+
Args: {
|
|
3323
|
+
chapter_uuid: string;
|
|
3324
|
+
};
|
|
3325
|
+
Returns: number;
|
|
3326
|
+
};
|
|
1997
3327
|
get_language_entity_path: {
|
|
1998
3328
|
Args: {
|
|
1999
3329
|
entity_id: string;
|
|
@@ -2012,6 +3342,12 @@ export type Database = {
|
|
|
2012
3342
|
};
|
|
2013
3343
|
Returns: string;
|
|
2014
3344
|
};
|
|
3345
|
+
get_verse_global_order: {
|
|
3346
|
+
Args: {
|
|
3347
|
+
verse_uuid: string;
|
|
3348
|
+
};
|
|
3349
|
+
Returns: number;
|
|
3350
|
+
};
|
|
2015
3351
|
gettransactionid: {
|
|
2016
3352
|
Args: Record<PropertyKey, never>;
|
|
2017
3353
|
Returns: unknown;
|
|
@@ -2297,6 +3633,10 @@ export type Database = {
|
|
|
2297
3633
|
Args: Record<PropertyKey, never>;
|
|
2298
3634
|
Returns: string;
|
|
2299
3635
|
};
|
|
3636
|
+
refresh_all_global_orders: {
|
|
3637
|
+
Args: Record<PropertyKey, never>;
|
|
3638
|
+
Returns: undefined;
|
|
3639
|
+
};
|
|
2300
3640
|
spheroid_in: {
|
|
2301
3641
|
Args: {
|
|
2302
3642
|
"": unknown;
|
|
@@ -4014,15 +5354,29 @@ export type Database = {
|
|
|
4014
5354
|
};
|
|
4015
5355
|
Returns: string;
|
|
4016
5356
|
};
|
|
5357
|
+
validate_verse_range: {
|
|
5358
|
+
Args: {
|
|
5359
|
+
start_verse_uuid: string;
|
|
5360
|
+
end_verse_uuid: string;
|
|
5361
|
+
};
|
|
5362
|
+
Returns: boolean;
|
|
5363
|
+
};
|
|
4017
5364
|
};
|
|
4018
5365
|
Enums: {
|
|
4019
5366
|
change_type: "create" | "update" | "delete";
|
|
5367
|
+
check_status: "pending" | "approved" | "rejected" | "requires_review";
|
|
4020
5368
|
connectivity_type: "wifi" | "cellular" | "offline" | "unknown";
|
|
4021
5369
|
contribution_status: "approved" | "not_approved";
|
|
4022
5370
|
language_entity_level: "family" | "language" | "dialect" | "mother_tongue";
|
|
5371
|
+
media_type: "audio" | "video";
|
|
4023
5372
|
platform_type: "ios" | "android" | "web" | "desktop";
|
|
5373
|
+
publish_status: "pending" | "published" | "archived";
|
|
4024
5374
|
region_level: "continent" | "world_region" | "country" | "state" | "province" | "district" | "town" | "village";
|
|
5375
|
+
segment_type: "source" | "target";
|
|
4025
5376
|
share_entity_type: "app" | "chapter" | "playlist" | "verse" | "passage";
|
|
5377
|
+
target_type: "chapter" | "book" | "sermon" | "passage" | "verse" | "podcast" | "film_segment" | "audio_segment";
|
|
5378
|
+
text_version_source: "official_translation" | "ai_transcription" | "user_submitted";
|
|
5379
|
+
upload_status: "pending" | "uploading" | "completed" | "failed";
|
|
4026
5380
|
};
|
|
4027
5381
|
CompositeTypes: {
|
|
4028
5382
|
geometry_dump: {
|
|
@@ -4092,12 +5446,19 @@ export declare const Constants: {
|
|
|
4092
5446
|
readonly public: {
|
|
4093
5447
|
readonly Enums: {
|
|
4094
5448
|
readonly change_type: readonly ["create", "update", "delete"];
|
|
5449
|
+
readonly check_status: readonly ["pending", "approved", "rejected", "requires_review"];
|
|
4095
5450
|
readonly connectivity_type: readonly ["wifi", "cellular", "offline", "unknown"];
|
|
4096
5451
|
readonly contribution_status: readonly ["approved", "not_approved"];
|
|
4097
5452
|
readonly language_entity_level: readonly ["family", "language", "dialect", "mother_tongue"];
|
|
5453
|
+
readonly media_type: readonly ["audio", "video"];
|
|
4098
5454
|
readonly platform_type: readonly ["ios", "android", "web", "desktop"];
|
|
5455
|
+
readonly publish_status: readonly ["pending", "published", "archived"];
|
|
4099
5456
|
readonly region_level: readonly ["continent", "world_region", "country", "state", "province", "district", "town", "village"];
|
|
5457
|
+
readonly segment_type: readonly ["source", "target"];
|
|
4100
5458
|
readonly share_entity_type: readonly ["app", "chapter", "playlist", "verse", "passage"];
|
|
5459
|
+
readonly target_type: readonly ["chapter", "book", "sermon", "passage", "verse", "podcast", "film_segment", "audio_segment"];
|
|
5460
|
+
readonly text_version_source: readonly ["official_translation", "ai_transcription", "user_submitted"];
|
|
5461
|
+
readonly upload_status: readonly ["pending", "uploading", "completed", "failed"];
|
|
4101
5462
|
};
|
|
4102
5463
|
};
|
|
4103
5464
|
};
|