Visitor Database Design
Visitor Database Design
username VARCHAR(255)
password VARCHAR(255)
email VARCHAR(255)
ENUM('SuperAdmin', 'Admin',
role
'Employee')
company_id INT
profile_picture VARCHAR(255)
created_at TIMESTAMP
updated_at TIMESTAMP
Visitor Table
full_name VARCHAR(255)
email VARCHAR(255)
phone_number VARCHAR(15)
visit_date DATETIME
purpose_of_visit TEXT
qr_code_scanned BOOLEAN
approval_date TIMESTAMP
created_at TIMESTAMP
updated_at TIMESTAMP
Company Table
Unique user ID id
full_name
phone_number
Description company_id
Description
Unique company ID
Company name
Company address
Date and time of creation
Date and time of last update
Department Table
Employee Table