Global Messages

This commit is contained in:
nocnico
2025-03-03 03:59:44 +01:00
parent 5f43ab34fa
commit f6cad23bf4
6 changed files with 244 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
enum GlobalColor {
PRIMARY
SECONDARY
INFO
SUCCESS
WARNING
ERROR
}
model Message {
id Int @id @default(autoincrement())
color GlobalColor
message String
showUntil DateTime
isMainMsg Boolean
active Boolean
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}