feat: user now responsible for multiple area
This commit is contained in:
parent
1a255b6046
commit
cd58a4bc36
2 changed files with 21 additions and 3 deletions
|
|
@ -392,7 +392,7 @@ model User {
|
|||
importNationality String?
|
||||
|
||||
trainingPlace String?
|
||||
responsibleArea String?
|
||||
responsibleArea UserResponsibleArea[]
|
||||
|
||||
birthDate DateTime? @db.Date
|
||||
|
||||
|
|
@ -454,6 +454,13 @@ model User {
|
|||
notificationRead Notification[]
|
||||
}
|
||||
|
||||
model UserResponsibleArea {
|
||||
id String @id @default(cuid())
|
||||
area String
|
||||
|
||||
user User[]
|
||||
}
|
||||
|
||||
enum CustomerType {
|
||||
CORP
|
||||
PERS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue