Professional Documents
Culture Documents
C2SE.08 DatabaseDesignDocument OSM
C2SE.08 DatabaseDesignDocument OSM
Capstone Project 2
CMU-SE 450
Database Design
Version 2.0
Date: 05/5/2023
Approved by
PROJECT INFORMATION
Project
Online Service Market System
acronym
A marketplace that connects Customers & Service Providers in many
Project Tittle
service categories
Start Date 21 Feb 2023 End Date 20 May 2023
Lead
International School, Duy Tan University
Institution
Huy Nguyen Dang Quang
Project Mentor Email: huyndq@duytan.edu.vn
Tel: 0935525354
Scrum Master /
Quan Tran Anh
Project Leader
Email: anhquan74.dev@gmail.com
& contact
Tel: 0362474855
details
Partner
Organization
Project Web
URL
Team members Name Email Tel
Quan Tran
25211200029 anhquan74.dev@gmail.com 0362474855
Anh
Khiem Le Do
25211203121 ledohoangkhiem3k@gmail.com 0348597672
Hoang
Phuc Truong
25211217162 katanan257@gmail.com 0981864173
Gia
Thuan Huynh
25214302052 huynhvanthuan.140921@gmail.com 0824644573
Van
Truong
25211217426 truongnguyen13052001@gmail.com 0353373477
Nguyen Lam
Capstone Database Design v2.0 – OSM
C2SE.08-
Date 28 Apr 2023 Filename DatabaseDesignDocument-
OSM.docx
URL
Access Project and CMU Program
Capstone Database Design v2.0 – OSM
DOCUMENT HISTORY
Version Date Comments
V1.0 20 Mar 2023 Draft for comment
V2.0 28 Apr 2023 Update database
V3.0 05 May 2023 Update database
Capstone Database Design v2.0 – OSM
CONTENTS
1. Introduction ...............................................................................................................1
6. References ...............................................................................................................15
Capstone Database Design v2.0 – OSM
LIST OF TABLES
Table 1: System Overview .............................................................................................2
Table 2: Acronyms And Abbreviations ..........................................................................2
Table 3: Database Software ............................................................................................3
Table 4: Support Software ..............................................................................................3
Table 5: Responsibility ...................................................................................................3
Table 6: Systems Using the Database.............................................................................3
Table 7: User...................................................................................................................4
Table 8: Location ............................................................................................................5
Table 9: Image ................................................................................................................6
Table 10: Post .................................................................................................................7
Table 11: Category .........................................................................................................8
Table 12: Service ............................................................................................................8
Table 13: Package ...........................................................................................................9
Table 14: Appointment .................................................................................................10
Table 15: Feedback .......................................................................................................12
Capstone Database Design v2.0 – OSM
TABLE OF FIGURES
Figure 1. Entity Mapping..............................................................................................14
Capstone Database Design v2.0 – OSM
1. Introduction
1.1. Purpose
• Setting up an overview about the database of Online Service Market web
application.
• Provides database tables and the relationship between them.
• Description designing a database (DB), a collection of data related to storage on
a computer through database management system as a basis for data query related
software.
• Provide the entire needed database for OSM web application.
1.2. Document Objectives
The Database Design Document has the following objectives
• To describe the design of a database, that is, a collection of related data stored in
one or more computerized files that can be accessed by users or developers via a
DBMS.
• To serve as a basis for implementing the database and related software units. It
provides the acquirer visibility into the design and provides information
necessary for software development.
1.3. Intended Audience
• This document is intended for the following audiences
• Technical developers, who must evaluate the quality of this document
• Developer including:
o Architects, whose overall architecture design must meet the requirements
specified in this document.
o Designers, whose design must meet the requirements specified in this
document.
o Developers, whose software must implement the requirements specified in
this document. Quality Assurance personnel, whose test cases must validate
the requirements specified in this document.
1.4. Scope
• This Database Design Document provides the basic database design of OSM web
application.
C2SE.08 1
Capstone Database Design v2.0 – OSM
Acronym/Abbreviation Meaning
OSM Online Service Market
2. System Overview
2.1. Database Management System Configuration
- System: MS Windows
- Vendor: Digital Ocean
C2SE.08 2
Capstone Database Design v2.0 – OSM
System and
Security anhquan74.dev@gmail.co
Quan Anh Tran
m
Administrator
C2SE.08 3
Capstone Database Design v2.0 – OSM
OSM-Web NA In Development NA
varchar,
email False The email of the user.
unique
Provider operating
is_working tinyInt True
status
C2SE.08 4
Capstone Database Design v2.0 – OSM
4.3.1.2. Location
Table 8: Location
province_nam
varchar False The name of the province.
e
C2SE.08 5
Capstone Database Design v2.0 – OSM
is_primary bit
4.3.1.3. Image
Table 9: Image
Id of file on cloud
public_id varchar True
server.
C2SE.08 6
Capstone Database Design v2.0 – OSM
4.3.1.4. Post
Table 10: Post
User identification
author_id bigInt FK False number. Foreign key to
User.id.
is_valid
tinyInt True Post status (soft delete)
C2SE.08 7
Capstone Database Design v2.0 – OSM
4.3.1.5. Category
Table 11: Category
total_provid
int True The number of provider.
er
view_priorit
bigInt True
y
4.3.1.6. Service
Table 12: Service
Category identification
category_id bigInt FK False number. Foreign key to
Category.id.
C2SE.08 8
Capstone Database Design v2.0 – OSM
User identification
provider_id bigInt FK False number. Foreign key to
User.id.
is_negotiabl
tinyInt True
e
number_of_
bigInt True
packages
4.3.1.7. Package
Table 13: Package
C2SE.08 9
Capstone Database Design v2.0 – OSM
Service identification
service_id bigInt FK False number. Foreign key to
Service.id.
view_priorit
bigInt True
y
4.3.1.8. Appointment
Table 14: Appointment
C2SE.08 10
Capstone Database Design v2.0 – OSM
Package identification
package_id bigInt FK False number. Foreign key to
Package.id.
User identification
customer_id bigInt FK False number. Foreign key to
User.id.
The unit of
price_unit varchar True
appointment’s price
C2SE.08 11
Capstone Database Design v2.0 – OSM
4.3.1.9. Feedback
Table 15: Feedback
Appointment
identification
appointment_id bigInt FK False
number. Foreign key
to Appointment.id.
Comment of
comment varchar True customer for the
appointment.
C2SE.08 12
Capstone Database Design v2.0 – OSM
5. Entity Mapping
C2SE.08 13
Capstone Database Design v2.0 – OSM
C2SE.08 14
Capstone Database Design v2.0 – OSM
6. References
- [SDA] 006 Database Design.docx (Man, Nguyen Duc).
- https://drawsql.app/teams/dac-1/diagrams/osm
C2SE.08 15