@betterinternship/core 1.1.24 → 1.1.26

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