@adaptware/eagles-db 0.5.59 → 0.5.62

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-d95bffca2768aeaa99cefaa3b5a7fdb27fd38496985cf4b0c6117e4a7802dd3a",
2
+ "name": "prisma-client-9b85e3804aa4345ba8567456c5cc1f3f4f2de8e7d9574dda0d3c9cc6fafe7028",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -1556,16 +1556,28 @@ enum FitCheckStatus {
1556
1556
  @@schema("public")
1557
1557
  }
1558
1558
 
1559
+ /// 5-level current evaluation. LEVEL_1 is weakest, LEVEL_5 is strongest.
1560
+ /// Display copy and numeric rank live in backend `CurrentEvaluationMapper`.
1561
+ enum CurrentEvaluation {
1562
+ LEVEL_1
1563
+ LEVEL_2
1564
+ LEVEL_3
1565
+ LEVEL_4
1566
+ LEVEL_5
1567
+
1568
+ @@schema("public")
1569
+ }
1570
+
1559
1571
  model FitCheck {
1560
1572
  /// Primary key (UUID)
1561
- id String @id @default(uuid())
1573
+ id String @id @default(uuid())
1562
1574
  /// FK to organisations table
1563
1575
  organisation_id String?
1564
1576
  candidate_id String?
1565
1577
  resume_id String
1566
1578
  job_description_id String
1567
1579
  /// Owning application (inverted from Application.fit_check_id)
1568
- application_id String? @unique
1580
+ application_id String? @unique
1569
1581
  skills_analysis Json?
1570
1582
  overall_analysis Json?
1571
1583
  overall_score Float
@@ -1573,22 +1585,25 @@ model FitCheck {
1573
1585
  overall_recommendation String?
1574
1586
  /// Why `overall_score` is this value. Distinct from `overall_recommendation`.
1575
1587
  score_reasoning String?
1588
+ /// 5-level current evaluation (`CurrentEvaluation`). Independent of overall_score.
1589
+ current_evaluation CurrentEvaluation?
1576
1590
  short_match_analysis Json[]
1577
1591
  fit_comparison Json?
1578
1592
  recommendation Json?
1579
1593
  competencies_analysis Json?
1594
+ competencies_verdict Json?
1580
1595
  /// Audit fields
1581
1596
  created_by String
1582
1597
  updated_by String
1583
- is_active Boolean @default(true)
1584
- created_at DateTime @default(now())
1585
- updated_at DateTime @updatedAt
1598
+ is_active Boolean @default(true)
1599
+ created_at DateTime @default(now())
1600
+ updated_at DateTime @updatedAt
1586
1601
  /// Relations
1587
- organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1588
- candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1589
- resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1590
- job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1591
- application Application? @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1602
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1603
+ candidate User? @relation(fields: [candidate_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1604
+ resume Resume @relation(fields: [resume_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1605
+ job_description JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1606
+ application Application? @relation(fields: [application_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
1592
1607
 
1593
1608
  /// Ensure one FitCheck per (resume_id, job_description_id) pair
1594
1609
  @@unique([resume_id, job_description_id])
@@ -2017,6 +2032,13 @@ model Interview {
2017
2032
  /// When final human feedback was submitted.
2018
2033
  evaluated_at DateTime?
2019
2034
 
2035
+ /// Candidate Acceptance & DPDP Consent
2036
+ candidate_status String? @default("INVITED")
2037
+ dpdp_consent_given Boolean @default(false)
2038
+ dpdp_consent_given_at DateTime?
2039
+ candidate_responded_at DateTime?
2040
+ decline_reason String?
2041
+
2020
2042
  /// Self-scheduling
2021
2043
  reschedule_count Int @default(0)
2022
2044
  last_rescheduled_at DateTime?