@betterinternship/core 1.1.19 → 1.1.21

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