feat(content): add announcements and public news flows
This commit is contained in:
@@ -339,3 +339,21 @@ model Commission {
|
||||
@@index([customerId])
|
||||
@@index([assignedUserId])
|
||||
}
|
||||
|
||||
model Announcement {
|
||||
id String @id @default(uuid())
|
||||
title String
|
||||
message String
|
||||
placement String
|
||||
priority Int @default(100)
|
||||
ctaLabel String?
|
||||
ctaHref String?
|
||||
startsAt DateTime?
|
||||
endsAt DateTime?
|
||||
isVisible Boolean @default(true)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([placement, isVisible])
|
||||
@@index([priority])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user