Uploaded by Kevin Zeneli

Car Parking Management System Project Report

advertisement
Ahsanullah University of Science and Technology
Department of Computer Science and Engineering
Project Name : Car Parking Management System
Couse Name: Database Lab
Couse ID: CSE 3104
Semester : FALL 2018
Group : 06
Name: Md. Zahid Fesabelilla
ID : 160204082
Name : Arafath Hossain
ID : 160104029 (re-ad)
Database Tables:
Table 01: User
Field
Type
UserId
Int
Constraint
P.K (IS: 1001)
UserName
Varchar(50)
Not Null
Password
Varchar(50)
Not Null
FirstName
LastName
Phone Number
Licence Number
NID Number
Varchar(50)
Varchar(50)
Varchar(15)
VarChar(100)
VarChar(50)
Not Null
Not Null
Not Null
Not Null
Not Null
Gender
VarChar(10)
Not Null
Image
image
Not Null
User Type
VarChar(10)
Null
Review
Varchar(10)
Null
Table 02: Owner
Field
Type
OwnerId
Int
Constraint
P.K (IS: 2001)
FirstName
LastName
Phone Number
Address
NID Number
Gender
VarChar(50)
VarChar(50)
VarChar(50)
VarChar(150)
VarChar(50)
VarChar(10)
Not Null
Not Null
Not Null
Not Null
Not Null
Not Null
Image
image
Not Null
Parking Slots
int
Not Null
Review
VarChar(50)
Null
Table 03: Owner Address
Field
OwnerId
AddressId
Area
Sector
Road Number
House Number
Type
Int
Int
Varchar(100)
Varchar(50)
Varchar(50)
Varchar(50)
Constraint
F.K (IS: 2001)
P.K (IS: 3001)
Not Null
Null
Null
Not Null
Table 03: Parking Slot
Field
OwnerId
SlotId
Size
Starting Time
Ending Time
CCTV
Price
Caretaker
Type
Int
Int
Decimal
Varchar(50)
Varchar(50)
Boolean
Decimal
Boolean
Constraint
F.K (IS: 2001)
P.K (IS: 4001)
Not Null
Null
Null
Null
Not Null
Null
Database Relations:
Relation 01: Uses
Field
UserId
OwnerId
Time
UserType
Slot Id
Type
Int
Int
Varchar(50)
Varchar(50)
INT
Constraint
F.K (User)
F.K (Owner)
Null
F.k(User)
P.k
Type
Int
Int
Varchar(20)
Constraint
F.K (Parking Slot)
F.K (Owner)
Not Null
Relation 02: Owns
Field
SlotId
OwnerId
Type
Entity Relationship Diagram:
Download