feat: export reports as xlsx and add machine inventory
This commit is contained in:
parent
29b865885c
commit
714b199879
34 changed files with 2304 additions and 245 deletions
|
|
@ -130,6 +130,8 @@ model User {
|
|||
name String
|
||||
email String @unique
|
||||
role UserRole
|
||||
jobTitle String?
|
||||
managerId String?
|
||||
timezone String @default("America/Sao_Paulo")
|
||||
avatarUrl String?
|
||||
companyId String?
|
||||
|
|
@ -140,10 +142,13 @@ model User {
|
|||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
manager User? @relation("UserManager", fields: [managerId], references: [id])
|
||||
reports User[] @relation("UserManager")
|
||||
company Company? @relation(fields: [companyId], references: [id])
|
||||
|
||||
@@index([tenantId, role])
|
||||
@@index([tenantId, companyId])
|
||||
@@index([tenantId, managerId])
|
||||
}
|
||||
|
||||
model Queue {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue