ASM1 1ST Database Development NguyenChiThanh BH00887
ASM1 1ST Database Development NguyenChiThanh BH00887
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.
P1 M1 D1
1|Page
❒ Summative Feedback: ❒ Resubmission Feedback:
2|Page
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
3|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)
4|Page
b) Role requirements:
• Role of administrator (Admin):
o The CMS can be accessed through the login page.
o Manage user accounts, including creating, editing, and deleting accounts for instructors, training staff, and
students.
o Assign or change a username and password for a user.
o Manage courses, including searching, adding, updating, and deleting courses with names and descriptions.
o Manage topics in courses, add topic names and descriptions.
• Role of the instructor:
o Log in using the username and password specified by the administrator.
o View and search student list.
o Update and delete student accounts in classes
o Manage course categories, including searching, adding, updating, and deleting categories.
o Create instructional content including assignments, references, and assessments.
o Evaluate assignments and test plans for students.
o Provide scores to students and review their learning progress.
• Student role:
o Log in using your administrator credentials.
o View courses and assigned classes.
o Complete assignments and projects assigned by instructors.
o View scores and study results.
c) System rules:
• Only authorized users with valid accounts can access the CMS.
• Access rights are based on roles, and users should only access data and features relevant to their role.
• Data input should follow specific formats and validation rules to ensure data integrity.
• Mandatory fields must be completed when adding or editing content.
• All content revisions and updates should be documented.
• Regular automated backups of the CMS and its data should be performed to prevent data loss.
• A recovery plan should be in place to restore the system in case of data corruption or failure.
5|Page
• New users should receive training on CMS usage and best practices.
• Data should be retained for a specified period based on legal or institutional requirements.
• A process for secure data deletion should be in place when data is no longer needed.
Hình 1:diagrams
6|Page
• 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.
• 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
7|Page
Hình 2:Users
8|Page
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
Hình 3:Roles
9|Page
Hình 4:Instructors
10 | P a g e
Hình 5:Students
11 | P a g e
Hình 6:Courses
12 | P a g e
Hình 7:Classes
13 | P a g e
Hình 8:Grades
14 | 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.
15 | 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
16 | P a g e