User Role Permission Role_Permission
0..1 0..1 0..1 0..1 *
id int id int id int role_id int
*
name string name string method string permission_id int
*
role_id int description string ApiPath string Note string
email string created_at datetime module string
password string updated_at datetime created_at datetime
Cart_Food
phone string updated_at datetime
*
cart_id int
avatar string
*
Food food_id int
created_at datetime
0..1
id int Cart
updated_at datetime
0..1 0..1
name string id int
* ReviewAndFeedback
price float customer_id int
id int
Category description string isOrdered boolean
0..1 description string
id int image string totalPrice float
*
* id_Customer int
name string category_id int
image string
created_at datetime qualitySold int
Transaction created_at datetime
updated_at datetime created_at datetime
0..1
id int updated_at datetime
updated_at datetime
*
customer_id int
*
Order order_id int
0..1
id int Order_Food methodPay payType
*
status status_Order order_id int status string
*
order_type orderType food_id int amount float
notes string quality int payment_gateway_id string
discount_code string created_at datetime
isPaied boolean updated_at datetime
created_at datetime
updated_at datetime
address string
payment_method payType
*
customer_id int
*
staff_id int
tableNumber string
*
cart_id int
*
transaction_id int
User Role Permission Role_Permission
0..1 0..1 0..1 0..1 *
id int id int id int role_id int
*
name string name string method string permission_id int
*
role_id int description string ApiPath string Note string
email string created_at datetime module string
password string updated_at datetime created_at datetime
Cart_Food
phone string updated_at datetime
*
cart_id int
avatar string
*
Food food_id int
created_at datetime
0..1
id int Cart
updated_at datetime
0..1 0..1
name string id int
* ReviewAndFeedback
price float customer_id int
id int
Category description string isOrdered boolean
0..1 description string
id int image string totalPrice float
*
* id_Customer int
name string category_id int
image string
created_at datetime qualitySold int
Transaction created_at datetime
updated_at datetime created_at datetime
0..1
id int updated_at datetime
updated_at datetime
*
customer_id int
*
Order order_id int
0..1
id int Order_Food methodPay payType
*
status status_Order order_id int status string
*
order_type orderType food_id int amount float
notes string quality int payment_gateway_id string
discount_code string created_at datetime
isPaied boolean updated_at datetime
created_at datetime
updated_at datetime
address string
payment_method payType
*
customer_id int
*
staff_id int
tableNumber string
*
cart_id int
*
transaction_id int
Enum status_Order {
pending
confirmed
preparing
completed
cancelled
}
Enum payType {
transfer
cash
credit_card
}
Enum orderType {
online
here
}