0% found this document useful (0 votes)
28 views1 page

Schema Diagram

The document contains the schema for a restaurant reservation and management system, including tables for meals, customers, menus, orders, payments, staff and more. It lists the fields for each table, including data types like VARCHAR for strings, INT for numbers, and DATE/TIME for dates and times. Indexes are created on primary keys to improve query performance. The schema models the entities and relationships needed to manage reservations, orders, payments and staff.

Uploaded by

AbeerHassan
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)
28 views1 page

Schema Diagram

The document contains the schema for a restaurant reservation and management system, including tables for meals, customers, menus, orders, payments, staff and more. It lists the fields for each table, including data types like VARCHAR for strings, INT for numbers, and DATE/TIME for dates and times. Indexes are created on primary keys to improve query performance. The schema models the entities and relationships needed to manage reservations, orders, payments and staff.

Uploaded by

AbeerHassan
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/ 1

meal

reserve

meal_name VARCHAR(50)

meal_name VARCHAR(20)

meal_num VARCHAR(20)

menu_item _id VARCHAR(20)

menu_item _id VARCHAR(20)

size VARCHAR(20)

Size VARCHAR(10)

guestsnum VARCHAR(20)

Price VARCHAR(20)

customer

menu_menu_item _id VARCHAR(20)

smokingsec VARCHAR(10)

customer_id VARCHAR(20)

Indexes

nonsmoking VARCHAR(10)

email_address VARCHAR(20)

customer_customer_id VARCHAR(20)
Indexes

first_name VARCHAR(20)
last_name VARCHAR(20)
customer comment VARCHAR(20)
make_customer_id VARCHAR(20)
make_order_id VARCHAR(20)
Indexes

stok

menu

component_id VARCHAR(20)
dept_name VARCHAR(20)

customer_id VARCHAR(20)

order_id VARCHAR(20)

order_id VARCHAR(20)

quantity VARCHAR(40)

book_id VARCHAR(20)

customer_id VARCHAR(20)

Quantity VARCHAR(20)

product_name VARCHAR(30)

book

make

menu_item _id VARCHAR(20)

number of guests VARCHAR(10)

Indexes

Indexes

section VARCHAR(10)

product loss VARCHAR(40)

time booked DATE

EXP DATE

data of booking TIME

department_dept_name VARCHAR(20)

company

Indexes

customer_customer_id VARCHAR(20)
Indexes

company name VARCHAR(25)


company_email VARCHAR(20)
company_address VARCHAR(20)

order

_dept_name VARCHAR(20)

order_id VARCHAR(20)

_company name VARCHAR(20)


Indexes

id INT(3)

order_data time INT(20)

email VARCHAR(20)

company name VARCHAR(20)

table number INT(20)

username VARCHAR(20)

check_consignment INT(20)

servy_order_id VARCHAR(20)

password VARCHAR(50)

servy_staff_id VARCHAR(20)

type VARCHAR(20)

dept_name VARCHAR(20)

cost INT(20)
data of order VARCHAR(20)
number of order INT(20)

company telephone

billing_reset VARCHAR(20)

telephone_num VARCHAR(20)

billing_order_id VARCHAR(20)

company name VARCHAR(20)

Indexes

make_customer_id VARCHAR(20)

company_company name VARCHAR(25)

department

make_order_id VARCHAR(20)

Indexes

Indexes

dept_name VARCHAR(20)
_dept_name VARCHAR(20)
_company name VARCHAR(20)
Indexes

login

payment_id VARCHAR(20)

staff
staff_id INT(20)

billing

dept_name VARCHAR(20)
first_name VARCHAR(20)

reset VARCHAR(20)

last_name VARCHAR(20)

order_id VARCHAR(20)

salary FLOAT

payment_type VARCHAR(20)
Indexes

supervisor_id INT(20)
Date_of_birth DATE
shift_time TIME
servy_order_id VARCHAR(20)
servy_staff_id VARCHAR(20)
staff_staff_id INT(20)
Indexes

servy
order_id VARCHAR(20)
staff_id VARCHAR(20)
Indexes

customer_id VARCHAR(20)
Indexes

You might also like