Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views3 pages

User Role Permission Role - Permission

The document outlines a database schema for a food ordering system, detailing entities such as User, Role, Permission, and Order, along with their attributes and relationships. It includes enumerations for order status, payment types, and order types. The schema is designed to manage user roles, permissions, food items, and transactions effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

User Role Permission Role - Permission

The document outlines a database schema for a food ordering system, detailing entities such as User, Role, Permission, and Order, along with their attributes and relationships. It includes enumerations for order status, payment types, and order types. The schema is designed to manage user roles, permissions, food items, and transactions effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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
}

You might also like