Add support for Brands: introduce prisma migrate
Build dev docker image / build (push) Successful in 25s
Build dev docker image / build (push) Successful in 25s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user