@betterinternship/core 1.0.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,896 @@
1
+ export type Json = string | number | boolean | null | {
2
+ [key: string]: Json | undefined;
3
+ } | Json[];
4
+ export type Database = {
5
+ public: {
6
+ Tables: {
7
+ applications: {
8
+ Row: {
9
+ applied_at: string;
10
+ cover_letter: string | null;
11
+ id: string;
12
+ job_id: string | null;
13
+ notes: string | null;
14
+ review: string | null;
15
+ status: number;
16
+ updated_at: string | null;
17
+ user_id: string | null;
18
+ };
19
+ Insert: {
20
+ applied_at?: string;
21
+ cover_letter?: string | null;
22
+ id?: string;
23
+ job_id?: string | null;
24
+ notes?: string | null;
25
+ review?: string | null;
26
+ status?: number;
27
+ updated_at?: string | null;
28
+ user_id?: string | null;
29
+ };
30
+ Update: {
31
+ applied_at?: string;
32
+ cover_letter?: string | null;
33
+ id?: string;
34
+ job_id?: string | null;
35
+ notes?: string | null;
36
+ review?: string | null;
37
+ status?: number;
38
+ updated_at?: string | null;
39
+ user_id?: string | null;
40
+ };
41
+ Relationships: [
42
+ {
43
+ foreignKeyName: 'applications_job_id_fkey';
44
+ columns: ['job_id'];
45
+ isOneToOne: false;
46
+ referencedRelation: 'jobs';
47
+ referencedColumns: ['id'];
48
+ },
49
+ {
50
+ foreignKeyName: 'applications_status_fkey';
51
+ columns: ['status'];
52
+ isOneToOne: false;
53
+ referencedRelation: 'ref_app_statuses';
54
+ referencedColumns: ['id'];
55
+ },
56
+ {
57
+ foreignKeyName: 'applications_user_id_fkey';
58
+ columns: ['user_id'];
59
+ isOneToOne: false;
60
+ referencedRelation: 'users';
61
+ referencedColumns: ['id'];
62
+ }
63
+ ];
64
+ };
65
+ employer_users: {
66
+ Row: {
67
+ created_at: string;
68
+ email: string;
69
+ employer_id: string;
70
+ first_name: string | null;
71
+ id: string;
72
+ is_deactivated: boolean;
73
+ is_verified: boolean;
74
+ last_name: string | null;
75
+ middle_name: string | null;
76
+ password: string;
77
+ profile_picture: string | null;
78
+ updated_at: string;
79
+ };
80
+ Insert: {
81
+ created_at?: string;
82
+ email: string;
83
+ employer_id: string;
84
+ first_name?: string | null;
85
+ id?: string;
86
+ is_deactivated?: boolean;
87
+ is_verified?: boolean;
88
+ last_name?: string | null;
89
+ middle_name?: string | null;
90
+ password: string;
91
+ profile_picture?: string | null;
92
+ updated_at?: string;
93
+ };
94
+ Update: {
95
+ created_at?: string;
96
+ email?: string;
97
+ employer_id?: string;
98
+ first_name?: string | null;
99
+ id?: string;
100
+ is_deactivated?: boolean;
101
+ is_verified?: boolean;
102
+ last_name?: string | null;
103
+ middle_name?: string | null;
104
+ password?: string;
105
+ profile_picture?: string | null;
106
+ updated_at?: string;
107
+ };
108
+ Relationships: [
109
+ {
110
+ foreignKeyName: 'employer_users_employer_id_fkey';
111
+ columns: ['employer_id'];
112
+ isOneToOne: false;
113
+ referencedRelation: 'employers';
114
+ referencedColumns: ['id'];
115
+ }
116
+ ];
117
+ };
118
+ employers: {
119
+ Row: {
120
+ accepted_universities: string[];
121
+ accepts_non_university: boolean;
122
+ created_at: string;
123
+ description: string | null;
124
+ email: string | null;
125
+ id: string;
126
+ industry: string | null;
127
+ is_verified: boolean;
128
+ job_count: number;
129
+ legal_entity_name: string;
130
+ location: string | null;
131
+ logo: string | null;
132
+ name: string;
133
+ phone_number: string | null;
134
+ updated_at: string;
135
+ website: string | null;
136
+ };
137
+ Insert: {
138
+ accepted_universities?: string[];
139
+ accepts_non_university?: boolean;
140
+ created_at?: string;
141
+ description?: string | null;
142
+ email?: string | null;
143
+ id?: string;
144
+ industry?: string | null;
145
+ is_verified?: boolean;
146
+ job_count?: number;
147
+ legal_entity_name: string;
148
+ location?: string | null;
149
+ logo?: string | null;
150
+ name: string;
151
+ phone_number?: string | null;
152
+ updated_at?: string;
153
+ website?: string | null;
154
+ };
155
+ Update: {
156
+ accepted_universities?: string[];
157
+ accepts_non_university?: boolean;
158
+ created_at?: string;
159
+ description?: string | null;
160
+ email?: string | null;
161
+ id?: string;
162
+ industry?: string | null;
163
+ is_verified?: boolean;
164
+ job_count?: number;
165
+ legal_entity_name?: string;
166
+ location?: string | null;
167
+ logo?: string | null;
168
+ name?: string;
169
+ phone_number?: string | null;
170
+ updated_at?: string;
171
+ website?: string | null;
172
+ };
173
+ Relationships: [];
174
+ };
175
+ gods: {
176
+ Row: {
177
+ employer_user_id: string;
178
+ id: string;
179
+ };
180
+ Insert: {
181
+ employer_user_id: string;
182
+ id?: string;
183
+ };
184
+ Update: {
185
+ employer_user_id?: string;
186
+ id?: string;
187
+ };
188
+ Relationships: [
189
+ {
190
+ foreignKeyName: 'gods_employer_user_id_fkey';
191
+ columns: ['employer_user_id'];
192
+ isOneToOne: true;
193
+ referencedRelation: 'employer_users';
194
+ referencedColumns: ['id'];
195
+ }
196
+ ];
197
+ };
198
+ jobs: {
199
+ Row: {
200
+ allowance: number | null;
201
+ category: string | null;
202
+ created_at: string | null;
203
+ description: string;
204
+ employer_id: string | null;
205
+ end_date: number | null;
206
+ id: string;
207
+ is_active: boolean | null;
208
+ is_deleted: boolean;
209
+ is_unlisted: boolean;
210
+ is_year_round: boolean | null;
211
+ location: string | null;
212
+ mode: number | null;
213
+ require_cover_letter: boolean | null;
214
+ require_github: boolean | null;
215
+ require_portfolio: boolean | null;
216
+ requirements: string | null;
217
+ salary: number | null;
218
+ salary_freq: number | null;
219
+ start_date: number | null;
220
+ title: string;
221
+ type: number | null;
222
+ updated_at: string | null;
223
+ view_count: number;
224
+ };
225
+ Insert: {
226
+ allowance?: number | null;
227
+ category?: string | null;
228
+ created_at?: string | null;
229
+ description: string;
230
+ employer_id?: string | null;
231
+ end_date?: number | null;
232
+ id?: string;
233
+ is_active?: boolean | null;
234
+ is_deleted?: boolean;
235
+ is_unlisted?: boolean;
236
+ is_year_round?: boolean | null;
237
+ location?: string | null;
238
+ mode?: number | null;
239
+ require_cover_letter?: boolean | null;
240
+ require_github?: boolean | null;
241
+ require_portfolio?: boolean | null;
242
+ requirements?: string | null;
243
+ salary?: number | null;
244
+ salary_freq?: number | null;
245
+ start_date?: number | null;
246
+ title: string;
247
+ type?: number | null;
248
+ updated_at?: string | null;
249
+ view_count?: number;
250
+ };
251
+ Update: {
252
+ allowance?: number | null;
253
+ category?: string | null;
254
+ created_at?: string | null;
255
+ description?: string;
256
+ employer_id?: string | null;
257
+ end_date?: number | null;
258
+ id?: string;
259
+ is_active?: boolean | null;
260
+ is_deleted?: boolean;
261
+ is_unlisted?: boolean;
262
+ is_year_round?: boolean | null;
263
+ location?: string | null;
264
+ mode?: number | null;
265
+ require_cover_letter?: boolean | null;
266
+ require_github?: boolean | null;
267
+ require_portfolio?: boolean | null;
268
+ requirements?: string | null;
269
+ salary?: number | null;
270
+ salary_freq?: number | null;
271
+ start_date?: number | null;
272
+ title?: string;
273
+ type?: number | null;
274
+ updated_at?: string | null;
275
+ view_count?: number;
276
+ };
277
+ Relationships: [
278
+ {
279
+ foreignKeyName: 'jobs_allowance_fkey';
280
+ columns: ['allowance'];
281
+ isOneToOne: false;
282
+ referencedRelation: 'ref_job_allowances';
283
+ referencedColumns: ['id'];
284
+ },
285
+ {
286
+ foreignKeyName: 'jobs_category_fkey';
287
+ columns: ['category'];
288
+ isOneToOne: false;
289
+ referencedRelation: 'ref_job_categories';
290
+ referencedColumns: ['id'];
291
+ },
292
+ {
293
+ foreignKeyName: 'jobs_employer_id_fkey';
294
+ columns: ['employer_id'];
295
+ isOneToOne: false;
296
+ referencedRelation: 'employers';
297
+ referencedColumns: ['id'];
298
+ },
299
+ {
300
+ foreignKeyName: 'jobs_mode_fkey';
301
+ columns: ['mode'];
302
+ isOneToOne: false;
303
+ referencedRelation: 'ref_job_modes';
304
+ referencedColumns: ['id'];
305
+ },
306
+ {
307
+ foreignKeyName: 'jobs_salary_freq_fkey';
308
+ columns: ['salary_freq'];
309
+ isOneToOne: false;
310
+ referencedRelation: 'ref_job_pay_freq';
311
+ referencedColumns: ['id'];
312
+ },
313
+ {
314
+ foreignKeyName: 'jobs_type_fkey';
315
+ columns: ['type'];
316
+ isOneToOne: false;
317
+ referencedRelation: 'ref_job_types';
318
+ referencedColumns: ['id'];
319
+ }
320
+ ];
321
+ };
322
+ moa: {
323
+ Row: {
324
+ employer_id: string;
325
+ expires_at: string;
326
+ id: string;
327
+ start_date: string;
328
+ university_id: string;
329
+ };
330
+ Insert: {
331
+ employer_id: string;
332
+ expires_at?: string;
333
+ id?: string;
334
+ start_date?: string;
335
+ university_id: string;
336
+ };
337
+ Update: {
338
+ employer_id?: string;
339
+ expires_at?: string;
340
+ id?: string;
341
+ start_date?: string;
342
+ university_id?: string;
343
+ };
344
+ Relationships: [
345
+ {
346
+ foreignKeyName: 'moa_employer_id_fkey';
347
+ columns: ['employer_id'];
348
+ isOneToOne: false;
349
+ referencedRelation: 'employers';
350
+ referencedColumns: ['id'];
351
+ },
352
+ {
353
+ foreignKeyName: 'moa_university_id_fkey';
354
+ columns: ['university_id'];
355
+ isOneToOne: false;
356
+ referencedRelation: 'ref_universities';
357
+ referencedColumns: ['id'];
358
+ }
359
+ ];
360
+ };
361
+ ref_app_statuses: {
362
+ Row: {
363
+ id: number;
364
+ name: string;
365
+ order: number;
366
+ };
367
+ Insert: {
368
+ id?: number;
369
+ name: string;
370
+ order: number;
371
+ };
372
+ Update: {
373
+ id?: number;
374
+ name?: string;
375
+ order?: number;
376
+ };
377
+ Relationships: [];
378
+ };
379
+ ref_colleges: {
380
+ Row: {
381
+ id: string;
382
+ name: string;
383
+ short_name: string;
384
+ university_id: string;
385
+ };
386
+ Insert: {
387
+ id?: string;
388
+ name: string;
389
+ short_name?: string;
390
+ university_id: string;
391
+ };
392
+ Update: {
393
+ id?: string;
394
+ name?: string;
395
+ short_name?: string;
396
+ university_id?: string;
397
+ };
398
+ Relationships: [
399
+ {
400
+ foreignKeyName: 'ref_colleges_university_id_fkey';
401
+ columns: ['university_id'];
402
+ isOneToOne: false;
403
+ referencedRelation: 'ref_universities';
404
+ referencedColumns: ['id'];
405
+ }
406
+ ];
407
+ };
408
+ ref_degrees: {
409
+ Row: {
410
+ id: string;
411
+ name: string;
412
+ type: string;
413
+ university_id: string;
414
+ };
415
+ Insert: {
416
+ id?: string;
417
+ name: string;
418
+ type: string;
419
+ university_id: string;
420
+ };
421
+ Update: {
422
+ id?: string;
423
+ name?: string;
424
+ type?: string;
425
+ university_id?: string;
426
+ };
427
+ Relationships: [
428
+ {
429
+ foreignKeyName: 'ref_degrees_university_id_fkey';
430
+ columns: ['university_id'];
431
+ isOneToOne: false;
432
+ referencedRelation: 'ref_universities';
433
+ referencedColumns: ['id'];
434
+ }
435
+ ];
436
+ };
437
+ ref_departments: {
438
+ Row: {
439
+ college_id: string;
440
+ id: string;
441
+ name: string;
442
+ short_name: string;
443
+ };
444
+ Insert: {
445
+ college_id?: string;
446
+ id?: string;
447
+ name: string;
448
+ short_name: string;
449
+ };
450
+ Update: {
451
+ college_id?: string;
452
+ id?: string;
453
+ name?: string;
454
+ short_name?: string;
455
+ };
456
+ Relationships: [
457
+ {
458
+ foreignKeyName: 'ref_departments_college_id_fkey';
459
+ columns: ['college_id'];
460
+ isOneToOne: false;
461
+ referencedRelation: 'ref_colleges';
462
+ referencedColumns: ['id'];
463
+ }
464
+ ];
465
+ };
466
+ ref_domains: {
467
+ Row: {
468
+ id: string;
469
+ name: string;
470
+ university_id: string;
471
+ };
472
+ Insert: {
473
+ id?: string;
474
+ name: string;
475
+ university_id: string;
476
+ };
477
+ Update: {
478
+ id?: string;
479
+ name?: string;
480
+ university_id?: string;
481
+ };
482
+ Relationships: [
483
+ {
484
+ foreignKeyName: 'ref_domains_university_id_fkey';
485
+ columns: ['university_id'];
486
+ isOneToOne: false;
487
+ referencedRelation: 'ref_universities';
488
+ referencedColumns: ['id'];
489
+ }
490
+ ];
491
+ };
492
+ ref_industries: {
493
+ Row: {
494
+ id: string;
495
+ name: string;
496
+ };
497
+ Insert: {
498
+ id?: string;
499
+ name: string;
500
+ };
501
+ Update: {
502
+ id?: string;
503
+ name?: string;
504
+ };
505
+ Relationships: [];
506
+ };
507
+ ref_job_allowances: {
508
+ Row: {
509
+ id: number;
510
+ name: string;
511
+ };
512
+ Insert: {
513
+ id?: number;
514
+ name: string;
515
+ };
516
+ Update: {
517
+ id?: number;
518
+ name?: string;
519
+ };
520
+ Relationships: [];
521
+ };
522
+ ref_job_categories: {
523
+ Row: {
524
+ class: string;
525
+ id: string;
526
+ name: string;
527
+ order: number;
528
+ };
529
+ Insert: {
530
+ class: string;
531
+ id?: string;
532
+ name: string;
533
+ order: number;
534
+ };
535
+ Update: {
536
+ class?: string;
537
+ id?: string;
538
+ name?: string;
539
+ order?: number;
540
+ };
541
+ Relationships: [];
542
+ };
543
+ ref_job_modes: {
544
+ Row: {
545
+ id: number;
546
+ name: string;
547
+ };
548
+ Insert: {
549
+ id?: number;
550
+ name: string;
551
+ };
552
+ Update: {
553
+ id?: number;
554
+ name?: string;
555
+ };
556
+ Relationships: [];
557
+ };
558
+ ref_job_pay_freq: {
559
+ Row: {
560
+ description: string;
561
+ factor: number | null;
562
+ id: number;
563
+ name: string;
564
+ };
565
+ Insert: {
566
+ description: string;
567
+ factor?: number | null;
568
+ id?: number;
569
+ name: string;
570
+ };
571
+ Update: {
572
+ description?: string;
573
+ factor?: number | null;
574
+ id?: number;
575
+ name?: string;
576
+ };
577
+ Relationships: [];
578
+ };
579
+ ref_job_types: {
580
+ Row: {
581
+ id: number;
582
+ name: string;
583
+ };
584
+ Insert: {
585
+ id?: number;
586
+ name: string;
587
+ };
588
+ Update: {
589
+ id?: number;
590
+ name?: string;
591
+ };
592
+ Relationships: [];
593
+ };
594
+ ref_levels: {
595
+ Row: {
596
+ id: number;
597
+ name: string;
598
+ order: number;
599
+ };
600
+ Insert: {
601
+ id?: number;
602
+ name: string;
603
+ order: number;
604
+ };
605
+ Update: {
606
+ id?: number;
607
+ name?: string;
608
+ order?: number;
609
+ };
610
+ Relationships: [];
611
+ };
612
+ ref_universities: {
613
+ Row: {
614
+ id: string;
615
+ name: string;
616
+ };
617
+ Insert: {
618
+ id?: string;
619
+ name: string;
620
+ };
621
+ Update: {
622
+ id?: string;
623
+ name?: string;
624
+ };
625
+ Relationships: [];
626
+ };
627
+ saved_jobs: {
628
+ Row: {
629
+ id: string;
630
+ job_id: string | null;
631
+ saved_at: string | null;
632
+ user_id: string | null;
633
+ };
634
+ Insert: {
635
+ id?: string;
636
+ job_id?: string | null;
637
+ saved_at?: string | null;
638
+ user_id?: string | null;
639
+ };
640
+ Update: {
641
+ id?: string;
642
+ job_id?: string | null;
643
+ saved_at?: string | null;
644
+ user_id?: string | null;
645
+ };
646
+ Relationships: [
647
+ {
648
+ foreignKeyName: 'saved_jobs_job_id_fkey';
649
+ columns: ['job_id'];
650
+ isOneToOne: false;
651
+ referencedRelation: 'jobs';
652
+ referencedColumns: ['id'];
653
+ },
654
+ {
655
+ foreignKeyName: 'saved_jobs_user_id_fkey';
656
+ columns: ['user_id'];
657
+ isOneToOne: false;
658
+ referencedRelation: 'users';
659
+ referencedColumns: ['id'];
660
+ }
661
+ ];
662
+ };
663
+ user_activity: {
664
+ Row: {
665
+ activity_type: string | null;
666
+ created_at: string | null;
667
+ id: string;
668
+ job_id: string | null;
669
+ metadata: Json | null;
670
+ user_id: string | null;
671
+ };
672
+ Insert: {
673
+ activity_type?: string | null;
674
+ created_at?: string | null;
675
+ id?: string;
676
+ job_id?: string | null;
677
+ metadata?: Json | null;
678
+ user_id?: string | null;
679
+ };
680
+ Update: {
681
+ activity_type?: string | null;
682
+ created_at?: string | null;
683
+ id?: string;
684
+ job_id?: string | null;
685
+ metadata?: Json | null;
686
+ user_id?: string | null;
687
+ };
688
+ Relationships: [
689
+ {
690
+ foreignKeyName: 'user_activity_job_id_fkey';
691
+ columns: ['job_id'];
692
+ isOneToOne: false;
693
+ referencedRelation: 'jobs';
694
+ referencedColumns: ['id'];
695
+ },
696
+ {
697
+ foreignKeyName: 'user_activity_user_id_fkey';
698
+ columns: ['user_id'];
699
+ isOneToOne: false;
700
+ referencedRelation: 'users';
701
+ referencedColumns: ['id'];
702
+ }
703
+ ];
704
+ };
705
+ users: {
706
+ Row: {
707
+ bio: string | null;
708
+ calendar_link: string | null;
709
+ college: string | null;
710
+ created_at: string | null;
711
+ degree: string | null;
712
+ degree_notes: string | null;
713
+ department: string | null;
714
+ email: string;
715
+ first_name: string | null;
716
+ github_link: string | null;
717
+ id: string;
718
+ is_deactivated: boolean | null;
719
+ is_verified: boolean;
720
+ last_name: string | null;
721
+ linkage_officer: string | null;
722
+ linkedin_link: string | null;
723
+ middle_name: string | null;
724
+ phone_number: string | null;
725
+ portfolio_link: string | null;
726
+ profile_picture: string | null;
727
+ resume: string | null;
728
+ taking_for_credit: boolean;
729
+ university: string | null;
730
+ updated_at: string | null;
731
+ verification_hash: string;
732
+ year_level: number | null;
733
+ };
734
+ Insert: {
735
+ bio?: string | null;
736
+ calendar_link?: string | null;
737
+ college?: string | null;
738
+ created_at?: string | null;
739
+ degree?: string | null;
740
+ degree_notes?: string | null;
741
+ department?: string | null;
742
+ email: string;
743
+ first_name?: string | null;
744
+ github_link?: string | null;
745
+ id?: string;
746
+ is_deactivated?: boolean | null;
747
+ is_verified?: boolean;
748
+ last_name?: string | null;
749
+ linkage_officer?: string | null;
750
+ linkedin_link?: string | null;
751
+ middle_name?: string | null;
752
+ phone_number?: string | null;
753
+ portfolio_link?: string | null;
754
+ profile_picture?: string | null;
755
+ resume?: string | null;
756
+ taking_for_credit?: boolean;
757
+ university?: string | null;
758
+ updated_at?: string | null;
759
+ verification_hash: string;
760
+ year_level?: number | null;
761
+ };
762
+ Update: {
763
+ bio?: string | null;
764
+ calendar_link?: string | null;
765
+ college?: string | null;
766
+ created_at?: string | null;
767
+ degree?: string | null;
768
+ degree_notes?: string | null;
769
+ department?: string | null;
770
+ email?: string;
771
+ first_name?: string | null;
772
+ github_link?: string | null;
773
+ id?: string;
774
+ is_deactivated?: boolean | null;
775
+ is_verified?: boolean;
776
+ last_name?: string | null;
777
+ linkage_officer?: string | null;
778
+ linkedin_link?: string | null;
779
+ middle_name?: string | null;
780
+ phone_number?: string | null;
781
+ portfolio_link?: string | null;
782
+ profile_picture?: string | null;
783
+ resume?: string | null;
784
+ taking_for_credit?: boolean;
785
+ university?: string | null;
786
+ updated_at?: string | null;
787
+ verification_hash?: string;
788
+ year_level?: number | null;
789
+ };
790
+ Relationships: [
791
+ {
792
+ foreignKeyName: 'users_college_fkey';
793
+ columns: ['college'];
794
+ isOneToOne: false;
795
+ referencedRelation: 'ref_colleges';
796
+ referencedColumns: ['id'];
797
+ },
798
+ {
799
+ foreignKeyName: 'users_degree_fkey';
800
+ columns: ['degree'];
801
+ isOneToOne: false;
802
+ referencedRelation: 'ref_degrees';
803
+ referencedColumns: ['id'];
804
+ },
805
+ {
806
+ foreignKeyName: 'users_department_fkey';
807
+ columns: ['department'];
808
+ isOneToOne: false;
809
+ referencedRelation: 'ref_departments';
810
+ referencedColumns: ['id'];
811
+ },
812
+ {
813
+ foreignKeyName: 'users_university_fkey';
814
+ columns: ['university'];
815
+ isOneToOne: false;
816
+ referencedRelation: 'ref_universities';
817
+ referencedColumns: ['id'];
818
+ },
819
+ {
820
+ foreignKeyName: 'users_year_level_fkey';
821
+ columns: ['year_level'];
822
+ isOneToOne: false;
823
+ referencedRelation: 'ref_levels';
824
+ referencedColumns: ['id'];
825
+ }
826
+ ];
827
+ };
828
+ };
829
+ Views: {
830
+ [_ in never]: never;
831
+ };
832
+ Functions: {
833
+ [_ in never]: never;
834
+ };
835
+ Enums: {
836
+ [_ in never]: never;
837
+ };
838
+ CompositeTypes: {
839
+ [_ in never]: never;
840
+ };
841
+ };
842
+ };
843
+ type DefaultSchema = Database[Extract<keyof Database, 'public'>];
844
+ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) | {
845
+ schema: keyof Database;
846
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
847
+ schema: keyof Database;
848
+ } ? keyof (Database[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & Database[DefaultSchemaTableNameOrOptions['schema']]['Views']) : never = never> = DefaultSchemaTableNameOrOptions extends {
849
+ schema: keyof Database;
850
+ } ? (Database[DefaultSchemaTableNameOrOptions['schema']]['Tables'] & Database[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
851
+ Row: infer R;
852
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema['Tables'] & DefaultSchema['Views']) ? (DefaultSchema['Tables'] & DefaultSchema['Views'])[DefaultSchemaTableNameOrOptions] extends {
853
+ Row: infer R;
854
+ } ? R : never : never;
855
+ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] | {
856
+ schema: keyof Database;
857
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
858
+ schema: keyof Database;
859
+ } ? keyof Database[DefaultSchemaTableNameOrOptions['schema']]['Tables'] : never = never> = DefaultSchemaTableNameOrOptions extends {
860
+ schema: keyof Database;
861
+ } ? Database[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
862
+ Insert: infer I;
863
+ } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
864
+ Insert: infer I;
865
+ } ? I : never : never;
866
+ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] | {
867
+ schema: keyof Database;
868
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
869
+ schema: keyof Database;
870
+ } ? keyof Database[DefaultSchemaTableNameOrOptions['schema']]['Tables'] : never = never> = DefaultSchemaTableNameOrOptions extends {
871
+ schema: keyof Database;
872
+ } ? Database[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
873
+ Update: infer U;
874
+ } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema['Tables'] ? DefaultSchema['Tables'][DefaultSchemaTableNameOrOptions] extends {
875
+ Update: infer U;
876
+ } ? U : never : never;
877
+ export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums'] | {
878
+ schema: keyof Database;
879
+ }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
880
+ schema: keyof Database;
881
+ } ? keyof Database[DefaultSchemaEnumNameOrOptions['schema']]['Enums'] : never = never> = DefaultSchemaEnumNameOrOptions extends {
882
+ schema: keyof Database;
883
+ } ? Database[DefaultSchemaEnumNameOrOptions['schema']]['Enums'][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums'] ? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions] : never;
884
+ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes'] | {
885
+ schema: keyof Database;
886
+ }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
887
+ schema: keyof Database;
888
+ } ? keyof Database[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'] : never = never> = PublicCompositeTypeNameOrOptions extends {
889
+ schema: keyof Database;
890
+ } ? Database[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes'] ? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions] : never;
891
+ export declare const Constants: {
892
+ readonly public: {
893
+ readonly Enums: {};
894
+ };
895
+ };
896
+ export {};