You are on page 1of 11

Table 1 show the design of the students data entity which holds the ID number,

students ID, first name, last name, middle name of the student, the department, course,
birthdate, address and gender of the students and remarks that stores the students
violation.
Table 1 Student's Entity

Data Item Type Size Description

ID 11 Primary key, holds the ID for


INT
visitors with vehicle.
Student_ID 255 Holds the plate number of the
VARCHAR
vehicle.
First_Name 255 Holds the fullname of the visitor.
VARCHAR

MI VARCHAR 255 Holds the driverID of the visitor.

Last_Name 255 Holds the date and time the visitor


VARCHAR
visits.
Department 255 Holds the name of the security-in-
VARCHAR
charge who processed the visitor.
Course 255 Holds the date and time where the
VARCHAR
visitors processed for entering.
Birthdate Holds the date and time where the
DATE
visitors processed for logging out.
Address 255 Holds the name of the security-in-
VARCHAR
charge who processed the visitor.
Gender 255 Holds the date and time where the
VARCHAR
visitors processed for entering.
Remarks Holds the date and time where the
LONGTEXT
visitors processed for logging out.
Table 2 shows the person to visit’s data entity which holds the ID number,
Department, and full name of the person that will be visited.
Table 2 Person to Visit's Entity

Data Item Type Size Description

ID 50 Primary key, holds the ID for the


VARCHAR
visitor.
Department 255 Holds the department the visitor
VARCHAR
going to.
LastName 255 Holds the last name of the visitor.
VARCHAR

FirstName VARCHAR 255 Holds the first name of the visitor.

MiddleName 255 Holds the middle name of the


VARCHAR
visitor.
Password 255 Holds the encrypted password of
VARCHAR
the added visitor.

Table 3 shows the event attendance data entity which holds the ID of the
process, date of the event, event name, the host of the event, the contact person or the
coordinator, and the full name of the participants, address, company, time in and out of
the visitor.

Table 3 Event Attendance Entity

Data Item Type Size Description

ID 11 Primary Key, holds the ID of the


INT
Event Attendance.
Date Holds the when is the date of the
DATETIME
event.
Event 255 Holds the name of the event.
VARCHAR

EventHost VARCHAR 255 Holds the host of the event.

ContactPerson 255 Holds the contact person or the


VARCHAR
coordinator of the event.
FirstName 255 Holds the first name of the
VARCHAR
participants in the event.
LastName 255 Holds the last name of the
VARCHAR
participant I the event.
Address 255 Holds the address of the
VARCHAR
participants or visitor in the event.
Company 255 Holds the company they came from
VARCHAR
if there is any.
Time_in VARCHAR 255 Holds the time the visitor arrive.
Time_out VARCHAR 255 Holds the time the visitor out.

Table 4 shows the ID and name of the violation the student will be commit.
Table 4 Violations Entity

Data Item Type Size Description

ID 11 Primary Key, holds the ID of


INT
Violation.
ViolationName LONGTEXT Holds the name of the violation.

Table 5 shows the violation ID and name, Student ID and name, department of
the student, date, status and date settled the violations.

Table 5 Student Violations

Data Item Type Size Description

Student Violation ID 11 Primary Key, holds the ID of the


INT
student violators.
Violation_Name Holds the name of the violation the
LONGTEXT
student committed.
Student_ID 255 Holds the ID number of the student.
VARCHAR

Name LONGTEXT Holds the name of the student.

Department 255 Holds the department the student


VARCHAR
enrolled.
Date Holds the date when the student
LONGTEXT
commit the violation.
Status 255 Holds the status if the student
VARCHAR
settled or not the violation.
Date_Settled 255 Holds the date when the student
VARCHAR
settle the vilation.
Table 5 shows the Gate data entity which holds the gate ID, gate name and the
name of the PC that will be use in different gates.
Table 6 Gate Entity

Data Item Type Size Description

ID_gate 50 Primary Key, holds the ID of the


INT
each gate.
Gate_name VARCHAR 50 Holds the name of gate.

PC_name 50 Holds the name of each PC that will


VARCHAR be assign in every gate.

Table 6 shows the contractor data entity which holds the ID of each contractor,
fulname, task, time in and out, gate in and out, processed by when they in and out, and
the date of the process.
Table 7 Contractor Entity

Data Item Type Size Description

ID_contractor 50 Primary Key, holds the ID of the


INT
contractor.
Full_name 50 Holds the full name of the
VARCHAR
contractor.
Time_in VARCHAR 50 Holds the time the contactor in.

Gate_in VARCHAR 50 Holds the gate the contractor in.


50 Holds the name of the user who
Process_BYin VARCHAR processes the entrance of the
contractor.
Time_out VARCHAR 50 Holds the time the contractor out.
Gate_out VARCHAR 50 Holds the gate the contractor out.
Process_BYout 50 Holds the name of the user who
VARCHAR
processes the exit of the contractor.
Date 50 Holds the date the contractor visit
VARCHAR
the campus for their task.

Table 7 shows the Admin Account data entity which holds the username
and password of the admin.
Table 8 Admin Account Entity

Data Item Type Size Description

Username 55 Primary Key, holds the username


VARCHAR
of the admin.
Password 55 Holds the encrypted password of
VARCHAR
the admin.

Table 8 holds the Car log data entity which holds the ID of the process, Plate
number of the car, fullname of the visitor, time in and out, gate in and out, the user
processed the visitor when they in and out and the date.
Table 9 Visitor with Car Log Entity

Data Item Type Size Description

ID_carlog 50 Primary Key, holds the ID of the


INT
Car log.
Full_name 50 Holds the name of the visitor.
VARCHAR

Time_in VARCHAR 50 Holds the time the visitor in.

Gate_in VARCHAR 50 Holds the gate the visitor in.


Process_BYin 50 Holds the name of the user
VARCHAR
processes the in of the visitor.
Time_out VARCHAR 50 Holds the time the visitor out.
Gate_out VARCHAR 50 Holds the gate the visitor out.
Process_BYout 50 Holds the name of the user
VARCHAR
processes the out of the visitor.
Date VARCHAR 50 Holds the date the visitor visit.
Table 9 holds the key borrowing data entity which holds the ID, name, description
of the ID, ID of the user, name of the user, type of the user, department, date, time the
key borrow and return, date of return, gate in and out, and the user processes the in
and out of the key.
Table 10 Key Borrowing

Data Item Type Size Description

ID 11 Primary Key, holds the ID of key


INT
borrowing.
Key_Name VARCHAR 255 Holds the name of the key.

Key_Desc 255 Holds the description of the key.


VARCHAR

User_ID VARCHAR 255 Holds the user ID of the borrower.

Name VARCHAR 255 Holds the name of the borrower.


User_Type VARCHAR 255 Holds the type of the borrower.
Department 255 Holds the department of the
VARCHAR
borrower.
Date DATE Holds the date of the process.
Time_Borrowed VARCHAR 255 Holds the time the key borrow.
Date_Returned DATE Holds the date the key return.
Time_Returned VARCHAR 255 Holds the time the key return.
Gate_in LONGTEXT Holds the gate the borrower in.
Gate_out VARCHAR 255 Holds the gate the borrower out.
ProcessedBy_in 255 Holds the name of security guard
VARCHAR
borrow the key.
ProcessedBy_out 255 Holds the name of the security
VARCHAR
guard received the key.
Table 10 shows the user data entity which holds the status, username, fullname,
and password of the security guard.
Table 11 User Entity

Data Item Type Size Description

Status 50 Primary Key, holds the status of the


VARCHAR
user.
User_name 50 Holds the username of the security
VARCHAR
guard.
Full_name 50 Holds the fullname of the security
VARCHAR guard.
Password 50 Holds the password of the security
VARCHAR
guard.

Table 11 show the design of the keys data entity which holds the key ID, RFID
use for the key and description of the key.
Table 12 Keys Entity

Data Item Type Size Description

Key_ID 11 Primary Key, holds the ID code of


INT
the key.
Key_RFID LONGTEXT Holds the RFID assign to the key.

Key_Desc Holds the description of the key


LONGTEXT where it can be use.
Table 12 shows the event data entity which holds the ID, name of the event, date
the event from and to, time from and out of the event, host of the event and the contact
person for that event.
Table 13 Event Entity

Data Item Type Size Description

ID 11 Primary Key, holds the ID number


INT
of the process in the event table.
EventName VARCHAR 255 Holds the name of the event.

DateFrom 255 Holds the starting date of the event.


VARCHAR

DateTo VARCHAR 255 Holds until when the event.

Time_From 255 Holds the time beginning of the


VARCHAR
event.
Time_To 255 Holds the until what time the event
VARCHAR
will be.
EventHost 255 Holds the name of the host of the
VARCHAR
event.
ContactPerson 255 Holds the coordinator to be contact
VARCHAR
in the event.

Table 13 shows the utility data entity which holds the ID, utility ID, fullname of the
utility, department, designation, task, birthdate, address, gender and remarks.
Table 14 Utility Entity

Data Item Type Size Description

ID 11 Primary Key, holds the ID of the


INT
Utility.
Utility_ID VARCHAR 255 Holds the Utility ID.

First_Name 255 Holds the first name of the utility.


VARCHAR

MI VARCHAR 255 Holds the middle initial of the utility.

Last_Name VARCHAR 255 Holds the last name of the utility.


Department 255 Holds the department the utility
VARCHAR
came from.
Designation VARCHAR 255 Holds the designation of the utility.
Task VARCHAR 255 Holds the task of the utility.
Birthdate DATE Holds the birthdate of the utility.
Address VARCHAR 255 Holds the address of the utility.
Gender VARCHAR 255 Holds the gender of the utility.
Remarks 255 Holds if there is any remarks to the
LONGTEXT
utility.

Table 14 shows the utility logs data entity which holds the ID, utility ID, name,
department, designation, task, date, time in and out, gate in and out, and the name of
the security guard processed the in and out of the utility.
Table 15 Utility Logs Entity

Data Item Type Size Description

ID 11 Primary Key, Holds the ID of Utility


INT
Logs.
Utility_ID VARCHAR 255 Holds the utility ID.

Name 255 Holds the name of the utility.


VARCHAR

Department 255 Holds the department the utility


VARCHAR
came from.
Designation VARCHAR 255 Holds the designation of the utility.
Task VARCHAR 255 Holds the task of the utility.
Date DATE Holds the date of process.
Time_in VARCHAR 255 Holds the time the utility in.
Time_out VARCHAR 255 Holds the time the utility out.
Gate_in LONGTEXT Holds the gate the utility in.
Gate_out VARCHAR 255 Holds the gate the utility out.
ProcessedBy_in 255 Holds the name of the security
VARCHAR
guard processed the in of the utility.
ProcessedBy_out 255 Holds the name of the security
VARCHAR
guard processed the in of the utility

Table 15 shows the Reason of Visit data entity which holds the ID and reason of
visit.
Table 16 Reason of Visit Entity

Data Item Type Size Description


ID 11 Primary Key, Holds the ID of the
INT
reason of visit.
Reason 255 Holds the different kind or type of
VARCHAR
reason of visit.

Table 16 holds the Visitor Logs data entity which holds the control number, RFID,
type of ID, ID number, firstname, lastname, address, company, department, person to
visit, reason of visit, image of ID, date recorded, time in and out, gate in and out, and
name of security guard processed the in and out of the visitor.

Table 17 Visitor Log Entity

Data Item Type Size Description

CtrlNum 11 Primary Key, holds the control


INT
number of visitor log.
RFID VARCHAR 255 Holds the RFID code of the visitor.

TypeOfID 255 Holds the type of ID the visitor


VARCHAR have.
IDNum VARCHAR 255 Holds the ID number of the visitor.

FirstName VARCHAR 255 Holds the first name of the visitor.


LastName VARCHAR 255 Holds the lastname of the visitor.
Address VARCHAR 255 Holds the address of the visitor.
Company 255 Holds the company the visitor came
VARCHAR
from.
Department 255 Holds the department the visitor will
VARCHAR
be visit.
PersonToVisit 255 Holds the name of the person the
VARCHAR
visitors will be visited.
Reason VARCHAR 255 Holds the reason of visit.
Img Holds the image of the ID the visitor
LONGBLOB
have.
DateRecorded Holds the date the visitor visited the
DATE
camous.
Time_in VARCHAR 255 Holds the time the visitor in.
Time_out VARCHAR 255 Holds the time the visitor out.
Gate_in VARCHAR 255 Holds the gate the visitor in.
Gate_out VARCHAR 255 Holds the gate the visitor out.
ProcessedBy_in VARCHAR Holds the name of the security
255
guard processed the visitor in.
ProcessedBy_out 255 Holds the name of the security
VARCHAR
guard processed the visitor out.
Plate_No 50 Holds the plate number of the
VARCHAR
visitor with vehicles.

Table 17 holds the ID number and ID type the visitors have when they visited the
campus.

Table 18 ID Entity

Data Item Type Size Description

ID 11 Primary Key, holds the unique


INT
number of the ID the visitor have.
ID_Type 255 Holds what type of ID the visitors
VARCHAR
have.

You might also like