@adaptware/eagles-db 0.4.44 → 0.4.46

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,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-55444169a563eca485fd746f4fbe3da12b3be4f1670bdb3f4e4b414dba0c48e2",
2
+ "name": "prisma-client-3fc8f0ac96e7706dd9bf382b74975c1fc9c1d02f5d180621781338e9e94db387",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -1181,6 +1181,40 @@ model Document {
1181
1181
  @@schema("public")
1182
1182
  }
1183
1183
 
1184
+ enum CriteriaScope {
1185
+ ORGANISATION
1186
+ TREADSPACE
1187
+
1188
+ @@schema("public")
1189
+ }
1190
+
1191
+ model EvaluationCriteria {
1192
+ /// Primary key
1193
+ id String @id @default(uuid())
1194
+ /// Foreign keys
1195
+ organisation_id String?
1196
+ /// Data fields
1197
+ scope CriteriaScope
1198
+ key String
1199
+ criteria String?
1200
+ description String?
1201
+ weightage Float?
1202
+ is_elimination Boolean @default(false)
1203
+ metadata Json?
1204
+ /// Audit fields
1205
+ created_by String
1206
+ updated_by String
1207
+ created_at DateTime @default(now())
1208
+ updated_at DateTime @updatedAt
1209
+ is_active Boolean @default(true)
1210
+ /// Relations
1211
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1212
+
1213
+ /// Indexes
1214
+ @@index([scope, organisation_id])
1215
+ @@schema("public")
1216
+ }
1217
+
1184
1218
  enum RoundType {
1185
1219
  ASSESSMENT
1186
1220
  INTERVIEW
@@ -2534,17 +2568,17 @@ enum OrganisationSize {
2534
2568
  }
2535
2569
 
2536
2570
  model Organisation {
2537
- id String @id @default(uuid())
2538
- name String @unique
2539
- industry String
2540
- about String
2541
- website String
2542
- size OrganisationSize @default(ONE_TO_TEN)
2543
- phone String
2544
- address String
2545
- company_values Json[]
2546
- allowed_email_domains String[]
2547
-
2571
+ id String @id @default(uuid())
2572
+ name String @unique
2573
+ industry String
2574
+ about String
2575
+ website String
2576
+ size OrganisationSize @default(ONE_TO_TEN)
2577
+ phone String
2578
+ address String
2579
+ company_values Json[]
2580
+ allowed_email_domains String[]
2581
+ send_email Boolean @default(true)
2548
2582
  interviewers User[]
2549
2583
  created_at DateTime @default(now())
2550
2584
  updated_at DateTime @updatedAt
@@ -2583,6 +2617,7 @@ model Organisation {
2583
2617
  documents Document[]
2584
2618
  job_application_templates JobApplicationTemplate[]
2585
2619
  sources Source[]
2620
+ evaluation_criteria EvaluationCriteria[]
2586
2621
  // departments Department[]
2587
2622
 
2588
2623
  @@index([name])