@adaptware/eagles-db 0.4.29 → 0.4.31

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.
@@ -0,0 +1,87 @@
1
+ model ApplicationAnalytics {
2
+ id String @id @default(uuid())
3
+
4
+ organisation_id String
5
+ application_id String @unique
6
+ job_description_id String
7
+ candidate_id String
8
+
9
+ source_id String?
10
+ source_name String?
11
+ source_category SourceCategory?
12
+ source_colour String?
13
+
14
+ job_code String?
15
+ job_number Int?
16
+ role_title String?
17
+ hiring_manager_id String?
18
+
19
+ candidate_name String?
20
+ recruiter_id String?
21
+
22
+ applied_at DateTime
23
+ status_updated_at DateTime?
24
+
25
+ status ApplicationStatus?
26
+ fit_check_score Float?
27
+
28
+ is_screened Boolean @default(false)
29
+ is_evaluated Boolean @default(false)
30
+ is_rejected Boolean @default(false)
31
+ is_shortlisted Boolean @default(false)
32
+ has_committed_evaluation Boolean @default(false)
33
+
34
+ updated_at DateTime @updatedAt
35
+
36
+ @@index([organisation_id, applied_at])
37
+ @@index([organisation_id, source_id, applied_at])
38
+ @@index([job_description_id, applied_at])
39
+ @@index([organisation_id, hiring_manager_id])
40
+ @@map("application_analytics")
41
+ @@schema("analytics")
42
+ }
43
+
44
+ model ApplicationAnalyticsDaily {
45
+ id String @id @default(uuid())
46
+
47
+ snapshot_date DateTime @db.Date
48
+
49
+ organisation_id String
50
+ application_id String
51
+ job_description_id String
52
+ candidate_id String
53
+
54
+ source_id String?
55
+ source_name String?
56
+ source_category SourceCategory?
57
+ source_colour String?
58
+
59
+ job_code String?
60
+ job_number Int?
61
+ role_title String?
62
+ hiring_manager_id String?
63
+
64
+ candidate_name String?
65
+ recruiter_id String?
66
+
67
+ applied_at DateTime
68
+ status_updated_at DateTime?
69
+
70
+ status ApplicationStatus?
71
+ fit_check_score Float?
72
+
73
+ is_screened Boolean @default(false)
74
+ is_evaluated Boolean @default(false)
75
+ is_rejected Boolean @default(false)
76
+ is_shortlisted Boolean @default(false)
77
+ has_committed_evaluation Boolean @default(false)
78
+
79
+ @@unique([snapshot_date, application_id])
80
+ @@index([snapshot_date], map: "aad_snapshot_date_idx")
81
+ @@index([snapshot_date, organisation_id], map: "aad_snapshot_org_idx")
82
+ @@index([snapshot_date, organisation_id, source_id], map: "aad_snapshot_org_source_idx")
83
+ @@index([snapshot_date, organisation_id, applied_at], map: "aad_snapshot_org_applied_idx")
84
+ @@index([snapshot_date, job_description_id], map: "aad_snapshot_job_idx")
85
+ @@map("application_analytics_daily")
86
+ @@schema("analytics")
87
+ }
@@ -0,0 +1,119 @@
1
+ enum AssessmentRoundStatus {
2
+ SCHEDULED
3
+ IN_PROGRESS
4
+ COMPLETED
5
+ EVALUATED
6
+ CANCELLED
7
+
8
+ @@schema("analytics")
9
+ }
10
+
11
+ model AssessmentRoundAnalytics {
12
+ id String @id @default(uuid())
13
+
14
+ organisation_id String
15
+ round_id String @unique
16
+ assessment_id String @unique
17
+ application_id String?
18
+ candidate_id String
19
+ job_description_id String
20
+ evaluation_plan_id String
21
+
22
+ job_code String?
23
+ job_number Int?
24
+ role_title String?
25
+ hiring_manager_id String?
26
+ department String?
27
+ location String?
28
+
29
+ round_name String?
30
+ evaluation_category EvaluationCategory?
31
+ round_type RoundType?
32
+ round_format EvaluationRoundFormat?
33
+ plan_order_no Int?
34
+ plan_type EvaluationPlanType?
35
+ is_custom Boolean @default(false)
36
+
37
+ reviewer_id String?
38
+ reviewer_employee_id String?
39
+ reviewer_name String?
40
+
41
+ candidate_name String?
42
+
43
+ evaluation_type EvaluationType?
44
+
45
+ scheduled_start_at DateTime?
46
+ scheduled_end_at DateTime?
47
+ actual_start_at DateTime?
48
+ actual_end_at DateTime?
49
+ attempt_expires_at DateTime?
50
+ evaluated_at DateTime?
51
+
52
+ score Float?
53
+ status AssessmentRoundStatus?
54
+ round_result RoundResult?
55
+
56
+ updated_at DateTime @updatedAt
57
+
58
+ @@index([organisation_id, evaluated_at])
59
+ @@index([organisation_id, reviewer_id])
60
+ @@index([job_description_id])
61
+ @@index([application_id])
62
+ @@map("assessment_round_analytics")
63
+ @@schema("analytics")
64
+ }
65
+
66
+ model AssessmentRoundAnalyticsDaily {
67
+ id String @id @default(uuid())
68
+
69
+ snapshot_date DateTime @db.Date
70
+
71
+ organisation_id String
72
+ round_id String
73
+ assessment_id String
74
+ application_id String?
75
+ candidate_id String
76
+ job_description_id String
77
+ evaluation_plan_id String
78
+
79
+ job_code String?
80
+ job_number Int?
81
+ role_title String?
82
+ hiring_manager_id String?
83
+ department String?
84
+ location String?
85
+
86
+ round_name String?
87
+ evaluation_category EvaluationCategory?
88
+ round_type RoundType?
89
+ round_format EvaluationRoundFormat?
90
+ plan_order_no Int?
91
+ plan_type EvaluationPlanType?
92
+ is_custom Boolean @default(false)
93
+
94
+ reviewer_id String?
95
+ reviewer_employee_id String?
96
+ reviewer_name String?
97
+
98
+ candidate_name String?
99
+
100
+ evaluation_type EvaluationType?
101
+
102
+ scheduled_start_at DateTime?
103
+ scheduled_end_at DateTime?
104
+ actual_start_at DateTime?
105
+ actual_end_at DateTime?
106
+ attempt_expires_at DateTime?
107
+ evaluated_at DateTime?
108
+
109
+ score Float?
110
+ status AssessmentRoundStatus?
111
+ round_result RoundResult?
112
+
113
+ @@unique([snapshot_date, assessment_id])
114
+ @@index([snapshot_date], map: "asrad_snapshot_date_idx")
115
+ @@index([snapshot_date, organisation_id], map: "asrad_snapshot_org_idx")
116
+ @@index([snapshot_date, job_description_id], map: "asrad_snapshot_job_idx")
117
+ @@map("assessment_round_analytics_daily")
118
+ @@schema("analytics")
119
+ }
@@ -0,0 +1,109 @@
1
+ model AssignmentRoundAnalytics {
2
+ id String @id @default(uuid())
3
+
4
+ organisation_id String
5
+ round_id String @unique
6
+ assignment_id String @unique
7
+ application_id String?
8
+ candidate_id String
9
+ job_description_id String
10
+ evaluation_plan_id String
11
+
12
+ job_code String?
13
+ job_number Int?
14
+ role_title String?
15
+ hiring_manager_id String?
16
+ department String?
17
+ location String?
18
+
19
+ round_name String?
20
+ evaluation_category EvaluationCategory?
21
+ round_type RoundType?
22
+ round_format EvaluationRoundFormat?
23
+ plan_order_no Int?
24
+ plan_type EvaluationPlanType?
25
+ is_custom Boolean @default(false)
26
+
27
+ reviewer_id String?
28
+ reviewer_employee_id String?
29
+ reviewer_name String?
30
+
31
+ candidate_name String?
32
+
33
+ evaluation_type EvaluationType?
34
+
35
+ scheduled_start_at DateTime?
36
+ scheduled_end_at DateTime?
37
+ completed_at DateTime?
38
+ evaluated_at DateTime?
39
+ cancelled_at DateTime?
40
+
41
+ status AssignmentStatus?
42
+ overall_score Int?
43
+ cancel_reason String?
44
+ round_result RoundResult?
45
+
46
+ updated_at DateTime @updatedAt
47
+
48
+ @@index([organisation_id, evaluated_at])
49
+ @@index([organisation_id, reviewer_id])
50
+ @@index([job_description_id])
51
+ @@index([application_id])
52
+ @@map("assignment_round_analytics")
53
+ @@schema("analytics")
54
+ }
55
+
56
+ model AssignmentRoundAnalyticsDaily {
57
+ id String @id @default(uuid())
58
+
59
+ snapshot_date DateTime @db.Date
60
+
61
+ organisation_id String
62
+ round_id String
63
+ assignment_id String
64
+ application_id String?
65
+ candidate_id String
66
+ job_description_id String
67
+ evaluation_plan_id String
68
+
69
+ job_code String?
70
+ job_number Int?
71
+ role_title String?
72
+ hiring_manager_id String?
73
+ department String?
74
+ location String?
75
+
76
+ round_name String?
77
+ evaluation_category EvaluationCategory?
78
+ round_type RoundType?
79
+ round_format EvaluationRoundFormat?
80
+ plan_order_no Int?
81
+ plan_type EvaluationPlanType?
82
+ is_custom Boolean @default(false)
83
+
84
+ reviewer_id String?
85
+ reviewer_employee_id String?
86
+ reviewer_name String?
87
+
88
+ candidate_name String?
89
+
90
+ evaluation_type EvaluationType?
91
+
92
+ scheduled_start_at DateTime?
93
+ scheduled_end_at DateTime?
94
+ completed_at DateTime?
95
+ evaluated_at DateTime?
96
+ cancelled_at DateTime?
97
+
98
+ status AssignmentStatus?
99
+ overall_score Int?
100
+ cancel_reason String?
101
+ round_result RoundResult?
102
+
103
+ @@unique([snapshot_date, assignment_id])
104
+ @@index([snapshot_date], map: "arad_snapshot_date_idx")
105
+ @@index([snapshot_date, organisation_id], map: "arad_snapshot_org_idx")
106
+ @@index([snapshot_date, job_description_id], map: "arad_snapshot_job_idx")
107
+ @@map("assignment_round_analytics_daily")
108
+ @@schema("analytics")
109
+ }
@@ -0,0 +1,140 @@
1
+ enum InterviewRecommendation {
2
+ ACCEPTED
3
+ REJECTED
4
+ UNSURE
5
+
6
+ @@schema("analytics")
7
+ }
8
+
9
+ model InterviewRoundAnalytics {
10
+ id String @id @default(uuid())
11
+
12
+ organisation_id String
13
+ round_id String @unique
14
+ interview_id String @unique
15
+ application_id String?
16
+ candidate_id String
17
+ job_description_id String
18
+ evaluation_plan_id String
19
+
20
+ job_code String?
21
+ job_number Int?
22
+ role_title String?
23
+ hiring_manager_id String?
24
+ department String?
25
+ location String?
26
+
27
+ round_name String?
28
+ evaluation_category EvaluationCategory?
29
+ round_type RoundType?
30
+ round_format EvaluationRoundFormat?
31
+ plan_order_no Int?
32
+ plan_type EvaluationPlanType?
33
+ is_custom Boolean @default(false)
34
+
35
+ interviewer_id String?
36
+ interviewer_employee_id String?
37
+ interviewer_name String?
38
+
39
+ candidate_name String?
40
+ candidate_email String?
41
+
42
+ evaluation_type EvaluationType?
43
+ ai_assistance_mode AiAssistanceMode?
44
+ interview_platform InterviewPlatform?
45
+ interview_status InterviewStatus?
46
+
47
+ scheduled_start_at DateTime?
48
+ scheduled_end_at DateTime?
49
+ actual_start_at DateTime?
50
+ actual_end_at DateTime?
51
+ evaluated_at DateTime?
52
+ first_assigned_at DateTime?
53
+ duration_minutes Int?
54
+
55
+ human_rating String?
56
+ ai_rating String?
57
+ recommendation InterviewRecommendation?
58
+ ai_disagrees_with_ai Boolean?
59
+
60
+ difficulty_score Float?
61
+ supportiveness_score Float?
62
+ topics_coverage_percent Float?
63
+
64
+ updated_at DateTime @updatedAt
65
+
66
+ @@index([organisation_id, evaluated_at])
67
+ @@index([organisation_id, interviewer_id, evaluated_at])
68
+ @@index([job_description_id])
69
+ @@index([application_id])
70
+ @@index([organisation_id, hiring_manager_id])
71
+ @@map("interview_round_analytics")
72
+ @@schema("analytics")
73
+ }
74
+
75
+ model InterviewRoundAnalyticsDaily {
76
+ id String @id @default(uuid())
77
+
78
+ snapshot_date DateTime @db.Date
79
+
80
+ organisation_id String
81
+ round_id String
82
+ interview_id String
83
+ application_id String?
84
+ candidate_id String
85
+ job_description_id String
86
+ evaluation_plan_id String
87
+
88
+ job_code String?
89
+ job_number Int?
90
+ role_title String?
91
+ hiring_manager_id String?
92
+ department String?
93
+ location String?
94
+
95
+ round_name String?
96
+ evaluation_category EvaluationCategory?
97
+ round_type RoundType?
98
+ round_format EvaluationRoundFormat?
99
+ plan_order_no Int?
100
+ plan_type EvaluationPlanType?
101
+ is_custom Boolean @default(false)
102
+
103
+ interviewer_id String?
104
+ interviewer_employee_id String?
105
+ interviewer_name String?
106
+
107
+ candidate_name String?
108
+ candidate_email String?
109
+
110
+ evaluation_type EvaluationType?
111
+ ai_assistance_mode AiAssistanceMode?
112
+ interview_platform InterviewPlatform?
113
+ interview_status InterviewStatus?
114
+
115
+ scheduled_start_at DateTime?
116
+ scheduled_end_at DateTime?
117
+ actual_start_at DateTime?
118
+ actual_end_at DateTime?
119
+ evaluated_at DateTime?
120
+ first_assigned_at DateTime?
121
+ duration_minutes Int?
122
+
123
+ human_rating String?
124
+ ai_rating String?
125
+ recommendation InterviewRecommendation?
126
+ ai_disagrees_with_ai Boolean?
127
+
128
+ difficulty_score Float?
129
+ supportiveness_score Float?
130
+ topics_coverage_percent Float?
131
+
132
+ @@unique([snapshot_date, interview_id])
133
+ @@index([snapshot_date], map: "irad_snapshot_date_idx")
134
+ @@index([snapshot_date, organisation_id], map: "irad_snapshot_org_idx")
135
+ @@index([snapshot_date, organisation_id, interviewer_id], map: "irad_snapshot_org_interviewer_idx")
136
+ @@index([snapshot_date, job_description_id], map: "irad_snapshot_job_idx")
137
+ @@index([snapshot_date, organisation_id, evaluated_at], map: "irad_snapshot_org_evaluated_idx")
138
+ @@map("interview_round_analytics_daily")
139
+ @@schema("analytics")
140
+ }
@@ -18,6 +18,9 @@ model OpenJobAnalytics {
18
18
  closing_date DateTime?
19
19
  is_open Boolean @default(true)
20
20
 
21
+ closure_type OpenJobClosureType?
22
+ time_to_hire_days Int?
23
+
21
24
  application_count Int @default(0)
22
25
  in_consideration_count Int @default(0)
23
26
  shortlisted_count Int @default(0)
@@ -28,6 +31,7 @@ model OpenJobAnalytics {
28
31
  @@index([organisation_id, hiring_manager_id])
29
32
  @@index([organisation_id, opened_at])
30
33
  @@index([organisation_id, job_number])
34
+ @@index([organisation_id, is_open, closure_type, closing_date])
31
35
  @@index([job_description_id])
32
36
  @@map("open_job_analytics")
33
37
  @@schema("analytics")
@@ -54,6 +58,9 @@ model OpenJobAnalyticsDaily {
54
58
  closing_date DateTime?
55
59
  is_open Boolean @default(true)
56
60
 
61
+ closure_type OpenJobClosureType?
62
+ time_to_hire_days Int?
63
+
57
64
  application_count Int @default(0)
58
65
  in_consideration_count Int @default(0)
59
66
  shortlisted_count Int @default(0)
@@ -0,0 +1,49 @@
1
+ enum OpenJobClosureType {
2
+ FILLED
3
+ CANCELLED
4
+
5
+ @@schema("analytics")
6
+ }
7
+
8
+ model ReportingOverviewJobAnalytics {
9
+ id String @id @default(uuid())
10
+ organisation_id String
11
+ job_description_id String @unique
12
+
13
+ job_code String?
14
+ job_number Int?
15
+ hiring_manager_id String?
16
+
17
+ opened_at DateTime
18
+ target_closing_date DateTime?
19
+ closing_date DateTime?
20
+ is_open Boolean @default(true)
21
+
22
+ closure_type OpenJobClosureType?
23
+ time_to_hire_days Int?
24
+
25
+ in_consideration_count Int @default(0)
26
+
27
+ updated_at DateTime @updatedAt
28
+
29
+ recruiters ReportingOverviewJobRecruiter[]
30
+
31
+ @@index([organisation_id, is_open])
32
+ @@index([organisation_id, hiring_manager_id, is_open])
33
+ @@index([organisation_id, closing_date, closure_type])
34
+ @@map("reporting_overview_job_analytics")
35
+ @@schema("analytics")
36
+ }
37
+
38
+ model ReportingOverviewJobRecruiter {
39
+ id String @id @default(uuid())
40
+ job_description_id String
41
+ recruiter_user_id String
42
+
43
+ job ReportingOverviewJobAnalytics @relation(fields: [job_description_id], references: [job_description_id], onDelete: Cascade)
44
+
45
+ @@unique([job_description_id, recruiter_user_id])
46
+ @@index([recruiter_user_id])
47
+ @@map("reporting_overview_job_recruiters")
48
+ @@schema("analytics")
49
+ }