@hirelink/database-prisma 1.1.15 → 1.1.16

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": "@hirelink/database-prisma",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "A Prisma-based database package for Hirelink applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,7 +10,6 @@ datasource db {
10
10
  model User {
11
11
  id String @id
12
12
  email String @unique
13
- phone String?
14
13
  first_name String?
15
14
  last_name String?
16
15
  role Role
@@ -20,6 +19,7 @@ model User {
20
19
  work_experience Work_experience? @default(experience)
21
20
  dob DateTime?
22
21
  gender Gender?
22
+ phone String?
23
23
  candidate_documents CandidateDocument[]
24
24
  verification_requests_custom CandidateverificationTask[]
25
25
  Experience_history ExperienceHistory[]
@@ -194,13 +194,14 @@ model Log {
194
194
  }
195
195
 
196
196
  model candidateProfile {
197
- id String @id @default(uuid())
198
- user_id String @unique
197
+ id String @id @default(uuid())
198
+ user_id String @unique
199
199
  department String?
200
200
  job_role String?
201
201
  location String?
202
202
  designation String?
203
- user User @relation(fields: [user_id], references: [id])
203
+ kycStatus KycStatus @default(pending)
204
+ user User @relation(fields: [user_id], references: [id])
204
205
  }
205
206
 
206
207
  model CandidateverificationTask {
@@ -292,3 +293,10 @@ enum Gender {
292
293
  Other
293
294
  PreferNotToSay
294
295
  }
296
+
297
+ enum KycStatus {
298
+ pending
299
+ verified
300
+ rejected
301
+ complete
302
+ }