@adaptware/eagles-db 0.4.25 → 0.4.26

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-22f354adc2ceed9301fe854b1c2e9a11bc98b2c530f19d336e326955a2524b21",
2
+ "name": "prisma-client-b42480524bf1fc70d737e12cceb3844fe9e82e9c48127d4a931f18f54e9dbfec",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -131,6 +131,7 @@ model Application {
131
131
  expected_ctc String?
132
132
  notice_period Int?
133
133
  preferred_location String?
134
+ evaluationComment String?
134
135
  // Relations
135
136
  fit_check_status FitCheckStatus?
136
137
  status ApplicationStatus @default(PENDING)
@@ -706,6 +707,12 @@ enum EvaluationPlanType {
706
707
  DELETED
707
708
  }
708
709
 
710
+ enum EvaluationPlanShareScope {
711
+ PRIVATE
712
+ CREATOR
713
+ ORGANIZATION
714
+ }
715
+
709
716
  enum DurationUnit {
710
717
  MINUTES
711
718
  HOURS
@@ -713,7 +720,7 @@ enum DurationUnit {
713
720
  }
714
721
 
715
722
  model EvaluationPlan {
716
- id String @id @default(uuid())
723
+ id String @id @default(uuid())
717
724
  job_description_id String
718
725
  assessment_id String?
719
726
  assignment_library_id String?
@@ -722,32 +729,35 @@ model EvaluationPlan {
722
729
  format EvaluationRoundFormat?
723
730
  topics String[]
724
731
  assignee String?
725
- elimination_round Boolean @default(false)
726
- evaluation_type EvaluationType @default(TREADSPACE_AI_ASSISTED)
732
+ elimination_round Boolean @default(false)
733
+ evaluation_type EvaluationType @default(TREADSPACE_AI_ASSISTED)
727
734
  type_of_round RoundType
728
735
  timeline Int?
729
736
  order_no Int?
730
737
  details Json?
731
- plan_type EvaluationPlanType @default(GENERIC)
738
+ plan_type EvaluationPlanType @default(GENERIC)
739
+ share_scope EvaluationPlanShareScope @default(PRIVATE)
732
740
  duration Int?
733
741
  duration_unit DurationUnit?
734
742
  deadline Int?
735
743
  created_by String
736
744
  updated_by String
737
- created_at DateTime @default(now())
738
- updated_at DateTime @updatedAt
739
- is_active Boolean @default(true)
745
+ created_at DateTime @default(now())
746
+ updated_at DateTime @updatedAt
747
+ is_active Boolean @default(true)
740
748
  // Relations
741
- jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
749
+ jobDescription JobDescription @relation(fields: [job_description_id], references: [id], onDelete: Cascade)
742
750
  questions Question[] // One evaluation plan → many questions
743
751
  interviews Interview[]
744
752
  applications Application[]
745
753
  // New optional one-to-one relation with AssessmentLibrary
746
- assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
747
- assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
754
+ assessment AssessmentLibrary? @relation(fields: [assessment_id], references: [id], onDelete: SetNull)
755
+ assignment_library AssignmentLibrary? @relation(fields: [assignment_library_id], references: [id], onDelete: SetNull)
748
756
  ongoing_evaluations OngoingEvaluation[]
749
757
 
750
758
  @@index([job_description_id])
759
+ @@index([job_description_id, plan_type, share_scope])
760
+ @@index([created_by, share_scope])
751
761
  }
752
762
 
753
763
  model Feedback {