mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-04 08:36:10 +02:00
E̵̯͎͖̫̙̩̣͈͖̲̜̠̭̟͒̃͒͑̓ͅṽ̸͇͓͓͚̬̹̟͈̰̤͈͇͆̑̓̏̂̈́͌͜͜ẻ̷̩̺͉̱͔͍̹̙̝̱r̸̬͊̓̍̌̏ÿ̵̧̳̟̭̤̙̼͎̮̱̞́̋̿̂̾͋͊́͌̕͘o̵̜̲̱͉̭̳͂̾̄̍̔́̂̀n̶̻̠͈̾͑͐́͘ȩ̶͙̗̗̻̤͇̭̥̄̑̓̋́̊̾̍́͆̾͑̊̕͠ ̸̛̻̩̫͔͕̤̰͚͒͑̀̾͗̾̈́͐̈́̉̍̾̋̐ì̴̛̲͂͊͐̀̆̕s̸̨͚̲̞̺̖̺̞͚̱͚̘̀͂͆̂ ̷͇̽̈́͗͘f̴̘̰̠͂̾̂̓͆́͒̋͛͠i̶͎͓͍̦͈̞͙̣͕͕͚̖̳̓̉̋͐̊̇̚̚͝ņ̵̥͚͈͕̓̍͜ͅe̵̥̳̹͖̮̰͈͕͙͌̆́̊̔̎͑̇̾͆͘͝͝ͅ
n̶̥̑͊̚̕͠o̷͇̗̞̦͚̐̊̓̋̕ț̶̜͉͔̎
This commit is contained in:
+9
-16
@@ -30,28 +30,20 @@ model Restaurant {
|
||||
}
|
||||
|
||||
model Pizza {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
description String?
|
||||
price Decimal
|
||||
restaurant Restaurant @relation(fields: [restaurantId], references: [id])
|
||||
restaurant Restaurant @relation(fields: [restaurantId], references: [id])
|
||||
restaurantId Int
|
||||
orders PizzaToOrder[]
|
||||
orders Order[]
|
||||
}
|
||||
|
||||
model Order {
|
||||
id Int @id @default(autoincrement())
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
id Int @id @default(autoincrement())
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
userId Int
|
||||
pizzas PizzaToOrder[]
|
||||
}
|
||||
|
||||
model PizzaToOrder {
|
||||
id Int @id @default(autoincrement())
|
||||
order Order @relation(fields: [orderId], references: [id])
|
||||
orderId Int
|
||||
pizza Pizza @relation(fields: [pizzaId], references: [id])
|
||||
pizzaId Int
|
||||
pizzas Pizza[]
|
||||
}
|
||||
|
||||
model Organization {
|
||||
@@ -65,8 +57,9 @@ enum Role {
|
||||
USER
|
||||
ADMIN
|
||||
}
|
||||
|
||||
enum Status {
|
||||
UNVERIFIED
|
||||
VERIFIED
|
||||
ENABLED
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user