upd: be banner

Deskripsi:
- database table banner
- api crud banner

No
Issues
This commit is contained in:
amel
2024-10-03 17:18:13 +08:00
parent 3b5d98ad27
commit 1645803e36
7 changed files with 227 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ model Village {
Project Project[]
Division Division[]
ColorTheme ColorTheme[]
BannerImage BannerImage[]
}
model Group {
@@ -481,6 +482,18 @@ model ColorTheme {
updatedAt DateTime @updatedAt
}
model BannerImage {
id String @id @default(cuid())
Village Village? @relation(fields: [idVillage], references: [id])
idVillage String?
title String
extension String
image String
isActive Boolean @default(true)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Subscription {
id String @id @default(cuid())
data Json