@betterinternship/schema 1.27.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,429 +1,432 @@
1
- import type { ColumnType } from "kysely";
2
- export type CareerApplicationSource = "discord" | "mass" | "normal";
3
- export type CareerApplicationVisibility = "archived" | "deleted" | "visible";
4
- export type CareerDiscussionKind = "question" | "reply" | "review";
5
- export type CareerEmployerDigestType = "daily" | "shortlisted";
6
- export type CareerJobActivationEvent = "activated" | "deactivated";
7
- export type CareerJobActivationSource = "employer" | "god";
8
- export type CareerJobPauseReason = "dormant" | "neglected" | "unresponsive";
9
- export type CareerJobWaitlistRemovalReason = "left" | "listing_deleted" | "notified";
10
- export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
11
- export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
12
- export type Json = JsonValue;
13
- export type JsonArray = JsonValue[];
14
- export type JsonObject = {
15
- [x: string]: JsonValue | undefined;
16
- };
17
- export type JsonPrimitive = boolean | number | string | null;
18
- export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
19
- export type Numeric = ColumnType<string, number | string, number | string>;
20
- export type Timestamp = ColumnType<Date, Date | string, Date | string>;
21
- export interface CareerApplications {
22
- applied_at: Generated<Timestamp>;
23
- cover_letter: string | null;
24
- first_viewed: Timestamp | null;
25
- id: Generated<string>;
26
- job_id: string | null;
27
- notes: string | null;
28
- resume_id: string | null;
29
- review: string | null;
30
- source: CareerApplicationSource | null;
31
- status: Generated<number>;
32
- top_page_id: string | null;
33
- top_page_university_id: string | null;
34
- updated_at: Generated<Timestamp | null>;
35
- user_id: string | null;
36
- visibility: Generated<CareerApplicationVisibility>;
37
- }
38
- export interface CareerApplicationsChallengeSubmission {
39
- applications_id: string;
40
- id: Generated<Int8>;
41
- submission: string | null;
42
- }
43
- export interface CareerConversations {
44
- created_at: Generated<Timestamp>;
45
- employer_id: string;
46
- id: Generated<string>;
47
- user_id: string;
48
- }
49
- export interface CareerDiscussions {
50
- author_employer_user_id: string | null;
51
- author_label: string | null;
52
- author_user_id: string | null;
53
- body: string;
54
- created_at: Generated<Timestamp>;
55
- id: Generated<string>;
56
- kind: CareerDiscussionKind;
57
- link: string | null;
58
- parent_id: string | null;
59
- rating: number | null;
60
- tags: Generated<string[] | null>;
61
- thread_id: string;
62
- }
63
- export interface CareerDiscussionThreads {
64
- created_at: Generated<Timestamp>;
65
- employer_id: string;
66
- id: Generated<string>;
67
- job_id: string | null;
68
- }
69
- export interface CareerEmployerDigestSends {
70
- applications: number;
71
- employer_id: string;
72
- employer_user_id: string | null;
73
- id: Generated<string>;
74
- sent_at: Generated<Timestamp>;
75
- type: CareerEmployerDigestType;
76
- }
77
- export interface CareerEmployerIomLinkRequests {
78
- consumed_at: Timestamp | null;
79
- created_at: Generated<Timestamp>;
80
- employer_id: string;
81
- expires_at: Timestamp;
82
- id: Generated<string>;
83
- iom_tin: string;
84
- token_hash: string;
85
- }
86
- export interface CareerEmployers {
87
- accepted_universities: Generated<string[]>;
88
- accepts_non_university: Generated<boolean>;
89
- created_at: Generated<Timestamp>;
90
- description: string | null;
91
- email: string | null;
92
- id: Generated<string>;
93
- industry: string | null;
94
- iom_company_id: string | null;
95
- is_deactivated: Generated<boolean>;
96
- is_verified: Generated<boolean>;
97
- job_count: Generated<number>;
98
- legal_entity_name: string;
99
- location: string | null;
100
- logo: string | null;
101
- name: string;
102
- owner_user_id: string | null;
103
- phone_number: string | null;
104
- tin: string | null;
105
- updated_at: Generated<Timestamp>;
106
- website: string | null;
107
- }
108
- export interface CareerEmployerUserKeyrings {
109
- consumed_at: Timestamp | null;
110
- created_at: Generated<Timestamp>;
111
- employer_user_id: string;
112
- expires_at: Timestamp | null;
113
- hash: string;
114
- id: Generated<string>;
115
- }
116
- export interface CareerEmployerUsers {
117
- created_at: Generated<Timestamp>;
118
- email: string;
119
- employer_id: string;
120
- first_name: string | null;
121
- id: Generated<string>;
122
- is_deactivated: Generated<boolean>;
123
- is_verified: Generated<boolean>;
124
- last_name: string | null;
125
- middle_name: string | null;
126
- password: string;
127
- profile_picture: string | null;
128
- receives_applicant_digest: Generated<boolean>;
129
- role: Generated<string>;
130
- updated_at: Generated<Timestamp>;
131
- }
132
- export interface CareerGodKeyrings {
133
- created_at: Generated<Timestamp>;
134
- employer_user_id: string | null;
135
- god_id: string | null;
136
- hash: string;
137
- id: Generated<string>;
138
- last_used_at: Timestamp | null;
139
- ref_employer_id: string | null;
140
- }
141
- export interface CareerGods {
142
- employer_user_id: string;
143
- id: Generated<string>;
144
- }
145
- export interface CareerInternshipFormMappings {
146
- college_id: string | null;
147
- department_id: string | null;
148
- form_group_id: string;
149
- id: Generated<string>;
150
- university_id: string | null;
151
- }
152
- export interface CareerJobActivationEvents {
153
- actor_employer_user_id: string | null;
154
- employer_id: string;
155
- event: CareerJobActivationEvent;
156
- id: Generated<string>;
157
- job_id: string;
158
- occurred_at: Generated<Timestamp>;
159
- qualified: Generated<boolean>;
160
- source: CareerJobActivationSource;
161
- }
162
- export interface CareerJobPauses {
163
- employer_id: string;
164
- id: Generated<string>;
165
- job_id: string;
166
- paused_at: Generated<Timestamp>;
167
- reason: CareerJobPauseReason;
168
- unpaused_at: Timestamp | null;
169
- unpaused_by: string | null;
170
- }
171
- export interface CareerJobs {
172
- allowance: number | null;
173
- created_at: Generated<Timestamp | null>;
174
- description: string;
175
- employer_id: string | null;
176
- end_date: Int8 | null;
177
- id: Generated<string>;
178
- internship_preferences: Generated<Json>;
179
- is_active: Generated<boolean | null>;
180
- is_deleted: Generated<boolean>;
181
- is_unlisted: Generated<boolean>;
182
- is_year_round: boolean | null;
183
- last_activated_at: Generated<Timestamp>;
184
- location: string | null;
185
- requirements: string | null;
186
- salary: Numeric | null;
187
- salary_freq: number | null;
188
- start_date: Int8 | null;
189
- title: string;
190
- updated_at: Generated<Timestamp | null>;
191
- view_count: Generated<Int8>;
192
- }
193
- export interface CareerJobsChallenge {
194
- description: string | null;
195
- id: Generated<string>;
196
- jobs_id: string;
197
- title: string;
198
- }
199
- export interface CareerJobWaitlists {
200
- created_at: Generated<Timestamp>;
201
- id: Generated<string>;
202
- job_id: string;
203
- notified_at: Timestamp | null;
204
- removal_reason: CareerJobWaitlistRemovalReason | null;
205
- removed_at: Timestamp | null;
206
- user_id: string;
207
- }
208
- export interface CareerMoa {
209
- document_link: string | null;
210
- employer_id: string;
211
- expires_at: Generated<Timestamp>;
212
- id: Generated<string>;
213
- start_date: Generated<Timestamp>;
214
- status: Generated<string | null>;
215
- university_id: string | null;
216
- }
217
- export interface CareerPrismaMigrations {
218
- applied_steps_count: Generated<number>;
219
- checksum: string;
220
- finished_at: Timestamp | null;
221
- id: string;
222
- logs: string | null;
223
- migration_name: string;
224
- rolled_back_at: Timestamp | null;
225
- started_at: Generated<Timestamp>;
226
- }
227
- export interface CareerRefAppStatuses {
228
- id: Generated<number>;
229
- name: string;
230
- order: number;
231
- }
232
- export interface CareerRefColleges {
233
- id: Generated<string>;
234
- name: string;
235
- short_name: Generated<string>;
236
- university_id: string;
237
- }
238
- export interface CareerRefDegrees {
239
- id: Generated<string>;
240
- name: string;
241
- type: string;
242
- university_id: string;
243
- }
244
- export interface CareerRefDepartments {
245
- college_id: Generated<string>;
246
- id: Generated<string>;
247
- name: string;
248
- short_name: string;
249
- }
250
- export interface CareerRefDomains {
251
- id: Generated<string>;
252
- name: string;
253
- university_id: string;
254
- }
255
- export interface CareerRefIndustries {
256
- id: Generated<string>;
257
- name: string;
258
- }
259
- export interface CareerRefJobAllowances {
260
- id: Generated<number>;
261
- name: string;
262
- }
263
- export interface CareerRefJobCategories {
264
- id: Generated<string>;
265
- name: string;
266
- order: number;
267
- parent_id: string | null;
268
- }
269
- export interface CareerRefJobModes {
270
- id: Generated<number>;
271
- name: string;
272
- }
273
- export interface CareerRefJobPayFreq {
274
- description: string;
275
- factor: number | null;
276
- id: Generated<number>;
277
- name: string;
278
- }
279
- export interface CareerRefJobTypes {
280
- id: Generated<number>;
281
- name: string;
282
- }
283
- export interface CareerRefLevels {
284
- grad_date: Generated<Timestamp | null>;
285
- id: Generated<number>;
286
- name: string;
287
- order: number;
288
- }
289
- export interface CareerRefUniversities {
290
- accent_hex: string | null;
291
- id: Generated<string>;
292
- iom_university_id: string | null;
293
- name: string;
294
- short_name: string | null;
295
- }
296
- export interface CareerRefUniversitySlugs {
297
- created_at: Generated<Timestamp>;
298
- slug: string;
299
- university_id: string;
300
- }
301
- export interface CareerResumes {
302
- filename: string;
303
- id: Generated<string>;
304
- is_deleted: Generated<boolean>;
305
- label: string;
306
- uploaded_at: Generated<Timestamp>;
307
- user_id: string;
308
- }
309
- export interface CareerSavedJobs {
310
- id: Generated<string>;
311
- job_id: string | null;
312
- saved_at: Generated<Timestamp | null>;
313
- user_id: string | null;
314
- }
315
- export interface CareerSessions {
316
- employer_id: string | null;
317
- id: Generated<string>;
318
- owner_id: string;
319
- subaccount_id: string | null;
320
- timestamp: Generated<Timestamp>;
321
- user_id: string | null;
322
- }
323
- export interface CareerTopPageListings {
324
- added_at: Generated<Timestamp>;
325
- id: Generated<string>;
326
- job_id: string;
327
- page_id: string;
328
- position: number;
329
- removed_at: Timestamp | null;
330
- }
331
- export interface CareerTopPages {
332
- created_at: Generated<Timestamp>;
333
- id: Generated<string>;
334
- is_published: Generated<boolean>;
335
- name: string;
336
- slug: string;
337
- updated_at: Generated<Timestamp>;
338
- }
339
- export interface CareerTopPageSlugs {
340
- created_at: Generated<Timestamp>;
341
- page_id: string;
342
- slug: string;
343
- }
344
- export interface CareerTopPageUniversities {
345
- created_at: Generated<Timestamp>;
346
- page_id: string;
347
- university_id: string;
348
- }
349
- export interface CareerUsers {
350
- acknowledged_auto_apply: Generated<boolean>;
351
- apply_for_me: Generated<boolean | null>;
352
- auto_apply_enabled_at: Timestamp | null;
353
- bio: string | null;
354
- calendar_link: string | null;
355
- college: string | null;
356
- created_at: Generated<Timestamp | null>;
357
- default_resume: string | null;
358
- degree: string | null;
359
- department: string | null;
360
- discord_user_id: string | null;
361
- edu_verification_email: string | null;
362
- email: string;
363
- expected_graduation_date: Timestamp | null;
364
- first_name: string | null;
365
- form_group_id: string | null;
366
- form_group_joined_at: Timestamp | null;
367
- github_link: string | null;
368
- id: Generated<string>;
369
- internship_moa_fields: Generated<Json>;
370
- internship_preferences: Generated<Json>;
371
- is_deactivated: Generated<boolean | null>;
372
- is_verified: Generated<boolean>;
373
- last_name: string | null;
374
- linkedin_link: string | null;
375
- middle_name: string | null;
376
- phone_number: string | null;
377
- portfolio_link: string | null;
378
- profile_picture: string | null;
379
- resume: string | null;
380
- signatory_account_id: string | null;
381
- university: string | null;
382
- updated_at: Generated<Timestamp | null>;
383
- verification_hash: string;
384
- year_level: number | null;
385
- }
386
- export interface DB {
387
- "career._prisma_migrations": CareerPrismaMigrations;
388
- "career.applications": CareerApplications;
389
- "career.applications_challenge_submission": CareerApplicationsChallengeSubmission;
390
- "career.conversations": CareerConversations;
391
- "career.discussion_threads": CareerDiscussionThreads;
392
- "career.discussions": CareerDiscussions;
393
- "career.employer_digest_sends": CareerEmployerDigestSends;
394
- "career.employer_iom_link_requests": CareerEmployerIomLinkRequests;
395
- "career.employer_user_keyrings": CareerEmployerUserKeyrings;
396
- "career.employer_users": CareerEmployerUsers;
397
- "career.employers": CareerEmployers;
398
- "career.god_keyrings": CareerGodKeyrings;
399
- "career.gods": CareerGods;
400
- "career.internship_form_mappings": CareerInternshipFormMappings;
401
- "career.job_activation_events": CareerJobActivationEvents;
402
- "career.job_pauses": CareerJobPauses;
403
- "career.job_waitlists": CareerJobWaitlists;
404
- "career.jobs": CareerJobs;
405
- "career.jobs_challenge": CareerJobsChallenge;
406
- "career.moa": CareerMoa;
407
- "career.ref_app_statuses": CareerRefAppStatuses;
408
- "career.ref_colleges": CareerRefColleges;
409
- "career.ref_degrees": CareerRefDegrees;
410
- "career.ref_departments": CareerRefDepartments;
411
- "career.ref_domains": CareerRefDomains;
412
- "career.ref_industries": CareerRefIndustries;
413
- "career.ref_job_allowances": CareerRefJobAllowances;
414
- "career.ref_job_categories": CareerRefJobCategories;
415
- "career.ref_job_modes": CareerRefJobModes;
416
- "career.ref_job_pay_freq": CareerRefJobPayFreq;
417
- "career.ref_job_types": CareerRefJobTypes;
418
- "career.ref_levels": CareerRefLevels;
419
- "career.ref_universities": CareerRefUniversities;
420
- "career.ref_university_slugs": CareerRefUniversitySlugs;
421
- "career.resumes": CareerResumes;
422
- "career.saved_jobs": CareerSavedJobs;
423
- "career.sessions": CareerSessions;
424
- "career.top_page_listings": CareerTopPageListings;
425
- "career.top_page_slugs": CareerTopPageSlugs;
426
- "career.top_page_universities": CareerTopPageUniversities;
427
- "career.top_pages": CareerTopPages;
428
- "career.users": CareerUsers;
429
- }
1
+ import type { ColumnType } from "kysely";
2
+ export type CareerApplicationSource = "discord" | "mass" | "normal";
3
+ export type CareerApplicationVisibility = "archived" | "deleted" | "visible";
4
+ export type CareerDiscussionKind = "question" | "reply" | "review";
5
+ export type CareerEmployerDigestType = "daily" | "shortlisted";
6
+ export type CareerJobActivationEvent = "activated" | "deactivated";
7
+ export type CareerJobActivationSource = "employer" | "god";
8
+ export type CareerJobPauseReason = "dormant" | "neglected" | "unresponsive";
9
+ export type CareerJobWaitlistRemovalReason = "left" | "listing_deleted" | "notified";
10
+ export type Generated<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S, I | undefined, U> : ColumnType<T, T | undefined, T>;
11
+ export type Int8 = ColumnType<string, bigint | number | string, bigint | number | string>;
12
+ export type Json = JsonValue;
13
+ export type JsonArray = JsonValue[];
14
+ export type JsonObject = {
15
+ [x: string]: JsonValue | undefined;
16
+ };
17
+ export type JsonPrimitive = boolean | number | string | null;
18
+ export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
19
+ export type Numeric = ColumnType<string, number | string, number | string>;
20
+ export type Timestamp = ColumnType<Date, Date | string, Date | string>;
21
+ export interface CareerApplications {
22
+ applied_at: Generated<Timestamp>;
23
+ cover_letter: string | null;
24
+ first_viewed: Timestamp | null;
25
+ id: Generated<string>;
26
+ job_id: string | null;
27
+ notes: string | null;
28
+ resume_id: string | null;
29
+ review: string | null;
30
+ source: CareerApplicationSource | null;
31
+ status: Generated<number>;
32
+ top_page_id: string | null;
33
+ top_page_university_id: string | null;
34
+ updated_at: Generated<Timestamp | null>;
35
+ user_id: string | null;
36
+ visibility: Generated<CareerApplicationVisibility>;
37
+ }
38
+ export interface CareerApplicationsChallengeSubmission {
39
+ applications_id: string;
40
+ id: Generated<Int8>;
41
+ submission: string | null;
42
+ }
43
+ export interface CareerConversations {
44
+ created_at: Generated<Timestamp>;
45
+ employer_id: string;
46
+ id: Generated<string>;
47
+ user_id: string;
48
+ }
49
+ export interface CareerDiscussions {
50
+ author_employer_user_id: string | null;
51
+ author_label: string | null;
52
+ author_user_id: string | null;
53
+ body: string;
54
+ created_at: Generated<Timestamp>;
55
+ employer_notified_at: Timestamp | null;
56
+ id: Generated<string>;
57
+ kind: CareerDiscussionKind;
58
+ link: string | null;
59
+ parent_id: string | null;
60
+ rating: number | null;
61
+ tags: Generated<string[] | null>;
62
+ thread_id: string;
63
+ }
64
+ export interface CareerDiscussionThreads {
65
+ created_at: Generated<Timestamp>;
66
+ employer_id: string;
67
+ id: Generated<string>;
68
+ job_id: string | null;
69
+ }
70
+ export interface CareerEmployerDigestSends {
71
+ applications: number;
72
+ employer_id: string;
73
+ employer_user_id: string | null;
74
+ id: Generated<string>;
75
+ sent_at: Generated<Timestamp>;
76
+ type: CareerEmployerDigestType;
77
+ }
78
+ export interface CareerEmployerIomLinkRequests {
79
+ consumed_at: Timestamp | null;
80
+ created_at: Generated<Timestamp>;
81
+ employer_id: string;
82
+ expires_at: Timestamp;
83
+ id: Generated<string>;
84
+ iom_tin: string;
85
+ token_hash: string;
86
+ }
87
+ export interface CareerEmployers {
88
+ accepted_universities: Generated<string[]>;
89
+ accepts_non_university: Generated<boolean>;
90
+ claimed_at: Timestamp | null;
91
+ claimed_by: string | null;
92
+ created_at: Generated<Timestamp>;
93
+ description: string | null;
94
+ email: string | null;
95
+ id: Generated<string>;
96
+ industry: string | null;
97
+ iom_company_id: string | null;
98
+ is_deactivated: Generated<boolean>;
99
+ is_verified: Generated<boolean>;
100
+ job_count: Generated<number>;
101
+ legal_entity_name: string;
102
+ location: string | null;
103
+ logo: string | null;
104
+ name: string;
105
+ owner_user_id: string | null;
106
+ phone_number: string | null;
107
+ tin: string | null;
108
+ updated_at: Generated<Timestamp>;
109
+ website: string | null;
110
+ }
111
+ export interface CareerEmployerUserKeyrings {
112
+ consumed_at: Timestamp | null;
113
+ created_at: Generated<Timestamp>;
114
+ employer_user_id: string;
115
+ expires_at: Timestamp | null;
116
+ hash: string;
117
+ id: Generated<string>;
118
+ }
119
+ export interface CareerEmployerUsers {
120
+ created_at: Generated<Timestamp>;
121
+ email: string;
122
+ employer_id: string;
123
+ first_name: string | null;
124
+ id: Generated<string>;
125
+ is_deactivated: Generated<boolean>;
126
+ is_verified: Generated<boolean>;
127
+ last_name: string | null;
128
+ middle_name: string | null;
129
+ password: string;
130
+ profile_picture: string | null;
131
+ receives_applicant_digest: Generated<boolean>;
132
+ role: Generated<string>;
133
+ updated_at: Generated<Timestamp>;
134
+ }
135
+ export interface CareerGodKeyrings {
136
+ created_at: Generated<Timestamp>;
137
+ employer_user_id: string | null;
138
+ god_id: string | null;
139
+ hash: string;
140
+ id: Generated<string>;
141
+ last_used_at: Timestamp | null;
142
+ ref_employer_id: string | null;
143
+ }
144
+ export interface CareerGods {
145
+ employer_user_id: string;
146
+ id: Generated<string>;
147
+ }
148
+ export interface CareerInternshipFormMappings {
149
+ college_id: string | null;
150
+ department_id: string | null;
151
+ form_group_id: string;
152
+ id: Generated<string>;
153
+ university_id: string | null;
154
+ }
155
+ export interface CareerJobActivationEvents {
156
+ actor_employer_user_id: string | null;
157
+ employer_id: string;
158
+ event: CareerJobActivationEvent;
159
+ id: Generated<string>;
160
+ job_id: string;
161
+ occurred_at: Generated<Timestamp>;
162
+ qualified: Generated<boolean>;
163
+ source: CareerJobActivationSource;
164
+ }
165
+ export interface CareerJobPauses {
166
+ employer_id: string;
167
+ id: Generated<string>;
168
+ job_id: string;
169
+ paused_at: Generated<Timestamp>;
170
+ reason: CareerJobPauseReason;
171
+ unpaused_at: Timestamp | null;
172
+ unpaused_by: string | null;
173
+ }
174
+ export interface CareerJobs {
175
+ allowance: number | null;
176
+ created_at: Generated<Timestamp | null>;
177
+ description: string;
178
+ employer_id: string | null;
179
+ end_date: Int8 | null;
180
+ id: Generated<string>;
181
+ internship_preferences: Generated<Json>;
182
+ is_active: Generated<boolean | null>;
183
+ is_deleted: Generated<boolean>;
184
+ is_unlisted: Generated<boolean>;
185
+ is_year_round: boolean | null;
186
+ last_activated_at: Generated<Timestamp>;
187
+ location: string | null;
188
+ requirements: string | null;
189
+ salary: Numeric | null;
190
+ salary_freq: number | null;
191
+ start_date: Int8 | null;
192
+ title: string;
193
+ updated_at: Generated<Timestamp | null>;
194
+ view_count: Generated<Int8>;
195
+ }
196
+ export interface CareerJobsChallenge {
197
+ description: string | null;
198
+ id: Generated<string>;
199
+ jobs_id: string;
200
+ title: string;
201
+ }
202
+ export interface CareerJobWaitlists {
203
+ created_at: Generated<Timestamp>;
204
+ id: Generated<string>;
205
+ job_id: string;
206
+ notified_at: Timestamp | null;
207
+ removal_reason: CareerJobWaitlistRemovalReason | null;
208
+ removed_at: Timestamp | null;
209
+ user_id: string;
210
+ }
211
+ export interface CareerMoa {
212
+ document_link: string | null;
213
+ employer_id: string;
214
+ expires_at: Generated<Timestamp>;
215
+ id: Generated<string>;
216
+ start_date: Generated<Timestamp>;
217
+ status: Generated<string | null>;
218
+ university_id: string | null;
219
+ }
220
+ export interface CareerPrismaMigrations {
221
+ applied_steps_count: Generated<number>;
222
+ checksum: string;
223
+ finished_at: Timestamp | null;
224
+ id: string;
225
+ logs: string | null;
226
+ migration_name: string;
227
+ rolled_back_at: Timestamp | null;
228
+ started_at: Generated<Timestamp>;
229
+ }
230
+ export interface CareerRefAppStatuses {
231
+ id: Generated<number>;
232
+ name: string;
233
+ order: number;
234
+ }
235
+ export interface CareerRefColleges {
236
+ id: Generated<string>;
237
+ name: string;
238
+ short_name: Generated<string>;
239
+ university_id: string;
240
+ }
241
+ export interface CareerRefDegrees {
242
+ id: Generated<string>;
243
+ name: string;
244
+ type: string;
245
+ university_id: string;
246
+ }
247
+ export interface CareerRefDepartments {
248
+ college_id: Generated<string>;
249
+ id: Generated<string>;
250
+ name: string;
251
+ short_name: string;
252
+ }
253
+ export interface CareerRefDomains {
254
+ id: Generated<string>;
255
+ name: string;
256
+ university_id: string;
257
+ }
258
+ export interface CareerRefIndustries {
259
+ id: Generated<string>;
260
+ name: string;
261
+ }
262
+ export interface CareerRefJobAllowances {
263
+ id: Generated<number>;
264
+ name: string;
265
+ }
266
+ export interface CareerRefJobCategories {
267
+ id: Generated<string>;
268
+ name: string;
269
+ order: number;
270
+ parent_id: string | null;
271
+ }
272
+ export interface CareerRefJobModes {
273
+ id: Generated<number>;
274
+ name: string;
275
+ }
276
+ export interface CareerRefJobPayFreq {
277
+ description: string;
278
+ factor: number | null;
279
+ id: Generated<number>;
280
+ name: string;
281
+ }
282
+ export interface CareerRefJobTypes {
283
+ id: Generated<number>;
284
+ name: string;
285
+ }
286
+ export interface CareerRefLevels {
287
+ grad_date: Generated<Timestamp | null>;
288
+ id: Generated<number>;
289
+ name: string;
290
+ order: number;
291
+ }
292
+ export interface CareerRefUniversities {
293
+ accent_hex: string | null;
294
+ id: Generated<string>;
295
+ iom_university_id: string | null;
296
+ name: string;
297
+ short_name: string | null;
298
+ }
299
+ export interface CareerRefUniversitySlugs {
300
+ created_at: Generated<Timestamp>;
301
+ slug: string;
302
+ university_id: string;
303
+ }
304
+ export interface CareerResumes {
305
+ filename: string;
306
+ id: Generated<string>;
307
+ is_deleted: Generated<boolean>;
308
+ label: string;
309
+ uploaded_at: Generated<Timestamp>;
310
+ user_id: string;
311
+ }
312
+ export interface CareerSavedJobs {
313
+ id: Generated<string>;
314
+ job_id: string | null;
315
+ saved_at: Generated<Timestamp | null>;
316
+ user_id: string | null;
317
+ }
318
+ export interface CareerSessions {
319
+ employer_id: string | null;
320
+ id: Generated<string>;
321
+ owner_id: string;
322
+ subaccount_id: string | null;
323
+ timestamp: Generated<Timestamp>;
324
+ user_id: string | null;
325
+ }
326
+ export interface CareerTopPageListings {
327
+ added_at: Generated<Timestamp>;
328
+ id: Generated<string>;
329
+ job_id: string;
330
+ page_id: string;
331
+ position: number;
332
+ removed_at: Timestamp | null;
333
+ }
334
+ export interface CareerTopPages {
335
+ created_at: Generated<Timestamp>;
336
+ id: Generated<string>;
337
+ is_published: Generated<boolean>;
338
+ name: string;
339
+ slug: string;
340
+ updated_at: Generated<Timestamp>;
341
+ }
342
+ export interface CareerTopPageSlugs {
343
+ created_at: Generated<Timestamp>;
344
+ page_id: string;
345
+ slug: string;
346
+ }
347
+ export interface CareerTopPageUniversities {
348
+ created_at: Generated<Timestamp>;
349
+ page_id: string;
350
+ university_id: string;
351
+ }
352
+ export interface CareerUsers {
353
+ acknowledged_auto_apply: Generated<boolean>;
354
+ apply_for_me: Generated<boolean | null>;
355
+ auto_apply_enabled_at: Timestamp | null;
356
+ bio: string | null;
357
+ calendar_link: string | null;
358
+ college: string | null;
359
+ created_at: Generated<Timestamp | null>;
360
+ default_resume: string | null;
361
+ degree: string | null;
362
+ department: string | null;
363
+ discord_user_id: string | null;
364
+ edu_verification_email: string | null;
365
+ email: string;
366
+ expected_graduation_date: Timestamp | null;
367
+ first_name: string | null;
368
+ form_group_id: string | null;
369
+ form_group_joined_at: Timestamp | null;
370
+ github_link: string | null;
371
+ id: Generated<string>;
372
+ internship_moa_fields: Generated<Json>;
373
+ internship_preferences: Generated<Json>;
374
+ is_deactivated: Generated<boolean | null>;
375
+ is_verified: Generated<boolean>;
376
+ last_name: string | null;
377
+ linkedin_link: string | null;
378
+ middle_name: string | null;
379
+ phone_number: string | null;
380
+ portfolio_link: string | null;
381
+ profile_picture: string | null;
382
+ resume: string | null;
383
+ signatory_account_id: string | null;
384
+ university: string | null;
385
+ updated_at: Generated<Timestamp | null>;
386
+ verification_hash: string;
387
+ year_level: number | null;
388
+ }
389
+ export interface DB {
390
+ "career._prisma_migrations": CareerPrismaMigrations;
391
+ "career.applications": CareerApplications;
392
+ "career.applications_challenge_submission": CareerApplicationsChallengeSubmission;
393
+ "career.conversations": CareerConversations;
394
+ "career.discussion_threads": CareerDiscussionThreads;
395
+ "career.discussions": CareerDiscussions;
396
+ "career.employer_digest_sends": CareerEmployerDigestSends;
397
+ "career.employer_iom_link_requests": CareerEmployerIomLinkRequests;
398
+ "career.employer_user_keyrings": CareerEmployerUserKeyrings;
399
+ "career.employer_users": CareerEmployerUsers;
400
+ "career.employers": CareerEmployers;
401
+ "career.god_keyrings": CareerGodKeyrings;
402
+ "career.gods": CareerGods;
403
+ "career.internship_form_mappings": CareerInternshipFormMappings;
404
+ "career.job_activation_events": CareerJobActivationEvents;
405
+ "career.job_pauses": CareerJobPauses;
406
+ "career.job_waitlists": CareerJobWaitlists;
407
+ "career.jobs": CareerJobs;
408
+ "career.jobs_challenge": CareerJobsChallenge;
409
+ "career.moa": CareerMoa;
410
+ "career.ref_app_statuses": CareerRefAppStatuses;
411
+ "career.ref_colleges": CareerRefColleges;
412
+ "career.ref_degrees": CareerRefDegrees;
413
+ "career.ref_departments": CareerRefDepartments;
414
+ "career.ref_domains": CareerRefDomains;
415
+ "career.ref_industries": CareerRefIndustries;
416
+ "career.ref_job_allowances": CareerRefJobAllowances;
417
+ "career.ref_job_categories": CareerRefJobCategories;
418
+ "career.ref_job_modes": CareerRefJobModes;
419
+ "career.ref_job_pay_freq": CareerRefJobPayFreq;
420
+ "career.ref_job_types": CareerRefJobTypes;
421
+ "career.ref_levels": CareerRefLevels;
422
+ "career.ref_universities": CareerRefUniversities;
423
+ "career.ref_university_slugs": CareerRefUniversitySlugs;
424
+ "career.resumes": CareerResumes;
425
+ "career.saved_jobs": CareerSavedJobs;
426
+ "career.sessions": CareerSessions;
427
+ "career.top_page_listings": CareerTopPageListings;
428
+ "career.top_page_slugs": CareerTopPageSlugs;
429
+ "career.top_page_universities": CareerTopPageUniversities;
430
+ "career.top_pages": CareerTopPages;
431
+ "career.users": CareerUsers;
432
+ }