ASM1 1ST Database
ASM1 1ST Database
Unit number and title Unit 04: Database Design & Development
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Grading grid
P1 M1 D1
1|Page
2|Page
❒ Summative Feedback: ❒ Resubmission Feedback:
3|Page
Signature & Date:
Contents
I. INTRODUCTION....................................................................................................................................................................................4
II. DESIGN THE RALATIONAL DATABASE SYSTEM.....................................................................................................................................4
1. Analyse the requirements and rules of the system..........................................................................................................................4
2. Design entity relationship model......................................................................................................................................................6
III. Conclusion.......................................................................................................................................................................................15
References..................................................................................................................................................................................................16
Hình 1:diagrams...........................................................................................................................................................................................6
Hình 2:Users................................................................................................................................................................................................8
Hình 3:Roles................................................................................................................................................................................................9
Hình 4:Instructors......................................................................................................................................................................................10
Hình 5:Students.........................................................................................................................................................................................11
Hình 6:Courses..........................................................................................................................................................................................12
Hình 7:Classes...........................................................................................................................................................................................13
Hình 8:Grades............................................................................................................................................................................................14
Hình 9:Assignments...................................................................................................................................................................................15
4|Page
I. INTRODUCTION
As a database developer working with large educational institutions like FPT schools, I'm currently engaged in the design and
development of a Content Management System (CMS). Given the continuous growth in the student population at FPT schools, the
need for a nimble and efficient system to manage and deliver services has become paramount in this expansive educational setting.
The primary objective of this project is to establish a comprehensive CMS tailored for students, teachers, and administrators. This
CMS aims to provide a user-friendly experience, enabling students to effortlessly discover and access the educational materials and
resources they require, while teachers can manage their resources and assignments efficiently. Additionally, it will facilitate the
registration and management of digital book borrowing, streamlining the process by utilizing online coupons.
In this endeavor, we will strategically employ a selection of tools, software, and programming languages to fulfill the outlined
requirements. The CMS will cater to three main user groups: administrators, teachers, and students. Our key challenge is to develop
an integrated database system that seamlessly connects these user segments while maintaining an optimal user experience. The end
goal is to deliver a fully operational system that adheres to industry standards and operational criteria, all while effectively managing
the wealth of digital resources and educational documents required in this dynamic educational environment.. (sql, 2021)
(relationship, 2023) (ahihi, 2023)
7|Page
Hình 1:diagrams
This relationship diagram plays an extremely important role in designing CMS management system, with tables such as
Users, Students, Instructors, Classes, Roles,Courses,Grades,Assignments. This design table helps us analyze and build
relationships between attributes and between tables to manage user information.
Student - User (One-to-one relationship table): Each student has a separate user account in the system.
Instructor - User (One-to-one relationship table): Each instructor has a separate user account in the system.
8|Page
Instructor - Assignments (Many-to-Many): Instructors can assign many assignments, and each assignment can be assigned by
many instructors. This relationship supports multiple instructors collaborating on the same assignment or an instructor
assigning multiple assignments.
Instructor - Courses (Many-to-Many): Instructors can teach many courses, and each course can be taught by many
instructors. This relationship enables multiple instructors to teach the same course or an instructor teaching multiple
courses.
Students - Assignments (Many-to-Many): Students can be assigned many assignments, and each assignment can be assigned
to many students. This relationship accommodates assignments that are relevant to multiple students and students working
on multiple assignments.
Students - Classes (Many-to-Many): Students can participate in many classes, and each class can have many students. This
relationship reflects the enrollment of students in various classes and classes with multiple students.
Students - Grades (Many-to-Many): Students can receive many grades, and each grade can be related to many students. This
relationship handles the grading of students across different courses and assignments.
b) Table
1) Users
Hình 2:Users
9|Page
Column Data Type Description
UserID Bigint is the primary key that uniquely identifies
each record in the users table.
Username Varchar(50) This field stores the username logged into
the system CMS. This is information to
identify users and interact with the
system.
Password Varchar(50) This field stores the user's password
encrypted. Passwords are used to ensure
security and user authentication.
RoleID Bigint This field is a foreign key to the Roles
table, used to distinguish user roles.
Created_at Datetime This field stores the date and time of
creation of the user record in the system.
This information provides information
about the time the user was created.
Updated_at Datetime This field stores the last updated date and
time of the user record in the system.
This information provides information
about the last update to the user record
Deleted_at Datetime This field can be used to mark a deleted
user in the system.
Users table to store information about users and maintain a list of user accounts in the system. The main function is to
identify users and manage their roles.
2) Roles
10 | P a g e
Hình 3:Roles
Hình 4:Instructors
Hình 5:Students
12 | P a g e
Hình 6:Courses
13 | P a g e
Hình 7:Classes
14 | P a g e
Hình 8:Grades
15 | P a g e
Hình 9:Assignments
III. Conclusion
During the process of designing the database for the CMS system, we took a series of important steps to ensure that the system was
built with consistency, reliability and efficiency. Here are some important points about the database design set:
Research and Analysis: Before starting design, we conducted a careful research and analysis process to understand the system
requirements and how the data would be used.
16 | P a g e
Relationship Management: We have designed the tables and relationships between them to ensure that information is logically
organized and easily accessible.
Efficiency and Security: Ensure that the database is designed for operational efficiency while protecting important and trusted data.
Maintain and Update: Recognize that a CMS system is never complete and will have to be maintained and updated regularly to meet
new requirements and fix bugs.
Flexibility: The database design needs to be flexible so that it can be expanded and adapted to the specific needs of the system and
users.
In short, the process of designing a database for a CMS system is an important part of building a powerful content management
system. Applying the principles of data normalization, relationship management, and ensuring database security and efficiency plays
an important role in creating a reliable and flexible CMS system.
References
ahihi, 2023. [Online]
Available at: https://quantrimang.com/13-cau-lenh-sql-quan-trong-programmer-nao-cung-can-biet-136595
17 | P a g e