@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/client/edge.js +27 -3
- package/client/index-browser.js +24 -0
- package/client/index.d.ts +2412 -2
- package/client/index.js +27 -3
- package/client/package.json +1 -1
- package/client/schema.prisma +46 -11
- package/client/wasm.js +27 -3
- package/package.json +1 -1
- package/prisma/schema/evaluationCriteria.prisma +33 -0
- package/prisma/schema/organisation.prisma +12 -11
package/package.json
CHANGED
|
@@ -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
|
|
13
|
-
name
|
|
14
|
-
industry
|
|
15
|
-
about
|
|
16
|
-
website
|
|
17
|
-
size
|
|
18
|
-
phone
|
|
19
|
-
address
|
|
20
|
-
company_values
|
|
21
|
-
allowed_email_domains
|
|
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])
|