Professional Documents
Culture Documents
Project Report Aptech
Project Report Aptech
(Project Title)
Developed by
Members:
No. Student Name Student ID
1 Nguyen Huu Quynh Nhu Student1284552
Class No.:
Start Date: 21/09/2021
End Date: 21/10/2021
Name of the Coordinator:
Date of Submission:
System Summary:
1.users:
Field Name Data type Width Description
2.roles:
Field Name Data type Width Description
3.permissions:
4.role_permissions:
Field Name Data type Width Description
5.tables:
Field Name Data type Width Description
7.tables_reservation:
Field Name Data type Width Description
8.discounts:
Field Name Data type Width Description
9.servings:
Field Name Data type Width Description
10.attributes:
Field Name Data type Width Description
13.serving_image:
Field Name Data type Width Description
14.orders:
Field Name Data type Width Description
16.invoices:
17.payment_method:
Field Name Data type Width Description
18.review_order:
Field Name Data type Width Description
19.review_serving:
Field Name Data type Width Description
Database Name:mal_de_puerco
1.users:
Validation Required Method Used For Validation
id must be unique primary key constraint
not null clause in the create, update table
statement
name not null clause in the create, update table
statement
code must be unique not null clause in the create, update table
statement
phone must be unique not null clause in the create, update table
statement
Vietnamese phone number constraint
password Encrypt with Bcrypt
email must be unique not null clause in the create, update table
statement
email format constraint (ex: abc@ok.vn ,
abc@gmail.vn)
role_id foreign key references roles(id) constraint
2.roles:
Validation Required Method Used For Validation
id must be unique primary key constraint
not null clause in the create, update
table statement
code must be unique not null clause in the create, update
table statement
name must be unique not null clause in the create, update
table statement
created_at default: CURRENT_TIMESTAMP
status default 1
3.permissions:
Validation Required Method Used For Validation
id must be unique primary key constraint
not null clause in the create, update table
statement
code must be unique not null clause in the create, update table
statement
name must be unique not null clause in the create, update table
statement
created_at default: CURRENT_TIMESTAMP
status default 1
5.tables:
Validation Required Method Used For Validation
id must be unique primary key constraint
not null clause in the create, update
table statement
code must be unique not null clause in the create, update
table statement
name must be unique not null clause in the create, update
table statement
seats not null clause in the create, update
table statement
is_set default 0
default 0
created_at default: CURRENT_TIMESTAMP
status default 1
7.tables_reservation:
Validation Required Method Used For Validation
8.discounts:
Validation Required Method Used For Validation
id must be unique primary key constraint
not null clause in the create, update
table statement
code must be unique not null clause in the create, update
table statement
name not null clause in the create, update
table statement
start_date date constraint
not null clause in the create, update
table statement
end_date date constraint
not null clause in the create, update
table statement
9.servings:
Validation Required Method Used For Validation
id must be unique primary key constraint
not null clause in the create, update
table statement
name not null clause in the create, update
table statement
thumbnail not null clause in the create, update
table statement
category_id foreign key references
serving_categories(id) constraint
10.attributes:
13.serving_image:
Validation Required Method Used For Validation
14.orders:
Validation Required Method Used For Validation
id must be unique primary key constraint
not null clause in the create, update
table statement
code must be unique not null clause in the create, update
table statement
table_id foreign key references tables(id)
constraint
default 0
total_amount not null clause in the create, update
table statement
payment_method not null clause in the create, update
table statement
16.invoices:
Validation Required Method Used For Validation
17.payment_method:
Validation Required Method Used For Validation
18.review_order:
Validation Required Method Used For Validation
19.review_serving:
Validation Required Method Used For Validation
Order list- Place vs Order list - pay - Place: click button done to
add products to order list
then press button place to
officially create order
- Pay: After order is placed,
repeat step above to add
more items to the list;
customer requesting
payment shall click button
pay