tweak email template model, fix EventLog content size, etc...

This commit is contained in:
Dobromir Popov
2024-04-19 17:04:25 +03:00
parent 54472ad8f2
commit 02c0c420b5
5 changed files with 8 additions and 7 deletions

View File

@ -4,7 +4,7 @@ CREATE TABLE `EventLog` (
`date` DATETIME(3) NOT NULL,
`publisherId` VARCHAR(191) NULL,
`shiftId` INTEGER NULL,
`content` VARCHAR(191) NOT NULL,
`content` VARCHAR(5000) NOT NULL,
`type` ENUM('AssignmentReplacementRequested', 'AssignmentReplacementAccepted', 'SentEmail') NOT NULL,

View File

@ -271,7 +271,7 @@ model EventLog {
publisher Publisher? @relation(fields: [publisherId], references: [id])
shiftId Int?
shift Shift? @relation(fields: [shiftId], references: [id])
content String
content String @db.VarChar(5000)
type EventLogType
}