feat: CSV exports, PDF improvements, play internal/external with hour split, roles cleanup, admin companies with 'Cliente avulso', ticket list spacing/alignment fixes, status translations and mappings

This commit is contained in:
Esdras Renan 2025-10-07 13:42:45 -03:00
parent addd4ce6e8
commit 3bafcc5a0a
45 changed files with 1401 additions and 256 deletions

View file

@ -7,20 +7,18 @@ datasource db {
url = env("DATABASE_URL")
}
enum UserRole {
ADMIN
MANAGER
AGENT
COLLABORATOR
CUSTOMER
}
enum UserRole {
ADMIN
MANAGER
AGENT
COLLABORATOR
}
enum TicketStatus {
PENDING
AWAITING_ATTENDANCE
PAUSED
RESOLVED
CLOSED
}
enum TicketPriority {
@ -74,6 +72,7 @@ model Company {
tenantId String
name String
slug String
isAvulso Boolean @default(false)
cnpj String?
domain String?
phone String?