Add support for Brands: introduce prisma migrate
Build dev docker image / build (push) Successful in 25s

This commit is contained in:
2026-08-07 11:01:27 +02:00
parent 7f7ae8e1ac
commit 062bdbd16e
8 changed files with 306 additions and 1 deletions
+15
View File
@@ -40,6 +40,9 @@ model Drink {
manufacturer_id Int
manufacturer Manufacturer @relation(fields: [manufacturer_id], references: [id])
brand_id Int
brand Brand @relation(fields: [brand_id], references: [id])
type DrinkType
name String @unique
@@ -177,6 +180,18 @@ model Manufacturer {
@@allow('all', auth().type == Admin)
}
model Brand {
id Int @id @default(autoincrement())
name String @unique
image String?
drinks Drink[]
@@allow('read', true)
@@allow('all', auth().type == Admin)
}
model Country {
code String @id
name String