@betterinternship/schema 1.29.0 → 1.31.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,432 +1,1092 @@
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
- }
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 InternalAuthEventType = "expired" | "impersonation_ended" | "impersonation_started" | "login" | "logout" | "revoked";
13
+ export type InternalAuthRealm = "company" | "employer" | "god" | "signatory" | "student" | "university";
14
+ export type InternalLinkClickOutcome = "expired" | "invalid" | "revoked" | "valid";
15
+ export type InternalLinkDomain = "admin" | "career_api" | "docs" | "employer" | "moa" | "student" | "uni";
16
+ export type InternalMqJobStatus = "done" | "failed" | "processing" | "queued";
17
+ export type InternalProcessStatus = "canceled" | "failed" | "handled" | "pending";
18
+ export type InternalSocialChannel = "facebook" | "telegram";
19
+ export type InternalSocialPostStatus = "cancelled" | "failed" | "posted" | "queued" | "released" | "sending" | "skipped";
20
+ export type InternalTaskStatus = "failed" | "handled" | "pending" | "retrying";
21
+ export type IomAuditEventType = "auto_request_enabled" | "auto_request_revoked" | "auto_sign_enabled" | "auto_sign_revoked" | "career_nudge_sent" | "company_blacklisted" | "company_invite_accepted" | "company_invite_cancelled" | "company_invite_registered" | "company_invite_sent" | "company_review_approved" | "company_review_rejected" | "company_review_requested" | "company_unblacklisted" | "legacy_document_uploaded" | "legacy_moa_bulk_uploaded" | "legacy_moa_created" | "moa_issued" | "moa_renewal_requested" | "moa_revoked" | "university_account_deactivated" | "university_account_invited" | "university_account_reactivated" | "university_account_role_changed" | "university_account_signed_in" | "university_profile_updated";
22
+ export type IomAuthPurpose = "auto_sign_revoke" | "invite" | "moa_signature" | "password_reset";
23
+ export type IomAuthSubjectType = "auto_sign_consent" | "company" | "company_invite" | "company_listing_invite" | "company_moa_invite" | "moa_request" | "university_account";
24
+ export type IomAutoConsentKind = "delegate" | "owner";
25
+ export type IomCompanyInviteKind = "listing" | "moa";
26
+ export type IomCompanyInviteStatus = "accepted" | "cancelled" | "expired" | "pending" | "used_waiting";
27
+ export type IomCompanyReviewStatus = "approved" | "rejected" | "superseded";
28
+ export type IomCompanyType = "corporation" | "government_agency" | "partnership" | "sole_proprietorship";
29
+ export type IomMoaRequestStatus = "awaiting_signature" | "awaiting_verification" | "cancelled" | "expired" | "failed" | "issued";
30
+ export type IomMoaStatus = "active" | "rejected";
31
+ export type IomQueuedMoaRequestStatus = "failed" | "fulfilled" | "pending";
32
+ export type IomUniversityRole = "admin" | "staff" | "superadmin";
33
+ export type Json = JsonValue;
34
+ export type JsonArray = JsonValue[];
35
+ export type JsonObject = {
36
+ [x: string]: JsonValue | undefined;
37
+ };
38
+ export type JsonPrimitive = boolean | number | string | null;
39
+ export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
40
+ export type Numeric = ColumnType<string, number | string, number | string>;
41
+ export type Timestamp = ColumnType<Date, Date | string, Date | string>;
42
+ export interface CareerApplications {
43
+ applied_at: Generated<Timestamp>;
44
+ cover_letter: string | null;
45
+ first_viewed: Timestamp | null;
46
+ id: Generated<string>;
47
+ job_id: string | null;
48
+ notes: string | null;
49
+ resume_id: string | null;
50
+ review: string | null;
51
+ source: CareerApplicationSource | null;
52
+ status: Generated<number>;
53
+ top_page_id: string | null;
54
+ top_page_university_id: string | null;
55
+ updated_at: Generated<Timestamp | null>;
56
+ user_id: string | null;
57
+ visibility: Generated<CareerApplicationVisibility>;
58
+ }
59
+ export interface CareerApplicationsChallengeSubmission {
60
+ applications_id: string;
61
+ id: Generated<Int8>;
62
+ submission: string | null;
63
+ }
64
+ export interface CareerConversations {
65
+ created_at: Generated<Timestamp>;
66
+ employer_id: string;
67
+ id: Generated<string>;
68
+ user_id: string;
69
+ }
70
+ export interface CareerDiscussions {
71
+ author_employer_user_id: string | null;
72
+ author_label: string | null;
73
+ author_user_id: string | null;
74
+ body: string;
75
+ created_at: Generated<Timestamp>;
76
+ employer_notified_at: Timestamp | null;
77
+ id: Generated<string>;
78
+ kind: CareerDiscussionKind;
79
+ link: string | null;
80
+ parent_id: string | null;
81
+ rating: number | null;
82
+ tags: Generated<string[] | null>;
83
+ thread_id: string;
84
+ }
85
+ export interface CareerDiscussionThreads {
86
+ created_at: Generated<Timestamp>;
87
+ employer_id: string;
88
+ id: Generated<string>;
89
+ job_id: string | null;
90
+ }
91
+ export interface CareerEmployerDigestSends {
92
+ applications: number;
93
+ employer_id: string;
94
+ employer_user_id: string | null;
95
+ id: Generated<string>;
96
+ sent_at: Generated<Timestamp>;
97
+ type: CareerEmployerDigestType;
98
+ }
99
+ export interface CareerEmployerIomLinkRequests {
100
+ consumed_at: Timestamp | null;
101
+ created_at: Generated<Timestamp>;
102
+ employer_id: string;
103
+ expires_at: Timestamp;
104
+ id: Generated<string>;
105
+ iom_tin: string;
106
+ token_hash: string;
107
+ }
108
+ export interface CareerEmployers {
109
+ accepted_universities: Generated<string[]>;
110
+ accepts_non_university: Generated<boolean>;
111
+ claimed_at: Timestamp | null;
112
+ claimed_by: string | null;
113
+ created_at: Generated<Timestamp>;
114
+ description: string | null;
115
+ email: string | null;
116
+ id: Generated<string>;
117
+ industry: string | null;
118
+ iom_company_id: string | null;
119
+ is_deactivated: Generated<boolean>;
120
+ is_verified: Generated<boolean>;
121
+ job_count: Generated<number>;
122
+ legal_entity_name: string;
123
+ location: string | null;
124
+ logo: string | null;
125
+ name: string;
126
+ our_take: string | null;
127
+ owner_user_id: string | null;
128
+ phone_number: string | null;
129
+ tin: string | null;
130
+ updated_at: Generated<Timestamp>;
131
+ website: string | null;
132
+ }
133
+ export interface CareerEmployerUserKeyrings {
134
+ consumed_at: Timestamp | null;
135
+ created_at: Generated<Timestamp>;
136
+ employer_user_id: string;
137
+ expires_at: Timestamp | null;
138
+ hash: string;
139
+ id: Generated<string>;
140
+ }
141
+ export interface CareerEmployerUsers {
142
+ created_at: Generated<Timestamp>;
143
+ email: string;
144
+ employer_id: string;
145
+ first_name: string | null;
146
+ id: Generated<string>;
147
+ is_deactivated: Generated<boolean>;
148
+ is_verified: Generated<boolean>;
149
+ last_name: string | null;
150
+ middle_name: string | null;
151
+ password: string;
152
+ profile_picture: string | null;
153
+ receives_applicant_digest: Generated<boolean>;
154
+ role: Generated<string>;
155
+ updated_at: Generated<Timestamp>;
156
+ }
157
+ export interface CareerGodKeyrings {
158
+ created_at: Generated<Timestamp>;
159
+ employer_user_id: string | null;
160
+ god_id: string | null;
161
+ hash: string;
162
+ id: Generated<string>;
163
+ last_used_at: Timestamp | null;
164
+ ref_employer_id: string | null;
165
+ }
166
+ export interface CareerGods {
167
+ employer_user_id: string;
168
+ id: Generated<string>;
169
+ }
170
+ export interface CareerInternshipFormMappings {
171
+ college_id: string | null;
172
+ department_id: string | null;
173
+ form_group_id: string;
174
+ id: Generated<string>;
175
+ university_id: string | null;
176
+ }
177
+ export interface CareerJobActivationEvents {
178
+ actor_employer_user_id: string | null;
179
+ employer_id: string;
180
+ event: CareerJobActivationEvent;
181
+ id: Generated<string>;
182
+ job_id: string;
183
+ occurred_at: Generated<Timestamp>;
184
+ qualified: Generated<boolean>;
185
+ source: CareerJobActivationSource;
186
+ }
187
+ export interface CareerJobPauses {
188
+ employer_id: string;
189
+ id: Generated<string>;
190
+ job_id: string;
191
+ paused_at: Generated<Timestamp>;
192
+ reason: CareerJobPauseReason;
193
+ unpaused_at: Timestamp | null;
194
+ unpaused_by: string | null;
195
+ }
196
+ export interface CareerJobs {
197
+ allowance: number | null;
198
+ created_at: Generated<Timestamp | null>;
199
+ description: string;
200
+ employer_id: string | null;
201
+ end_date: Int8 | null;
202
+ id: Generated<string>;
203
+ internship_preferences: Generated<Json>;
204
+ is_active: Generated<boolean | null>;
205
+ is_deleted: Generated<boolean>;
206
+ is_unlisted: Generated<boolean>;
207
+ is_year_round: boolean | null;
208
+ last_activated_at: Generated<Timestamp>;
209
+ location: string | null;
210
+ our_take: string | null;
211
+ requirements: string | null;
212
+ salary: Numeric | null;
213
+ salary_freq: number | null;
214
+ start_date: Int8 | null;
215
+ title: string;
216
+ updated_at: Generated<Timestamp | null>;
217
+ view_count: Generated<Int8>;
218
+ }
219
+ export interface CareerJobsChallenge {
220
+ description: string | null;
221
+ id: Generated<string>;
222
+ jobs_id: string;
223
+ title: string;
224
+ }
225
+ export interface CareerJobWaitlists {
226
+ created_at: Generated<Timestamp>;
227
+ id: Generated<string>;
228
+ job_id: string;
229
+ notified_at: Timestamp | null;
230
+ removal_reason: CareerJobWaitlistRemovalReason | null;
231
+ removed_at: Timestamp | null;
232
+ user_id: string;
233
+ }
234
+ export interface CareerMoa {
235
+ document_link: string | null;
236
+ employer_id: string;
237
+ expires_at: Generated<Timestamp>;
238
+ id: Generated<string>;
239
+ start_date: Generated<Timestamp>;
240
+ status: Generated<string | null>;
241
+ university_id: string | null;
242
+ }
243
+ export interface CareerPrismaMigrations {
244
+ applied_steps_count: Generated<number>;
245
+ checksum: string;
246
+ finished_at: Timestamp | null;
247
+ id: string;
248
+ logs: string | null;
249
+ migration_name: string;
250
+ rolled_back_at: Timestamp | null;
251
+ started_at: Generated<Timestamp>;
252
+ }
253
+ export interface CareerRefAppStatuses {
254
+ id: Generated<number>;
255
+ name: string;
256
+ order: number;
257
+ }
258
+ export interface CareerRefColleges {
259
+ id: Generated<string>;
260
+ name: string;
261
+ short_name: Generated<string>;
262
+ university_id: string;
263
+ }
264
+ export interface CareerRefDegrees {
265
+ id: Generated<string>;
266
+ name: string;
267
+ type: string;
268
+ university_id: string;
269
+ }
270
+ export interface CareerRefDepartments {
271
+ college_id: Generated<string>;
272
+ id: Generated<string>;
273
+ name: string;
274
+ short_name: string;
275
+ }
276
+ export interface CareerRefDomains {
277
+ id: Generated<string>;
278
+ name: string;
279
+ university_id: string;
280
+ }
281
+ export interface CareerRefIndustries {
282
+ id: Generated<string>;
283
+ name: string;
284
+ }
285
+ export interface CareerRefJobAllowances {
286
+ id: Generated<number>;
287
+ name: string;
288
+ }
289
+ export interface CareerRefJobCategories {
290
+ id: Generated<string>;
291
+ name: string;
292
+ order: number;
293
+ parent_id: string | null;
294
+ }
295
+ export interface CareerRefJobModes {
296
+ id: Generated<number>;
297
+ name: string;
298
+ }
299
+ export interface CareerRefJobPayFreq {
300
+ description: string;
301
+ factor: number | null;
302
+ id: Generated<number>;
303
+ name: string;
304
+ }
305
+ export interface CareerRefJobTypes {
306
+ id: Generated<number>;
307
+ name: string;
308
+ }
309
+ export interface CareerRefLevels {
310
+ grad_date: Generated<Timestamp | null>;
311
+ id: Generated<number>;
312
+ name: string;
313
+ order: number;
314
+ }
315
+ export interface CareerRefUniversities {
316
+ accent_hex: string | null;
317
+ id: Generated<string>;
318
+ iom_university_id: string | null;
319
+ name: string;
320
+ short_name: string | null;
321
+ }
322
+ export interface CareerRefUniversitySlugs {
323
+ created_at: Generated<Timestamp>;
324
+ slug: string;
325
+ university_id: string;
326
+ }
327
+ export interface CareerResumes {
328
+ filename: string;
329
+ id: Generated<string>;
330
+ is_deleted: Generated<boolean>;
331
+ label: string;
332
+ uploaded_at: Generated<Timestamp>;
333
+ user_id: string;
334
+ }
335
+ export interface CareerSavedJobs {
336
+ id: Generated<string>;
337
+ job_id: string | null;
338
+ saved_at: Generated<Timestamp | null>;
339
+ user_id: string | null;
340
+ }
341
+ export interface CareerSessions {
342
+ employer_id: string | null;
343
+ id: Generated<string>;
344
+ owner_id: string;
345
+ subaccount_id: string | null;
346
+ timestamp: Generated<Timestamp>;
347
+ user_id: string | null;
348
+ }
349
+ export interface CareerTopPageListings {
350
+ added_at: Generated<Timestamp>;
351
+ id: Generated<string>;
352
+ job_id: string;
353
+ page_id: string;
354
+ position: number;
355
+ removed_at: Timestamp | null;
356
+ }
357
+ export interface CareerTopPages {
358
+ created_at: Generated<Timestamp>;
359
+ id: Generated<string>;
360
+ is_published: Generated<boolean>;
361
+ name: string;
362
+ slug: string;
363
+ updated_at: Generated<Timestamp>;
364
+ }
365
+ export interface CareerTopPageSlugs {
366
+ created_at: Generated<Timestamp>;
367
+ page_id: string;
368
+ slug: string;
369
+ }
370
+ export interface CareerTopPageUniversities {
371
+ created_at: Generated<Timestamp>;
372
+ page_id: string;
373
+ university_id: string;
374
+ }
375
+ export interface CareerUsers {
376
+ acknowledged_auto_apply: Generated<boolean>;
377
+ apply_for_me: Generated<boolean | null>;
378
+ auto_apply_enabled_at: Timestamp | null;
379
+ bio: string | null;
380
+ calendar_link: string | null;
381
+ college: string | null;
382
+ created_at: Generated<Timestamp | null>;
383
+ default_resume: string | null;
384
+ degree: string | null;
385
+ department: string | null;
386
+ discord_user_id: string | null;
387
+ edu_verification_email: string | null;
388
+ email: string;
389
+ expected_graduation_date: Timestamp | null;
390
+ first_name: string | null;
391
+ form_group_id: string | null;
392
+ form_group_joined_at: Timestamp | null;
393
+ github_link: string | null;
394
+ id: Generated<string>;
395
+ internship_moa_fields: Generated<Json>;
396
+ internship_preferences: Generated<Json>;
397
+ is_deactivated: Generated<boolean | null>;
398
+ is_verified: Generated<boolean>;
399
+ last_name: string | null;
400
+ linkedin_link: string | null;
401
+ middle_name: string | null;
402
+ phone_number: string | null;
403
+ portfolio_link: string | null;
404
+ profile_picture: string | null;
405
+ resume: string | null;
406
+ signatory_account_id: string | null;
407
+ university: string | null;
408
+ updated_at: Generated<Timestamp | null>;
409
+ verification_hash: string;
410
+ year_level: number | null;
411
+ }
412
+ export interface DocumentsBaseDocuments {
413
+ created_at: Generated<Timestamp>;
414
+ id: Generated<string>;
415
+ name: string;
416
+ url: string;
417
+ }
418
+ export interface DocumentsBaseImages {
419
+ filename: string;
420
+ id: Generated<string>;
421
+ source_text: string;
422
+ url: string;
423
+ }
424
+ export interface DocumentsExternalDocuments {
425
+ code: string | null;
426
+ effective_date: Timestamp | null;
427
+ expiry_date: Timestamp | null;
428
+ form_label: string | null;
429
+ id: Generated<string>;
430
+ uploaded_at: Generated<Timestamp>;
431
+ url: string;
432
+ }
433
+ export interface DocumentsFieldTemplateRegistry {
434
+ field_schema_defaults: Json | null;
435
+ id: Generated<string>;
436
+ is_phantom: Generated<boolean>;
437
+ label: string;
438
+ name: string;
439
+ party: Generated<string | null>;
440
+ prefiller: string | null;
441
+ preset: Generated<string>;
442
+ shared: Generated<boolean>;
443
+ source: string;
444
+ tag: string | null;
445
+ tooltip_label: string | null;
446
+ type: Generated<string>;
447
+ validator: string | null;
448
+ validator_ir: Json | null;
449
+ }
450
+ export interface DocumentsFormGroups {
451
+ code: string | null;
452
+ coordinator_id: string | null;
453
+ description: string;
454
+ forms: string[];
455
+ id: Generated<string>;
456
+ }
457
+ export interface DocumentsFormTemplateRegistry {
458
+ base_document_id: string | null;
459
+ created_by: string | null;
460
+ form_metadata_id: Generated<string>;
461
+ id: Generated<string>;
462
+ label: string | null;
463
+ name: string;
464
+ source_kind: string | null;
465
+ source_template_id: string | null;
466
+ time_generated: Generated<Timestamp | null>;
467
+ version: Generated<number>;
468
+ }
469
+ export interface DocumentsPendingDocuments {
470
+ audit: Json | null;
471
+ base_document_id: string | null;
472
+ date_made: Generated<Timestamp>;
473
+ descriptors: Generated<Json>;
474
+ form_label: string | null;
475
+ form_name: string | null;
476
+ id: Generated<string>;
477
+ inputs: Generated<Json>;
478
+ latest_document_url: string | null;
479
+ pending_parties: Generated<Json>;
480
+ signatories: Generated<Json>;
481
+ subscribers: Json | null;
482
+ version: number | null;
483
+ }
484
+ export interface DocumentsSignedDocuments {
485
+ base_document_id: string | null;
486
+ date_made: Generated<Timestamp>;
487
+ descriptors: Generated<Json>;
488
+ effective_date: Timestamp | null;
489
+ expiry_date: Timestamp | null;
490
+ form_label: string | null;
491
+ form_name: string | null;
492
+ id: Generated<string>;
493
+ inputs: Json | null;
494
+ inputs_hash: string | null;
495
+ notarized_url: string | null;
496
+ schema: Json | null;
497
+ schema_hash: string | null;
498
+ signatories: Json | null;
499
+ url: string;
500
+ verification_code: string | null;
501
+ }
502
+ export interface FormsCoordinatorAccounts {
503
+ created_at: Generated<Timestamp>;
504
+ email: string;
505
+ forms: string[];
506
+ id: Generated<string>;
507
+ name: string | null;
508
+ signatory_account_id: string | null;
509
+ }
510
+ export interface FormsFormProcesses {
511
+ created_at: Generated<Timestamp>;
512
+ display_information: Json | null;
513
+ form_inputs: Generated<Json | null>;
514
+ form_label: string | null;
515
+ form_name: string;
516
+ form_version: Generated<number>;
517
+ id: Generated<string>;
518
+ initiator_id: string | null;
519
+ latest_document_url: string | null;
520
+ prefilled_document_id: string | null;
521
+ rejection_reason: string | null;
522
+ schema_version: Generated<number>;
523
+ signed_document_id: string | null;
524
+ signees: Generated<Json>;
525
+ signing_parties: Generated<Json>;
526
+ subscribers: Generated<Json>;
527
+ timestamp: Generated<Timestamp>;
528
+ }
529
+ export interface FormsGods {
530
+ id: Generated<string>;
531
+ signatory_account: Generated<string>;
532
+ }
533
+ export interface FormsSignatoryAccounts {
534
+ auto_form_permissions: Json | null;
535
+ autofill: Generated<Json | null>;
536
+ created_at: Generated<Timestamp>;
537
+ email: string;
538
+ honorific: string | null;
539
+ id: Generated<string>;
540
+ name: string | null;
541
+ signature: string | null;
542
+ title: string | null;
543
+ }
544
+ export interface FormsSignatoryAudits {
545
+ audit: Generated<Json>;
546
+ created_at: Generated<Timestamp>;
547
+ id: Generated<string>;
548
+ ip_address: string | null;
549
+ signatory_id: string;
550
+ }
551
+ export interface FormsSignatoryForms {
552
+ first_viewed: Timestamp | null;
553
+ form_label: string | null;
554
+ form_name: string;
555
+ form_process_id: string;
556
+ form_process_status: string | null;
557
+ id: Generated<string>;
558
+ signatory_id: string | null;
559
+ signing_keyring_id: string | null;
560
+ signing_party_id: string | null;
561
+ timestamp: Generated<Timestamp>;
562
+ }
563
+ export interface FormsSignatoryFormSettings {
564
+ created_at: Generated<Timestamp>;
565
+ form_name: string;
566
+ id: Generated<string>;
567
+ settings: Json;
568
+ signatory_id: string;
569
+ }
570
+ export interface FormsSignatoryKeyring {
571
+ consumed: Generated<boolean>;
572
+ consumed_at: Timestamp | null;
573
+ created_at: Generated<Timestamp>;
574
+ hash: string;
575
+ id: Generated<string>;
576
+ signatory_account_id: string;
577
+ }
578
+ export interface InternalAppConfig {
579
+ key: string;
580
+ updated_at: Generated<Timestamp>;
581
+ updated_by: string | null;
582
+ value: string;
583
+ }
584
+ export interface InternalAuthEventLog {
585
+ at: Generated<Timestamp>;
586
+ email: string | null;
587
+ event: InternalAuthEventType;
588
+ god_id: string | null;
589
+ id: Generated<string>;
590
+ realm: InternalAuthRealm;
591
+ reason: string | null;
592
+ session_id: string | null;
593
+ subject_id: string;
594
+ }
595
+ export interface InternalAuthSessions {
596
+ created_at: Generated<Timestamp>;
597
+ email: string | null;
598
+ expires_at: Timestamp;
599
+ id: Generated<string>;
600
+ impersonated_by_session_id: string | null;
601
+ last_seen_at: Generated<Timestamp>;
602
+ realm: InternalAuthRealm;
603
+ subject_id: string;
604
+ token_hash: string;
605
+ }
606
+ export interface InternalEmailDeliveryEvents {
607
+ attempts: number | null;
608
+ correlation_detail: string | null;
609
+ correlation_id: string | null;
610
+ correlation_type: string | null;
611
+ created_at: Generated<Timestamp>;
612
+ error_message: string | null;
613
+ event_type: string;
614
+ feedback_id: string;
615
+ first_opened_at: Timestamp | null;
616
+ handled_at: Timestamp | null;
617
+ id: Generated<string>;
618
+ message_id: string | null;
619
+ open_count: Generated<number>;
620
+ recipient_email: string;
621
+ resolved_at: Timestamp | null;
622
+ subject: string | null;
623
+ }
624
+ export interface InternalGodAuditLog {
625
+ action: string;
626
+ at: Generated<Timestamp>;
627
+ god_id: string;
628
+ id: Generated<string>;
629
+ outcome: string;
630
+ params: Json | null;
631
+ session_id: string | null;
632
+ target_id: string | null;
633
+ target_type: string | null;
634
+ }
635
+ export interface InternalGods {
636
+ created_at: Generated<Timestamp>;
637
+ display_name: string;
638
+ email: string;
639
+ id: Generated<string>;
640
+ is_deactivated: Generated<boolean>;
641
+ preferences: Generated<Json>;
642
+ }
643
+ export interface InternalMqJobs {
644
+ created_at: Generated<Timestamp>;
645
+ error: string | null;
646
+ id: Generated<string>;
647
+ owner_id: string | null;
648
+ progress_done: number | null;
649
+ progress_failed: number | null;
650
+ progress_total: number | null;
651
+ result: Json | null;
652
+ status: Generated<InternalMqJobStatus>;
653
+ type: string;
654
+ updated_at: Generated<Timestamp>;
655
+ }
656
+ export interface InternalProcesses {
657
+ base_inputs: Generated<Json | null>;
658
+ error: Json | null;
659
+ id: Generated<string>;
660
+ name: string;
661
+ result: Json | null;
662
+ status: Generated<InternalProcessStatus>;
663
+ timestamp: Generated<Timestamp>;
664
+ }
665
+ export interface InternalRecipientLinkClicks {
666
+ context: Json | null;
667
+ created_at: Generated<Timestamp>;
668
+ id: Generated<string>;
669
+ ip: string | null;
670
+ link_id: string | null;
671
+ link_type: string;
672
+ outcome: InternalLinkClickOutcome;
673
+ recipient_id: string;
674
+ user_agent: string | null;
675
+ }
676
+ export interface InternalSlugs {
677
+ created_at: Generated<Timestamp>;
678
+ destination_host: InternalLinkDomain | null;
679
+ domain: InternalLinkDomain;
680
+ slug: string;
681
+ url: string;
682
+ }
683
+ export interface InternalSocialPosts {
684
+ cancelled_by: string | null;
685
+ channel: InternalSocialChannel;
686
+ error: string | null;
687
+ external_post_id: string | null;
688
+ finished_at: Timestamp | null;
689
+ id: Generated<string>;
690
+ job_id: string;
691
+ queued_at: Generated<Timestamp>;
692
+ released_at: Timestamp | null;
693
+ sending_at: Timestamp | null;
694
+ skip_reason: string | null;
695
+ status: Generated<InternalSocialPostStatus>;
696
+ }
697
+ export interface InternalTasks {
698
+ error: string | null;
699
+ handler_id: string;
700
+ id: Generated<string>;
701
+ inputs: Json | null;
702
+ internal_id: string;
703
+ parent_ids: string[] | null;
704
+ process_id: string;
705
+ process_name: string;
706
+ result: Json | null;
707
+ status: Generated<InternalTaskStatus>;
708
+ timestamp: Generated<Timestamp>;
709
+ }
710
+ export interface InternalTestInboxes {
711
+ added_by: string;
712
+ created_at: Generated<Timestamp>;
713
+ email: string;
714
+ id: Generated<string>;
715
+ kind: string;
716
+ note: string | null;
717
+ verified_at: Timestamp | null;
718
+ }
719
+ export interface InternalTestPresets {
720
+ created_by: string;
721
+ id: Generated<string>;
722
+ name: string;
723
+ panel: string;
724
+ updated_at: Generated<Timestamp>;
725
+ updated_by: string;
726
+ values: Json;
727
+ }
728
+ export interface IomAuditLogs {
729
+ actor_email: string | null;
730
+ company_id: string | null;
731
+ created_at: Generated<Timestamp>;
732
+ detail: string | null;
733
+ event_type: IomAuditEventType;
734
+ id: Generated<string>;
735
+ moa_id: string | null;
736
+ platform_admin_id: string | null;
737
+ university_id: string | null;
738
+ }
739
+ export interface IomAuthTokens {
740
+ consumed_at: Timestamp | null;
741
+ created_at: Generated<Timestamp>;
742
+ expires_at: Timestamp;
743
+ hash: string;
744
+ id: Generated<string>;
745
+ purpose: IomAuthPurpose;
746
+ subject_id: string;
747
+ subject_type: IomAuthSubjectType;
748
+ }
749
+ export interface IomAutoConsents {
750
+ auto_renew: Generated<boolean>;
751
+ company_id: string;
752
+ created_at: Generated<Timestamp>;
753
+ email: string;
754
+ id: Generated<string>;
755
+ kind: Generated<IomAutoConsentKind>;
756
+ proactive: Generated<boolean>;
757
+ revoked_at: Timestamp | null;
758
+ signatory_name: string;
759
+ signatory_title: string;
760
+ signature_data: string;
761
+ signature_type: string;
762
+ template_id: string;
763
+ tin: string | null;
764
+ }
765
+ export interface IomCompanies {
766
+ company_type: IomCompanyType | null;
767
+ cosmetic: Generated<Json>;
768
+ created_at: Generated<Timestamp>;
769
+ document_review_details: Generated<Json>;
770
+ email: string | null;
771
+ email_verified: Generated<boolean>;
772
+ iat_threshold: Timestamp | null;
773
+ id: Generated<string>;
774
+ identity_claims: Generated<Json>;
775
+ is_deactivated: boolean | null;
776
+ is_demo: Generated<boolean>;
777
+ password: string | null;
778
+ registered_address: string | null;
779
+ registered_name: string | null;
780
+ tin: string | null;
781
+ updated_at: Generated<Timestamp>;
782
+ }
783
+ export interface IomCompanyBlacklists {
784
+ company_id: string;
785
+ created_at: Generated<Timestamp>;
786
+ id: Generated<string>;
787
+ reason: string | null;
788
+ university_id: string;
789
+ }
790
+ export interface IomCompanyDocuments {
791
+ company_id: string;
792
+ expires_at: Timestamp | null;
793
+ filename: string;
794
+ id: Generated<string>;
795
+ type: string;
796
+ uploaded_at: Generated<Timestamp>;
797
+ url: string;
798
+ }
799
+ export interface IomCompanyHistorySnapshots {
800
+ company_id: string;
801
+ created_at: Generated<Timestamp>;
802
+ document_ids: Generated<Json>;
803
+ hash: string;
804
+ id: Generated<string>;
805
+ snapshot_json: Json;
806
+ }
807
+ export interface IomCompanyInvites {
808
+ company_name: string | null;
809
+ created_at: Generated<Timestamp>;
810
+ expires_at: Timestamp;
811
+ id: Generated<string>;
812
+ invited_email: string;
813
+ kind: Generated<IomCompanyInviteKind>;
814
+ legacy_company_id: string | null;
815
+ personal_message: string | null;
816
+ status: Generated<IomCompanyInviteStatus>;
817
+ template_id: string | null;
818
+ university_id: string;
819
+ }
820
+ export interface IomCompanyListingInvites {
821
+ accepted_company_id: string | null;
822
+ company_name: string | null;
823
+ created_at: Generated<Timestamp>;
824
+ expires_at: Timestamp;
825
+ id: Generated<string>;
826
+ invited_email: string;
827
+ legacy_company_id: string | null;
828
+ personal_message: string | null;
829
+ status: Generated<IomCompanyInviteStatus>;
830
+ university_id: string;
831
+ }
832
+ export interface IomCompanyMoaInvites {
833
+ accepted_company_id: string | null;
834
+ company_name: string | null;
835
+ created_at: Generated<Timestamp>;
836
+ expires_at: Timestamp;
837
+ id: Generated<string>;
838
+ invited_email: string;
839
+ personal_message: string | null;
840
+ status: Generated<IomCompanyInviteStatus>;
841
+ template_id: string | null;
842
+ university_id: string;
843
+ }
844
+ export interface IomCompanyReviews {
845
+ approval_expires_at: Timestamp | null;
846
+ company_id: string;
847
+ created_at: Generated<Timestamp>;
848
+ document_rejections: Generated<Json>;
849
+ document_review_details: Generated<Json>;
850
+ history_snapshot_id: string | null;
851
+ id: Generated<string>;
852
+ material_hash: string;
853
+ rejection_reason: string | null;
854
+ reviewed_at: Timestamp | null;
855
+ reviewed_by_id: string | null;
856
+ status: IomCompanyReviewStatus | null;
857
+ updated_at: Generated<Timestamp>;
858
+ }
859
+ export interface IomExpiryReminders {
860
+ company_review_id: string | null;
861
+ document_type: string | null;
862
+ id: Generated<string>;
863
+ marker: number;
864
+ moa_id: string | null;
865
+ recipient_email: string;
866
+ sent_at: Generated<Timestamp>;
867
+ }
868
+ export interface IomLegacyCompanies {
869
+ company_details: Generated<Json>;
870
+ company_documents: Generated<Json>;
871
+ company_name: string;
872
+ created_at: Generated<Timestamp>;
873
+ id: Generated<string>;
874
+ moas: Generated<Json>;
875
+ registered_company_id: string | null;
876
+ university_id: string;
877
+ updated_at: Generated<Timestamp>;
878
+ valid_until: Timestamp | null;
879
+ }
880
+ export interface IomMoaRequests {
881
+ auto_signed: Generated<boolean>;
882
+ company_id: string;
883
+ created_at: Generated<Timestamp>;
884
+ expires_at: Timestamp | null;
885
+ failure_reason: string | null;
886
+ id: Generated<string>;
887
+ invite_id: string | null;
888
+ moa_id: string | null;
889
+ signatory_email: string | null;
890
+ signatory_name: string | null;
891
+ signatory_title: string | null;
892
+ signature_data: string | null;
893
+ signature_type: string | null;
894
+ signed_at: Timestamp | null;
895
+ status: Generated<IomMoaRequestStatus>;
896
+ template_id: string;
897
+ university_id: string;
898
+ updated_at: Generated<Timestamp>;
899
+ }
900
+ export interface IomMoas {
901
+ company_id: string;
902
+ created_at: Generated<Timestamp>;
903
+ effective_date: Timestamp;
904
+ expiry_date: Timestamp | null;
905
+ generated_pdf_url: string;
906
+ id: Generated<string>;
907
+ is_expired: boolean | null;
908
+ signatories: Json | null;
909
+ status: IomMoaStatus;
910
+ template_id: string;
911
+ university_id: string;
912
+ verification_code: string | null;
913
+ }
914
+ export interface IomMoaTemplates {
915
+ created_at: Generated<Timestamp>;
916
+ description: string | null;
917
+ field_schema: Generated<Json>;
918
+ id: Generated<string>;
919
+ is_deleted: boolean | null;
920
+ name: string;
921
+ page_count: number;
922
+ page_h: number;
923
+ page_w: number;
924
+ pdf_url: string;
925
+ retired_at: Timestamp | null;
926
+ supersedes_id: string | null;
927
+ term_months: number | null;
928
+ updated_at: Generated<Timestamp>;
929
+ }
930
+ export interface IomPlatformAdmins {
931
+ created_at: Generated<Timestamp>;
932
+ display_name: string;
933
+ email: string;
934
+ id: Generated<string>;
935
+ password: string;
936
+ }
937
+ export interface IomPlatformSettings {
938
+ default_template_id: string | null;
939
+ id: Generated<string>;
940
+ updated_at: Generated<Timestamp>;
941
+ witness_name: string | null;
942
+ witness_signature_url: string | null;
943
+ witness_title: string | null;
944
+ }
945
+ export interface IomQueuedMoaRequests {
946
+ company_id: string;
947
+ created_at: Generated<Timestamp>;
948
+ failure_reason: string | null;
949
+ id: Generated<string>;
950
+ invite_id: string | null;
951
+ rep_name: string;
952
+ rep_signature_data: string;
953
+ rep_signature_type: string;
954
+ rep_title: string;
955
+ signatories: Generated<Json>;
956
+ status: Generated<IomQueuedMoaRequestStatus>;
957
+ template_id: string;
958
+ university_id: string;
959
+ }
960
+ export interface IomUniversities {
961
+ account_holder_name: string | null;
962
+ account_holder_title: string | null;
963
+ address: string | null;
964
+ created_at: Generated<Timestamp>;
965
+ id: Generated<string>;
966
+ is_deactivated: boolean | null;
967
+ is_demo: Generated<boolean>;
968
+ logo_url: string | null;
969
+ registered_name: string;
970
+ rep_name: string | null;
971
+ rep_signature_url: string | null;
972
+ rep_title: string | null;
973
+ signatories: Generated<Json>;
974
+ updated_at: Generated<Timestamp>;
975
+ }
976
+ export interface IomUniversityAccounts {
977
+ activated_at: Timestamp | null;
978
+ created_at: Generated<Timestamp>;
979
+ display_name: string;
980
+ email: string;
981
+ iat_threshold: Timestamp | null;
982
+ id: Generated<string>;
983
+ is_deactivated: boolean | null;
984
+ password: string | null;
985
+ role: IomUniversityRole;
986
+ university_id: string;
987
+ updated_at: Generated<Timestamp>;
988
+ }
989
+ export interface IomUniversityTemplates {
990
+ created_at: Generated<Timestamp>;
991
+ id: Generated<string>;
992
+ is_available: Generated<boolean>;
993
+ template_id: string;
994
+ university_id: string;
995
+ updated_at: Generated<Timestamp>;
996
+ }
997
+ export interface DB {
998
+ "career._prisma_migrations": CareerPrismaMigrations;
999
+ "career.applications": CareerApplications;
1000
+ "career.applications_challenge_submission": CareerApplicationsChallengeSubmission;
1001
+ "career.conversations": CareerConversations;
1002
+ "career.discussion_threads": CareerDiscussionThreads;
1003
+ "career.discussions": CareerDiscussions;
1004
+ "career.employer_digest_sends": CareerEmployerDigestSends;
1005
+ "career.employer_iom_link_requests": CareerEmployerIomLinkRequests;
1006
+ "career.employer_user_keyrings": CareerEmployerUserKeyrings;
1007
+ "career.employer_users": CareerEmployerUsers;
1008
+ "career.employers": CareerEmployers;
1009
+ "career.god_keyrings": CareerGodKeyrings;
1010
+ "career.gods": CareerGods;
1011
+ "career.internship_form_mappings": CareerInternshipFormMappings;
1012
+ "career.job_activation_events": CareerJobActivationEvents;
1013
+ "career.job_pauses": CareerJobPauses;
1014
+ "career.job_waitlists": CareerJobWaitlists;
1015
+ "career.jobs": CareerJobs;
1016
+ "career.jobs_challenge": CareerJobsChallenge;
1017
+ "career.moa": CareerMoa;
1018
+ "career.ref_app_statuses": CareerRefAppStatuses;
1019
+ "career.ref_colleges": CareerRefColleges;
1020
+ "career.ref_degrees": CareerRefDegrees;
1021
+ "career.ref_departments": CareerRefDepartments;
1022
+ "career.ref_domains": CareerRefDomains;
1023
+ "career.ref_industries": CareerRefIndustries;
1024
+ "career.ref_job_allowances": CareerRefJobAllowances;
1025
+ "career.ref_job_categories": CareerRefJobCategories;
1026
+ "career.ref_job_modes": CareerRefJobModes;
1027
+ "career.ref_job_pay_freq": CareerRefJobPayFreq;
1028
+ "career.ref_job_types": CareerRefJobTypes;
1029
+ "career.ref_levels": CareerRefLevels;
1030
+ "career.ref_universities": CareerRefUniversities;
1031
+ "career.ref_university_slugs": CareerRefUniversitySlugs;
1032
+ "career.resumes": CareerResumes;
1033
+ "career.saved_jobs": CareerSavedJobs;
1034
+ "career.sessions": CareerSessions;
1035
+ "career.top_page_listings": CareerTopPageListings;
1036
+ "career.top_page_slugs": CareerTopPageSlugs;
1037
+ "career.top_page_universities": CareerTopPageUniversities;
1038
+ "career.top_pages": CareerTopPages;
1039
+ "career.users": CareerUsers;
1040
+ "documents.base_documents": DocumentsBaseDocuments;
1041
+ "documents.base_images": DocumentsBaseImages;
1042
+ "documents.external_documents": DocumentsExternalDocuments;
1043
+ "documents.field_template_registry": DocumentsFieldTemplateRegistry;
1044
+ "documents.form_groups": DocumentsFormGroups;
1045
+ "documents.form_template_registry": DocumentsFormTemplateRegistry;
1046
+ "documents.pending_documents": DocumentsPendingDocuments;
1047
+ "documents.signed_documents": DocumentsSignedDocuments;
1048
+ "forms.coordinator_accounts": FormsCoordinatorAccounts;
1049
+ "forms.form_processes": FormsFormProcesses;
1050
+ "forms.gods": FormsGods;
1051
+ "forms.signatory_accounts": FormsSignatoryAccounts;
1052
+ "forms.signatory_audits": FormsSignatoryAudits;
1053
+ "forms.signatory_form_settings": FormsSignatoryFormSettings;
1054
+ "forms.signatory_forms": FormsSignatoryForms;
1055
+ "forms.signatory_keyring": FormsSignatoryKeyring;
1056
+ "internal.app_config": InternalAppConfig;
1057
+ "internal.auth_event_log": InternalAuthEventLog;
1058
+ "internal.auth_sessions": InternalAuthSessions;
1059
+ "internal.email_delivery_events": InternalEmailDeliveryEvents;
1060
+ "internal.god_audit_log": InternalGodAuditLog;
1061
+ "internal.gods": InternalGods;
1062
+ "internal.mq_jobs": InternalMqJobs;
1063
+ "internal.processes": InternalProcesses;
1064
+ "internal.recipient_link_clicks": InternalRecipientLinkClicks;
1065
+ "internal.slugs": InternalSlugs;
1066
+ "internal.social_posts": InternalSocialPosts;
1067
+ "internal.tasks": InternalTasks;
1068
+ "internal.test_inboxes": InternalTestInboxes;
1069
+ "internal.test_presets": InternalTestPresets;
1070
+ "iom.audit_logs": IomAuditLogs;
1071
+ "iom.auth_tokens": IomAuthTokens;
1072
+ "iom.auto_consents": IomAutoConsents;
1073
+ "iom.companies": IomCompanies;
1074
+ "iom.company_blacklists": IomCompanyBlacklists;
1075
+ "iom.company_documents": IomCompanyDocuments;
1076
+ "iom.company_history_snapshots": IomCompanyHistorySnapshots;
1077
+ "iom.company_invites": IomCompanyInvites;
1078
+ "iom.company_listing_invites": IomCompanyListingInvites;
1079
+ "iom.company_moa_invites": IomCompanyMoaInvites;
1080
+ "iom.company_reviews": IomCompanyReviews;
1081
+ "iom.expiry_reminders": IomExpiryReminders;
1082
+ "iom.legacy_companies": IomLegacyCompanies;
1083
+ "iom.moa_requests": IomMoaRequests;
1084
+ "iom.moa_templates": IomMoaTemplates;
1085
+ "iom.moas": IomMoas;
1086
+ "iom.platform_admins": IomPlatformAdmins;
1087
+ "iom.platform_settings": IomPlatformSettings;
1088
+ "iom.queued_moa_requests": IomQueuedMoaRequests;
1089
+ "iom.universities": IomUniversities;
1090
+ "iom.university_accounts": IomUniversityAccounts;
1091
+ "iom.university_templates": IomUniversityTemplates;
1092
+ }