feat: expand admin companies and users modules
This commit is contained in:
parent
a043b1203c
commit
2e3b46a7b5
31 changed files with 5626 additions and 2003 deletions
|
|
@ -40,16 +40,22 @@ enum TicketChannel {
|
|||
MANUAL
|
||||
}
|
||||
|
||||
enum CommentVisibility {
|
||||
PUBLIC
|
||||
INTERNAL
|
||||
}
|
||||
|
||||
model Team {
|
||||
id String @id @default(cuid())
|
||||
tenantId String
|
||||
name String
|
||||
description String?
|
||||
enum CommentVisibility {
|
||||
PUBLIC
|
||||
INTERNAL
|
||||
}
|
||||
|
||||
enum CompanyStateRegistrationType {
|
||||
STANDARD
|
||||
EXEMPT
|
||||
SIMPLES
|
||||
}
|
||||
|
||||
model Team {
|
||||
id String @id @default(cuid())
|
||||
tenantId String
|
||||
name String
|
||||
description String?
|
||||
members TeamMember[]
|
||||
queues Queue[]
|
||||
createdAt DateTime @default(now())
|
||||
|
|
@ -83,6 +89,31 @@ model Company {
|
|||
phone String?
|
||||
description String?
|
||||
address String?
|
||||
legalName String?
|
||||
tradeName String?
|
||||
stateRegistration String?
|
||||
stateRegistrationType CompanyStateRegistrationType?
|
||||
primaryCnae String?
|
||||
timezone String?
|
||||
businessHours Json?
|
||||
supportEmail String?
|
||||
billingEmail String?
|
||||
contactPreferences Json?
|
||||
clientDomains Json?
|
||||
communicationChannels Json?
|
||||
fiscalAddress Json?
|
||||
hasBranches Boolean @default(false)
|
||||
regulatedEnvironments Json?
|
||||
privacyPolicyAccepted Boolean @default(false)
|
||||
privacyPolicyReference String?
|
||||
privacyPolicyMetadata Json?
|
||||
contacts Json?
|
||||
locations Json?
|
||||
contracts Json?
|
||||
sla Json?
|
||||
tags Json?
|
||||
customFields Json?
|
||||
notes String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue