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

Design Phase

The document describes several relational tables for managing security, users, employees, customers, menus, and orders. Each table lists attributes and their data types, constraints, and whether they are primary or foreign keys.

Uploaded by

Faizan Aslam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Design Phase

The document describes several relational tables for managing security, users, employees, customers, menus, and orders. Each table lists attributes and their data types, constraints, and whether they are primary or foreign keys.

Uploaded by

Faizan Aslam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

3.

5 Relational Tables

3.5.1 Relational Table of Security Management:

Attributes Data Types Constraints Primary Key Foreign Key


S Type nvarchar(50 Not Null Yes Nil
)
Register nvarchar(25 Not Null Nil Nil
)
Login nvarchar(25 Not Null Nil Nil
)
Email nvarchar(25 Not Null Nil Nil
)
Password nvarchar(8) Not Null Nil Nil
Logout Int Not Null Nil Nil

3.5.2 Relational Table of User Management:

Attributes Data Types Constraints Primary Key Foreign Key


User Name nvarchar(25) Not Null Yes Nil
U Email nvarchar(25) Not Null Nil Nil
U Password nvarchar(8) Not Null Nil Nil
U Contact no Int Not Null Nil Nil
U Address nvarchar(25) Not Null Nil Nil
S Type nvarchar(50) Not Null Nil Yes

3.5.3 Relational Table of Employee Management:

Attributes Data Types Constraints Primary Key Foreign Key


Id Int Unique Yes Nil
E Name nvarchar(25) Not Null Nil Nil
E Password nvarchar(8) Not Null Nil Nil
E Contact no Int Not Null Nil Nil
E Address nvarchar(25) Not Null Nil Nil
E Attendance Char(100) Not Null Nil Nil
E Email nvarchar(25) Not Null Nil Nil
S Type nvarchar(50) Not Null Nil Yes

3.5.4 Relational Table of Customer Management:

Attributes Data Types Constraints Primary Key Foreign Key


C Name nvarchar(25) Not Null Yes Nil
C Email nvarchar(25) Not Null Nil Nil
C Contact no Int Not Null Nil Nil
C Address nvarchar(25) Not Null Nil Nil
S Type nvarchar(50) Not Null Nil yes
User Name nvarchar(25) Not Null Nil Yes

3.5.5 Relational Table of Menu Management:

Attributes Data Types Constraints Primary Key Foreign Key


Item Name nvarchar(100) Unique Yes Nil
Item List nvarchar(25) Not Null Nil Nil
Item Price Int Not Null Nil Nil
New item nvarchar(25) Not Null Nil Nil
Id Int Unique Nil Yes
User Name nvarchar(25) Not Null Nil Yes
C Name nvarchar(25) Not Null Nil Yes

3.5.6 Relational Table of Order Management:

Attributes Data Types Constraints Primary Key Foreign Key


Order No Int Unique Yes Nil
O Date Date Not Null Nil Nil
O Address nvarchar(25) Not Null Nil Nil
O Timings Time Not Null Nil Nil
Cash On nvarchar(25) Not Null Nil Nil
Delivery
Id Int Unique Nil Yes
User Name nvarchar(25) Not Null Nil Yes
C Name nvarchar(25) Not Null Nil Yes
Item Name nvarchar(100) Unique Nil Yes

You might also like