Commit cbe62711 authored by Petr Babic's avatar Petr Babic
Browse files

create ERD

parent 18f43aee
Loading
Loading
Loading
Loading
+21.7 KiB
Loading image diff...
+37 −0
Original line number Diff line number Diff line
@startuml

entity menu_item as "Menu Item" {
    * **ID**: int <<PK>>
    --
    * name: str
    * description: str
    * price: int
}

entity customer as "Customer" {
    * **ID**: int <<PK>>
    --
    * email: str
    * password_hash: bytes
}

entity order as "Order" {
    * **ID**: int <<PK>>
    --
    * status: str
    * time_created: int
    * **customer_id**: int <<FK>>
}

entity restaurant as "Restaurant" {
    * **ID**: int <<PK>>
    --
    * description: str
}

order }o--|{ menu_item
customer ||--o{ order
restaurant ||--o{ order
restaurant ||--o{ menu_item

@enduml
(53.9 KiB)

File moved.