@adaptware/eagles-db 0.4.34 → 0.4.36

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.
Files changed (86) hide show
  1. package/client/edge.js +11 -869
  2. package/client/index-browser.js +42 -901
  3. package/client/index.d.ts +27423 -80978
  4. package/client/index.js +11 -869
  5. package/client/package.json +1 -1
  6. package/client/schema.prisma +128 -1594
  7. package/client/wasm.js +11 -869
  8. package/package.json +1 -1
  9. package/prisma/schema/CandidateQuestionResponse.prisma +0 -1
  10. package/prisma/schema/UserRole.prisma +0 -1
  11. package/prisma/schema/action.prisma +0 -5
  12. package/prisma/schema/activityLog.prisma +0 -3
  13. package/prisma/schema/applications.prisma +2 -12
  14. package/prisma/schema/approval.prisma +0 -2
  15. package/prisma/schema/assessment.prisma +0 -1
  16. package/prisma/schema/assessmentLibrary.prisma +0 -1
  17. package/prisma/schema/assessmentQuestion.prisma +0 -1
  18. package/prisma/schema/assignment.prisma +0 -3
  19. package/prisma/schema/assignmentLibrary.prisma +0 -1
  20. package/prisma/schema/authModule.prisma +0 -3
  21. package/prisma/schema/budget.prisma +0 -6
  22. package/prisma/schema/calendly.prisma +0 -2
  23. package/prisma/schema/candidateProfile.prisma +0 -2
  24. package/prisma/schema/communication.prisma +0 -11
  25. package/prisma/schema/contactUs.prisma +0 -2
  26. package/prisma/schema/document.prisma +1 -1
  27. package/prisma/schema/evaluationPlan.prisma +10 -35
  28. package/prisma/schema/feedback.prisma +0 -1
  29. package/prisma/schema/fitCheck.prisma +0 -3
  30. package/prisma/schema/google.prisma +0 -2
  31. package/prisma/schema/integration.prisma +0 -13
  32. package/prisma/schema/interview.prisma +0 -9
  33. package/prisma/schema/interviewNotes.prisma +0 -1
  34. package/prisma/schema/jobApplicationFields.prisma +0 -3
  35. package/prisma/schema/jobApplicationResponse.prisma +0 -1
  36. package/prisma/schema/jobApplicationTemplate.prisma +0 -3
  37. package/prisma/schema/jobDescription.prisma +35 -43
  38. package/prisma/schema/jobDescriptionData.prisma +0 -1
  39. package/prisma/schema/jobProfile.prisma +0 -3
  40. package/prisma/schema/liveAnalysis.prisma +0 -1
  41. package/prisma/schema/message.prisma +0 -2
  42. package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +25 -0
  43. package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +24 -0
  44. package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +2 -0
  45. package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +9 -0
  46. package/prisma/schema/notes.prisma +0 -1
  47. package/prisma/schema/ongoingEvaluation.prisma +0 -7
  48. package/prisma/schema/organisation.prisma +31 -39
  49. package/prisma/schema/organisationConfig.prisma +0 -1
  50. package/prisma/schema/permission.prisma +0 -1
  51. package/prisma/schema/promise.prisma +0 -3
  52. package/prisma/schema/questions.prisma +0 -4
  53. package/prisma/schema/refreshToken.prisma +0 -2
  54. package/prisma/schema/resume.prisma +5 -1
  55. package/prisma/schema/resumeData.prisma +0 -1
  56. package/prisma/schema/schema.prisma +0 -2
  57. package/prisma/schema/suggestion.prisma +0 -1
  58. package/prisma/schema/transcript.prisma +0 -1
  59. package/prisma/schema/user.prisma +0 -10
  60. package/prisma/schema/userProfile.prisma +0 -2
  61. package/prisma/schema/zoomMeeting.prisma +0 -5
  62. package/client/libquery_engine-darwin.dylib.node +0 -0
  63. package/prisma/.DS_Store +0 -0
  64. package/prisma/migrations/20260519120000_migrate_shortlisted_to_selected/migration.sql +0 -2
  65. package/prisma/schema/.DS_Store +0 -0
  66. package/prisma/schema/activityEvent.prisma +0 -138
  67. package/prisma/schema/applicationAnalytics.prisma +0 -87
  68. package/prisma/schema/assessmentRoundAnalytics.prisma +0 -119
  69. package/prisma/schema/assignmentRoundAnalytics.prisma +0 -109
  70. package/prisma/schema/interviewRoundAnalytics.prisma +0 -140
  71. package/prisma/schema/interviewerAnalytics.prisma +0 -129
  72. package/prisma/schema/jobRoundAnalytics.prisma +0 -101
  73. package/prisma/schema/migrations/20260519120000_add_analytics_schema/migration.sql +0 -84
  74. package/prisma/schema/migrations/20260625120000_add_interviewer_analytics/migration.sql +0 -26
  75. package/prisma/schema/migrations/20260629120000_add_user_lifecycle_activity_events/migration.sql +0 -13
  76. package/prisma/schema/migrations/20260629140000_drop_organisation_org_code/migration.sql +0 -2
  77. package/prisma/schema/migrations/20260629160000_employee_codes_dual_interviewer_analytics/migration.sql +0 -87
  78. package/prisma/schema/migrations/20260630120000_add_application_sources/migration.sql +0 -38
  79. package/prisma/schema/migrations/20260701120000_add_source_effectiveness_analytics/migration.sql +0 -40
  80. package/prisma/schema/migrations/20260702120000_add_analytics_daily_tables/migration.sql +0 -232
  81. package/prisma/schema/openJobAnalytics.prisma +0 -85
  82. package/prisma/schema/pipelineDistributionAnalytics.prisma +0 -64
  83. package/prisma/schema/reportingOverviewJobAnalytics.prisma +0 -49
  84. package/prisma/schema/roundAnalytics.prisma +0 -145
  85. package/prisma/schema/source.prisma +0 -36
  86. package/prisma/schema/sourceEffectivenessAnalytics.prisma +0 -79
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.4.34",
3
+ "version": "0.4.36",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,5 +21,4 @@ model CandidateQuestionResponse {
21
21
  @@unique([assessment_id, question_id, candidate_id])
22
22
  @@index([candidate_id])
23
23
  @@index([assessment_id])
24
- @@schema("public")
25
24
  }
@@ -17,5 +17,4 @@ model UserRole {
17
17
  @@index([role, organisation_id])
18
18
  @@index([organisation_id])
19
19
  @@index([permission_id])
20
- @@schema("public")
21
20
  }
@@ -2,16 +2,12 @@ enum ActionType {
2
2
  TAKE_INTERVIEW
3
3
  PROVIDE_FEEDBACK
4
4
  SCHEDULE_INTERVIEW
5
-
6
- @@schema("public")
7
5
  }
8
6
 
9
7
  enum ActionStatus {
10
8
  PENDING
11
9
  COMPLETED
12
10
  CANCELLED
13
-
14
- @@schema("public")
15
11
  }
16
12
 
17
13
  model Action {
@@ -36,5 +32,4 @@ model Action {
36
32
  @@index([assignee_id, action_type])
37
33
  @@index([status])
38
34
  @@index([due_date])
39
- @@schema("public")
40
35
  }
@@ -2,8 +2,6 @@ enum ActivityActorType {
2
2
  USER
3
3
  AI
4
4
  SYSTEM
5
-
6
- @@schema("public")
7
5
  }
8
6
 
9
7
  model ActivityLog {
@@ -21,5 +19,4 @@ model ActivityLog {
21
19
  application Application @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
22
20
 
23
21
  @@index([application_id])
24
- @@schema("public")
25
22
  }
@@ -2,12 +2,9 @@
2
2
  enum ApplicationStatus {
3
3
  PENDING
4
4
  IN_PROGRESS
5
- SELECTED
6
5
  SHORTLISTED
6
+ SELECTED
7
7
  REJECTED
8
- ON_HOLD
9
-
10
- @@schema("public")
11
8
  }
12
9
 
13
10
  model Application {
@@ -20,11 +17,8 @@ model Application {
20
17
  applied_at DateTime @default(now())
21
18
  evaluation_plan_id String?
22
19
  fit_check_id String? @unique
23
- recruiter_id String?
24
- source_id String?
25
20
  round_no Int @default(0)
26
21
  is_jaf_completed Boolean @default(false)
27
- proceed_to_next_round Boolean? @default(false)
28
22
  //Screening fields
29
23
  on_notice_period Boolean @default(false)
30
24
  expected_joining_date DateTime?
@@ -42,16 +36,14 @@ model Application {
42
36
  resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
43
37
  job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
44
38
  fit_check FitCheck? @relation(fields: [fit_check_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
45
- recruiter User? @relation("ApplicationRecruiter", fields: [recruiter_id], references: [id])
46
- source Source? @relation(fields: [source_id], references: [id], onDelete: SetNull)
47
39
  interviews Interview[]
48
40
  assignments Assignment[]
49
41
  ongoing_evaluations OngoingEvaluation[]
50
42
  activity_logs ActivityLog[]
51
43
  notes Notes[]
44
+ job_application_responses JobApplicationResponse[]
52
45
  conversations Conversation[]
53
46
  communication_messages CommunicationMessage[]
54
- job_application_responses JobApplicationResponse[]
55
47
  // Audit fields
56
48
  created_at DateTime @default(now())
57
49
  updated_at DateTime @updatedAt
@@ -62,6 +54,4 @@ model Application {
62
54
  @@unique([candidate_id, job_description_id]) // Ensures candidate applies only once per job
63
55
  @@index([candidate_id])
64
56
  @@index([job_description_id])
65
- @@index([source_id])
66
- @@schema("public")
67
57
  }
@@ -11,6 +11,4 @@ model Approval {
11
11
  job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
12
12
  user User @relation(fields: [user_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
13
13
  organisation Organisation @relation(fields: [organisaton_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
14
-
15
- @@schema("public")
16
14
  }
@@ -36,5 +36,4 @@ model Assessment {
36
36
  @@unique([assessment_library_id, candidate_id])
37
37
  @@index([assessment_library_id])
38
38
  @@index([candidate_id])
39
- @@schema("public")
40
39
  }
@@ -18,5 +18,4 @@ model AssessmentLibrary {
18
18
  evaluation_Plans EvaluationPlan[]
19
19
 
20
20
  @@index([organisation_id])
21
- @@schema("public")
22
21
  }
@@ -14,5 +14,4 @@ model AssessmentQuestion {
14
14
  updated_at DateTime @updatedAt
15
15
 
16
16
  @@id([assessment_id, question_id])
17
- @@schema("public")
18
17
  }
@@ -2,8 +2,6 @@ enum AssignmentStatus {
2
2
  AVAILABLE
3
3
  SCHEDULED
4
4
  CANCELLED
5
-
6
- @@schema("public")
7
5
  }
8
6
 
9
7
  model Assignment {
@@ -47,5 +45,4 @@ model Assignment {
47
45
  @@index([candidate_id])
48
46
  @@index([reviewer_id])
49
47
  @@index([job_description_id])
50
- @@schema("public")
51
48
  }
@@ -17,5 +17,4 @@ model AssignmentLibrary {
17
17
  assignments Assignment[]
18
18
 
19
19
  @@index([job_description_id])
20
- @@schema("public")
21
20
  }
@@ -3,8 +3,6 @@ enum AuthProvider {
3
3
  MICROSOFT
4
4
  ZOOM
5
5
  CALENDLY
6
-
7
- @@schema("public")
8
6
  }
9
7
 
10
8
  model AuthModule {
@@ -35,5 +33,4 @@ model AuthModule {
35
33
  @@unique([user_id, provider])
36
34
  @@unique([provider, provider_account_id])
37
35
  @@index([user_id])
38
- @@schema("public")
39
36
  }
@@ -4,8 +4,6 @@ enum JobType {
4
4
  Contract
5
5
  Internship
6
6
  Temporary
7
-
8
- @@schema("public")
9
7
  }
10
8
 
11
9
  enum JDCreationType {
@@ -13,8 +11,6 @@ enum JDCreationType {
13
11
  Upload_JD
14
12
  Create_New
15
13
  Create_From_Profile
16
-
17
- @@schema("public")
18
14
  }
19
15
 
20
16
  model Budget {
@@ -39,6 +35,4 @@ model Budget {
39
35
  created_by String
40
36
  updated_by String
41
37
  is_active Boolean @default(true)
42
-
43
- @@schema("public")
44
38
  }
@@ -15,6 +15,4 @@ model Calendly {
15
15
  created_by String
16
16
  updated_by String
17
17
  is_active Boolean @default(true)
18
-
19
- @@schema("public")
20
18
  }
@@ -23,6 +23,4 @@ model CandidateProfile {
23
23
  veteran_status String?
24
24
  disability_status String?
25
25
  is_active Boolean @default(true)
26
-
27
- @@schema("public")
28
26
  }
@@ -6,8 +6,6 @@ enum CommChannel {
6
6
  EMAIL
7
7
  SMS
8
8
  CALL
9
-
10
- @@schema("public")
11
9
  }
12
10
 
13
11
  enum CommProvider {
@@ -20,15 +18,11 @@ enum CommProvider {
20
18
  OUTLOOK
21
19
  GENERIC_SMTP
22
20
  GENERIC
23
-
24
- @@schema("public")
25
21
  }
26
22
 
27
23
  enum CommDirection {
28
24
  INBOUND
29
25
  OUTBOUND
30
-
31
- @@schema("public")
32
26
  }
33
27
 
34
28
  enum CommMessageStatus {
@@ -38,8 +32,6 @@ enum CommMessageStatus {
38
32
  READ
39
33
  FAILED
40
34
  RECEIVED
41
-
42
- @@schema("public")
43
35
  }
44
36
 
45
37
  /// Per-organisation provider selection + (encrypted) credentials for one channel.
@@ -68,7 +60,6 @@ model ChannelProviderConfig {
68
60
  @@unique([organisation_id, channel, provider])
69
61
  @@index([organisation_id, channel])
70
62
  @@index([organisation_id, channel, is_active])
71
- @@schema("public")
72
63
  }
73
64
 
74
65
  /// A logical conversation thread with one external party on one channel.
@@ -113,7 +104,6 @@ model Conversation {
113
104
  @@index([external_id])
114
105
  @@index([organisation_id, application_id])
115
106
  @@index([organisation_id, job_description_id])
116
- @@schema("public")
117
107
  }
118
108
 
119
109
  /// Individual message in a conversation. Inbound + outbound share the same model.
@@ -163,5 +153,4 @@ model CommunicationMessage {
163
153
  @@index([organisation_id, status])
164
154
  @@index([organisation_id, application_id])
165
155
  @@index([organisation_id, job_description_id])
166
- @@schema("public")
167
156
  }
@@ -9,6 +9,4 @@ model ContactUs {
9
9
  createdAt DateTime @default(now())
10
10
  updatedAt DateTime @updatedAt
11
11
  is_active Boolean @default(true)
12
-
13
- @@schema("public")
14
12
  }
@@ -24,6 +24,7 @@ model Document {
24
24
  organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
25
25
  candidate User? @relation(fields: [candidate_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
26
26
  resume Resume?
27
+ resume_rendered_export Resume? @relation("RenderedResumeExportDocument")
27
28
  job_description_source JobDescription? @relation("SourceDocument")
28
29
  job_description_rendered JobDescription? @relation("RenderedJdDocument")
29
30
  interview_recording Interview?
@@ -35,5 +36,4 @@ model Document {
35
36
  @@index([candidate_id])
36
37
  @@index([organisation_id, candidate_id])
37
38
  @@index([file_hash])
38
- @@schema("public")
39
39
  }
@@ -3,18 +3,6 @@ enum RoundType {
3
3
  INTERVIEW
4
4
  ASSIGNMENT
5
5
  SCREENING
6
-
7
- @@schema("public")
8
- }
9
-
10
- enum EvaluationCategory {
11
- EXPERIENCE_SCREENING
12
- TECHNICAL_SCREENING
13
- TECHNICAL_INTERVIEW
14
- BUSINESS_ROUND
15
- BEHAVIORAL_ROUND
16
-
17
- @@schema("public")
18
6
  }
19
7
 
20
8
  enum EvaluationRoundFormat {
@@ -44,8 +32,6 @@ enum EvaluationRoundFormat {
44
32
  TREADSPACE_AI_ASSISTED
45
33
  EXTERNAL_VIDEO_AI_ASSISTED
46
34
  EXTERNAL_VIDEO_UNASSISTED
47
-
48
- @@schema("public")
49
35
  }
50
36
 
51
37
  enum EvaluationType {
@@ -54,36 +40,28 @@ enum EvaluationType {
54
40
  TREADSPACE_FULL_AI
55
41
  EXTERNAL_AI_ASSISTED
56
42
  NON_AI_ASSISTED
57
-
58
- @@schema("public")
59
43
  }
60
44
 
61
45
  enum EvaluationPlanType {
62
46
  CUSTOM
63
47
  GENERIC
64
48
  DELETED
65
-
66
- @@schema("public")
67
49
  }
68
50
 
69
51
  enum EvaluationPlanShareScope {
70
52
  PRIVATE
71
53
  CREATOR
72
54
  ORGANIZATION
73
-
74
- @@schema("public")
75
55
  }
76
56
 
77
57
  enum DurationUnit {
78
58
  MINUTES
79
59
  HOURS
80
60
  DAYS
81
-
82
- @@schema("public")
83
61
  }
84
62
 
85
63
  model EvaluationPlan {
86
- id String @id @default(uuid())
64
+ id String @id @default(uuid())
87
65
  job_description_id String
88
66
  assessment_id String?
89
67
  assignment_library_id String?
@@ -92,36 +70,33 @@ model EvaluationPlan {
92
70
  format EvaluationRoundFormat?
93
71
  topics String[]
94
72
  assignee String?
95
- elimination_round Boolean @default(false)
96
- evaluation_type EvaluationType @default(TREADSPACE_AI_ASSISTED)
73
+ elimination_round Boolean @default(false)
74
+ evaluation_type EvaluationType @default(TREADSPACE_AI_ASSISTED)
97
75
  type_of_round RoundType
98
- round_purpose String?
99
76
  timeline Int?
100
77
  order_no Int?
101
78
  details Json?
102
- plan_type EvaluationPlanType @default(GENERIC)
79
+ plan_type EvaluationPlanType @default(GENERIC)
103
80
  share_scope EvaluationPlanShareScope @default(PRIVATE)
104
81
  duration Int?
105
82
  duration_unit DurationUnit?
106
83
  deadline Int?
107
- category EvaluationCategory?
108
84
  created_by String
109
85
  updated_by String
110
- created_at DateTime @default(now())
111
- updated_at DateTime @updatedAt
112
- is_active Boolean @default(true)
86
+ created_at DateTime @default(now())
87
+ updated_at DateTime @updatedAt
88
+ is_active Boolean @default(true)
113
89
  // Relations
114
- jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
90
+ jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
115
91
  questions Question[] // One evaluation plan → many questions
116
92
  interviews Interview[]
117
93
  applications Application[]
118
94
  // New optional one-to-one relation with AssessmentLibrary
119
- assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
120
- assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
95
+ assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
96
+ assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
121
97
  ongoing_evaluations OngoingEvaluation[]
122
98
 
123
99
  @@index([job_description_id])
124
100
  @@index([job_description_id, plan_type, share_scope])
125
101
  @@index([created_by, share_scope])
126
- @@schema("public")
127
102
  }
@@ -15,5 +15,4 @@ model Feedback {
15
15
 
16
16
  @@unique([interview_id, order_no])
17
17
  @@index([interview_id])
18
- @@schema("public")
19
18
  }
@@ -2,8 +2,6 @@ enum FitCheckStatus {
2
2
  RECOMMENDED
3
3
  TO_REVIEW
4
4
  NOT_RECOMMENDED
5
-
6
- @@schema("public")
7
5
  }
8
6
 
9
7
  model FitCheck {
@@ -57,5 +55,4 @@ model FitCheck {
57
55
  /// Ensure one FitCheck per (resume_id, job_description_id) pair
58
56
  @@unique([resume_id, job_description_id])
59
57
  @@index([resume_id])
60
- @@schema("public")
61
58
  }
@@ -13,6 +13,4 @@ model Google {
13
13
  created_by String
14
14
  updated_by String
15
15
  is_active Boolean @default(true)
16
-
17
- @@schema("public")
18
16
  }
@@ -6,24 +6,18 @@ enum IntegrationProvider {
6
6
  MICROSOFT
7
7
  ZOOM
8
8
  CALENDLY
9
-
10
- @@schema("public")
11
9
  }
12
10
 
13
11
  enum IntegrationAuthType {
14
12
  OAUTH2
15
13
  API_KEY
16
14
  SSO
17
-
18
- @@schema("public")
19
15
  }
20
16
 
21
17
  enum SyncDirection {
22
18
  PUSH
23
19
  PULL
24
20
  BIDIRECTIONAL
25
-
26
- @@schema("public")
27
21
  }
28
22
 
29
23
  enum SyncEntityType {
@@ -31,16 +25,12 @@ enum SyncEntityType {
31
25
  JOB_OPENING
32
26
  INTERVIEW
33
27
  APPLICATION
34
-
35
- @@schema("public")
36
28
  }
37
29
 
38
30
  enum SyncStatus {
39
31
  SYNCED
40
32
  PENDING
41
33
  FAILED
42
-
43
- @@schema("public")
44
34
  }
45
35
 
46
36
  model IntegrationCredential {
@@ -65,7 +55,6 @@ model IntegrationCredential {
65
55
 
66
56
  @@unique([organisation_id, provider])
67
57
  @@index([provider])
68
- @@schema("public")
69
58
  }
70
59
 
71
60
  model IntegrationJobSync {
@@ -85,7 +74,6 @@ model IntegrationJobSync {
85
74
 
86
75
  @@unique([job_description_id, provider])
87
76
  @@index([provider])
88
- @@schema("public")
89
77
  }
90
78
 
91
79
  model ZohoSyncMapping {
@@ -107,5 +95,4 @@ model ZohoSyncMapping {
107
95
  @@unique([organisation_id, entity_type, treadspace_id])
108
96
  @@index([zoho_record_id])
109
97
  @@index([sync_status])
110
- @@schema("public")
111
98
  }
@@ -6,8 +6,6 @@ enum InterviewStatus {
6
6
  NO_SHOW // Candidate or interviewer failed to appear
7
7
  EVALUATION_PENDING // Waiting for feedback or evaluation
8
8
  EVALUATED // Feedback completed and locked
9
-
10
- @@schema("public")
11
9
  }
12
10
 
13
11
  enum InterviewFeedback {
@@ -15,22 +13,16 @@ enum InterviewFeedback {
15
13
  HIRE
16
14
  NO_HIRE
17
15
  STRONG_NO_HIRE
18
-
19
- @@schema("public")
20
16
  }
21
17
 
22
18
  enum InterviewPlatform {
23
19
  TREADSPACE
24
20
  ZOOM
25
-
26
- @@schema("public")
27
21
  }
28
22
 
29
23
  enum AiAssistanceMode {
30
24
  NONE
31
25
  ASSISTED
32
-
33
- @@schema("public")
34
26
  }
35
27
 
36
28
  model Interview {
@@ -117,5 +109,4 @@ model Interview {
117
109
  @@index([candidate_id])
118
110
  @@index([interviewer_id])
119
111
  @@index([job_description_id])
120
- @@schema("public")
121
112
  }
@@ -14,5 +14,4 @@ model InterviewNotes {
14
14
  interview Interview @relation(fields: [interview_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
15
15
 
16
16
  @@index([interview_id])
17
- @@schema("public")
18
17
  }
@@ -6,8 +6,6 @@ enum JobApplicationFieldType {
6
6
  MULTI_SELECT
7
7
  FILE
8
8
  DROP_DOWN
9
-
10
- @@schema("public")
11
9
  }
12
10
 
13
11
  model JobApplicationField {
@@ -36,5 +34,4 @@ model JobApplicationField {
36
34
 
37
35
  /// Indexes
38
36
  @@index([organisation_id, template_id])
39
- @@schema("public")
40
37
  }
@@ -30,5 +30,4 @@ model JobApplicationResponse {
30
30
  /// Partial unique on (application_id, job_application_field_id) WHERE job_application_field_id IS NOT NULL — see migration SQL
31
31
  @@index([application_id])
32
32
  @@index([job_application_field_id])
33
- @@schema("public")
34
33
  }
@@ -1,8 +1,6 @@
1
1
  enum JobApplicationTemplateScope {
2
2
  ORGANIZATION
3
3
  JOB
4
-
5
- @@schema("public")
6
4
  }
7
5
 
8
6
  model JobApplicationTemplate {
@@ -29,5 +27,4 @@ model JobApplicationTemplate {
29
27
  /// Indexes
30
28
  @@index([organisation_id, scope])
31
29
  @@index([job_description_id])
32
- @@schema("public")
33
30
  }