feat: add relation for agent
This commit is contained in:
parent
a412aef7ac
commit
e76292fe38
4 changed files with 62 additions and 11 deletions
|
|
@ -389,6 +389,7 @@ model User {
|
|||
userMenuComponentPermission UserMenuComponentPermission[]
|
||||
workflowTemplateStepUser WorkflowTemplateStepUser[]
|
||||
requestWork RequestWork[]
|
||||
customerBranch CustomerBranch[]
|
||||
|
||||
userCreated User[] @relation("UserCreatedByUser")
|
||||
userUpdated User[] @relation("UserUpdatedByUser")
|
||||
|
|
@ -513,7 +514,8 @@ model CustomerBranch {
|
|||
contactTel String
|
||||
officeTel String
|
||||
contactName String
|
||||
agent String
|
||||
agentUserId String?
|
||||
agentUser User? @relation(fields: [agentUserId], references: [id], onDelete: SetNull)
|
||||
|
||||
// NOTE: Business
|
||||
businessType String
|
||||
|
|
@ -952,6 +954,7 @@ model ProductGroup {
|
|||
name String
|
||||
detail String
|
||||
remark String
|
||||
shared Boolean @default(false)
|
||||
|
||||
status Status @default(CREATED)
|
||||
statusOrder Int @default(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue