@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptware/eagles-db",
3
- "version": "0.4.44",
3
+ "version": "0.4.46",
4
4
  "description": "A Prisma client package for Treadspace database operations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,33 @@
1
+ enum CriteriaScope {
2
+ ORGANISATION
3
+ TREADSPACE
4
+
5
+ @@schema("public")
6
+ }
7
+
8
+ model EvaluationCriteria {
9
+ /// Primary key
10
+ id String @id @default(uuid())
11
+ /// Foreign keys
12
+ organisation_id String?
13
+ /// Data fields
14
+ scope CriteriaScope
15
+ key String
16
+ criteria String?
17
+ description String?
18
+ weightage Float?
19
+ is_elimination Boolean @default(false)
20
+ metadata Json?
21
+ /// Audit fields
22
+ created_by String
23
+ updated_by String
24
+ created_at DateTime @default(now())
25
+ updated_at DateTime @updatedAt
26
+ is_active Boolean @default(true)
27
+ /// Relations
28
+ organisation Organisation? @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
29
+
30
+ /// Indexes
31
+ @@index([scope, organisation_id])
32
+ @@schema("public")
33
+ }
@@ -9,17 +9,17 @@ enum OrganisationSize {
9
9
  }
10
10
 
11
11
  model Organisation {
12
- id String @id @default(uuid())
13
- name String @unique
14
- industry String
15
- about String
16
- website String
17
- size OrganisationSize @default(ONE_TO_TEN)
18
- phone String
19
- address String
20
- company_values Json[]
21
- allowed_email_domains String[]
22
-
12
+ id String @id @default(uuid())
13
+ name String @unique
14
+ industry String
15
+ about String
16
+ website String
17
+ size OrganisationSize @default(ONE_TO_TEN)
18
+ phone String
19
+ address String
20
+ company_values Json[]
21
+ allowed_email_domains String[]
22
+ send_email Boolean @default(true)
23
23
  interviewers User[]
24
24
  created_at DateTime @default(now())
25
25
  updated_at DateTime @updatedAt
@@ -58,6 +58,7 @@ model Organisation {
58
58
  documents Document[]
59
59
  job_application_templates JobApplicationTemplate[]
60
60
  sources Source[]
61
+ evaluation_criteria EvaluationCriteria[]
61
62
  // departments Department[]
62
63
 
63
64
  @@index([name])