0% found this document useful (0 votes)
11 views

Data Dictionary

data dictionary for our database design

Uploaded by

Odemil Uyan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Data Dictionary

data dictionary for our database design

Uploaded by

Odemil Uyan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Data Dictionary

users
Column Name Datatype Description
id BIGINT(20) A unique identifier for each user. This is the primary
key of the table.
firstName VARCHAR(255) The first name of the user.
lastName VARCHAR(255) The last name (surname) of the user.
middleName VARCHAR(255) The middle name of the user. Can be NULL if not
provided.
email VARCHAR(255) The email address of the user. Used for login and
notifications.
email_verified_at TIMESTAMP The date and time when the user's email address was
verified. NULL if not yet verified.
password VARCHAR(255) The encrypted password of the user.
HASHED
userType VARCHAR(255) The role or type of user (e.g., 'admin', ‘user’). This
defines the user's permissions and access.
remember_token VARCHAR(100) A token used to remember the user's login session.
Typically used for "remember me" functionality.
birthday DATE The birth date of the user.
address VARCHAR(255) The residential address of the user.
department VARCHAR(255) The department to which the user belongs (e.g.,
Information Technology Program, ‘Administrators’).
schoolID VARCHAR(255) The unique school identification number or code for
the user.
status INT The status of the user (e.g., '1 = active', '2 = inactive').
created_at TIMESTAMP Timestamp indicating when the user was created.
Managed automatically by the system.
updated_at TIMESTAMP Timestamp indicating when the user data was last
updated. Managed automatically by the system.

transcode_servers
Name Datatype Description
id BIGINT(20) A unique identifier for each transcode servers. This is
the primary key of the table.
rtsp_add VARCHAR(255) The RTSP (Real-Time Streaming Protocol) address for
the source stream.
trans_add VARCHAR(255) The address or endpoint for the transcoded stream.
trans_name VARCHAR(255) The name or label given to the transcoding server for
identification purposes.
room VARCHAR(255) The name or identifier of the room associated with the
transcoding server (e.g., ‘College 301', IT
Laboratory').
resolution VARCHAR(255) The resolution settings for the transcoded stream (e.g.,
'1920:1080', '1280:720').
bitrate VARCHAR(255) The bitrate for the transcoded stream, usually
measured in kilobits per second (kbps).
fps VARCHAR(255) The frames per second (FPS) setting for the
transcoded stream, indicating the smoothness of video
playback.
status VARCHAR(100) The operational status of the transcoding server (e.g.,
running, 'inactive', 'error').
monitor_status_ DATETIME The last time the monitor status of the transcoding
update server was updated.
monitor_status TINYINT(3) The current monitoring status of the transcoding
server (e.g., '0 = standby', '1 = monitoring').
addedby BIGINT(20) The ID of the user who added the transcoding server,
typically referencing a user in the users table.
updatedby BIGINT(20) The ID of the user who last updated the transcoding
server's information, also referencing a user in the
users table.
created_at TIMESTAMP Timestamp indicating when the transcoding server
entry was created. Managed automatically by the
system.
updated_at TIMESTAMP Timestamp indicating when the transcoding server
entry was last updated. Managed automatically by the
system.

teachers
Column Name Datatype Description
id BIGINT(20) A unique identifier for each teacher. This is the
primary key of the table.
first_name VARCHAR(255) The first name of the teacher.
last_name VARCHAR(255) The middle name of the teacher (if applicable).
middle_name VARCHAR(255) The middle name of the teacher. Can be NULL if not
provided.
birthday DATE The birth date of the teacher.
address VARCHAR(255) The residential address of the teacher.
department VARCHAR(255) The department to which the teacher belongs (e.g.,
Information Technology Program, ‘Administrators’).
school_id VARCHAR(255) The unique school identification number or code for
the teacher.
job_type VARCHAR(255) The type of job or position held by the teacher (e.g.,
Full-time, Part-time).
status VARCHAR(20) The status of the teacher. (Active or Inactive)
created_by BIGINT(20) The ID of the user who created the teacher record,
typically referencing a user in the users table.
updated_by BIGINT(20) The ID of the user who last updated the teacher
record, also referencing a user in the users table.
created_at TIMESTAMP Timestamp indicating when the teacher was created.
Managed automatically by the system.
updated_at TIMESTAMP Timestamp indicating when the teacher data was last
updated. Managed automatically by the system.

teacher_schedules
Column Name Datatype Description
id BIGINT(20) A unique identifier for each schedule entry. This is the
primary key of the table.
teacher_id BIGINT(20) A foreign key referencing the id of the teacher in the
teachers table, indicating which teacher the schedule
belongs to.
classroom VARCHAR(255) The name or identifier of the classroom where the
teacher will conduct their classes.
title VARCHAR(255) The title or subject of the class being scheduled (e.g.,
ITP 103, ITP 402).
program VARCHAR(255) The name of the program associated with the schedule
yearLevel VARCHAR(5) The year level associated with the schedule
day VARCHAR(255) The day of the week when the class is scheduled (e.g.,
Monday, Tuesday).
start_time TIME The starting time of the class.
end_time TIME The ending time of the class.
start_date DATE The date when the class schedule starts.
end_date DATE The date when the class schedule ends.
status TINYINT(3) Indicates the status of the schedule (e.g., active,
archived). Typically, 0 for archived and 1 for active.
created_by BIGINT(20) The ID of the user who created the schedule entry,
typically referencing a user in the users table.
updated_by BIGINT(20) The ID of the user who last updated the schedule
entry, also referencing a user in the users table.
created_at TIMESTAMP Timestamp indicating when the schedule entry was
created. Managed automatically by the system.
updated_at TIMESTAMP Timestamp indicating when the schedule entry was
last updated. Managed automatically by the system.

presence_detections
Column Name Datatype Description
id BIGINT(20) A unique identifier for each presence detection entry.
This serves as the primary key for the table.
teacher_id BIGINT(20) A foreign key referencing the id of the teacher in the
teachers table, indicating which teacher the detection
entry relates to.
class_name VARCHAR(255) The name of the class during which the presence was
detected (e.g., ITP 102, GE 2).
classroom VARCHAR(255) The identifier or name of the classroom where the
presence detection occurred.
presencePercentage DECIMAL(20,2 The calculated percentage of presence based on the
) frame-based detection threshold tracking subroutine,
reflecting how likely the detected face corresponds
to the enrolled teacher's face.
created_at TIMESTAMP Timestamp indicating when the presence detection
entry was created, managed automatically by the
system.
updated_at TIMESTAMP Timestamp indicating when the presence detection
entry was last updated, managed automatically by
the system.

notifications
Column Name Datatype Description
id BIGINT(20) A unique identifier for each notification entry.
This serves as the primary key for the table.
notif_name VARCHAR(255) The name or title of the notification, briefly
describing its purpose or context.
notif_description TEXT A detailed description of the notification,
providing context and information about the event
or issue being notified.
notif_type CHAR Indicates the type of notification: U for user-
generated notifications and S for system-generated
notifications.
notif_level INT Represents the severity level of the notification:
1 = Success,
2 = Info,
3 = Warning,
4 = Danger,
5 = Critical.
notif_related_id INT The ID of a related entry within the database, such
as the ID of a transcoding server entry that
encountered an error during processing.
notif_related_creator INT The ID of the creator of the notification. If the
creator is the system, this value is set to 0;
otherwise, it references the user ID of the creator.
notif_read_status TINYINT(1) Indicates whether the notification has been read
(1) or not (0) by the user.
created_at TIMESTAMP Timestamp indicating when the notification entry
was created, managed automatically by the
system.
updated_at TIMESTAMP Timestamp indicating when the notification entry
was last updated, managed automatically by the
system.

notification_user
Column Name Datatype Description
id BIGINT(20) A unique identifier for each record in the
notification_user table. This serves as the primary
key.
notification_id BIGINT(20) The ID of the notification being linked to a specific
user. This serves as a foreign key referencing the
notifications table.
user_id BIGINT(20) The ID of the user who is the recipient of the
notification. This serves as a foreign key
referencing the users table.
is_read TINYINT(1) Indicates whether the notification has been read by
the user:
0 = Not Read
1 = Read
created_at TIMESTAMP Timestamp indicating when the notification entry
for the user was created, managed automatically by
the system.
updated_at TIMESTAMP Timestamp indicating when the notification entry
for the user was last updated, managed
automatically by the system.

face_descriptors
Column Name Datatype Description
id BIGINT(20) A unique identifier for each record in the
face_descriptors table. This serves as the primary
key.
teacher_id BIGINT(20) The ID of the teacher associated with the face
descriptor. This serves as a foreign key referencing
the teachers table.
teacher_name VARCHAR(255) The full name of the teacher corresponding to the
face descriptor, stored for reference and display
purposes.
file_name VARCHAR(255) The name of the file that contains the face image
associated with the descriptor.
Descriptors TEXT A textual representation of the face descriptor
data, stored in a JSON format for compatibility
and efficiency. This will be reformatted into a 128-
dimensional array for use in the facial recognition
module.
created_by INT(10) The ID of the user who created the face descriptor
entry. This serves as a reference to the users table.
created_at TIMESTAMP Timestamp indicating when the face descriptor
entry was created, managed automatically by the
system.
updated_at TIMESTAMP Timestamp indicating when the face descriptor
entry was last updated, managed automatically by
the system.

att_class_utilization
Column Name Datatype Description
id BIGINT(20) A unique identifier for each record in the
att_class_utilization table. This serves as the
primary key.
teacher_id BIGINT(20) The ID of the teacher associated with the
attendance and classroom utilization entry. This
serves as a foreign key referencing the teachers
table.
assigned_classroom VARCHAR(255) The classroom that is assigned to the teacher for
the specified class.
override_classroom VARCHAR(255) The classroom that the teacher has temporarily
used instead of the assigned classroom.
assigned_class VARCHAR(255) The name of the class that is assigned to the
teacher for teaching purposes.
program VARCHAR(255) The name of the program associated with the
schedule.
yearLevel VARCHAR(5) The year level associated with the schedule.
att_remarks VARCHAR(255) Remarks on attendance status, indicating whether
the teacher was "present" or "absent."
start_time DATETIME The date and time when the class or monitoring
session started.
end_time DATETIME The date and time when the class or monitoring
session ended.
util_remarks VARCHAR(255) Remarks regarding classroom utilization status;
indicates if it is "good" for compliance or
"overridden" for non-compliance.
created_at TIMESTAMP Timestamp indicating when the attendance and
classroom utilization entry was created, managed
automatically by the system.
updated_at TIMESTAMP Timestamp indicating when the attendance and
classroom utilization entry was last updated,
managed automatically by the system.

You might also like