Professional Documents
Culture Documents
C2SE.08 DatabaseDesign OSM
C2SE.08 DatabaseDesign OSM
CMU-SE 450
DATABASE DESIGN
Version 1.0
Date: April 14th, 2023
Submitted by
Quan Tran Anh
Khiem Le Do Hoang
Phuc Truong Gia
Thuan Huynh Van
Truong Nguyen Lam
Approved by
Huy Nguyen Dang Quang M.Sc.
PROJECT INFORMATION
Project
OSM
acronym
Start date February 21th, 2023 End Date May 20th, 2023
Partner
Duy Tan University
organization
25214302052 huynhvanthuan.140921@g
Thuan Huynh Van 0824644573
mail.com
Role C2SE.08-DatabaseDesign-OSM
C2SE.08 TEAM 2
[Online Service Market System] Database Design Ver 1.0
name:
URL
REVISION HISTORY
Version Person(s) Date Description
C2SE.08 TEAM 3
[Online Service Market System] Database Design Ver 1.0
SIGNATURE
Document Approvals: The following signatures are required for approval of this
document.
Signature:
Mentor Huy Nguyen Dang Quang
M.Sc. Date:
Signature:
Scrum Quan Tran Anh
master Date:
Signature:
Khiem Le Do Hoang
Date:
Signature:
Phuc Truong Gia
Date:
Team
member( Signature:
s) Thuan Huynh Van
Date:
Signature:
Truong Nguyen Lam
Date:
C2SE.08 TEAM 4
[Online Service Market System] Database Design Ver 1.0
Contents
1. Introduction 7
1.1. Purpose
1.2. Document Objectives
1.3. Intended Audience
1.4. Scope
1.5. System Overview
1.6. Acronyms And Abbreviations
2. System Overview 9
2.1. Database Management System Configuration
2.2. Database Software Utilities
2.3. Support Software
3. Database-Wide Design Decisions 9
3.1. Key Factors Influencing Design
3.2. Performance And Availability Decisions
4. Database Administrative Functions 10
4.1. Responsibility
4.2. Applications/Systems Using the Database
4.3. Physical Design
4.3.1. Maps DB
4.3.1.1. Facility
4.3.1.2. Building
4.3.1.3. Floor
4.3.1.4. Place Type
4.3.1.5. Place
4.3.1.6. Space Type
4.3.1.7. Space
4.3.2. VR 360
4.3.2.1. 360 Image
4.3.2.2. 360Links
C2SE.08 TEAM 5
[Online Service Market System] Database Design Ver 1.0
4.3.3. Geojson DB
4.3.3.1. Point
4.3.3.2. Connection
4.3.4. Users DB
4.3.4.1. User
4.3.4.2. Device
4.3.4.3. Profile
4.3.4.4. Friend
4.3.5. Photos DB
4.3.5.1. Collection Overview
4.3.5.2. Schemas
4.3.5.3. Specified Properties
4.3.5.4. JSON Structure
4.3.5.5. Details
4.3.5.5.1. FacilityPhotosRecord
4.3.5.5.2. BuildingPhotosRecord
4.3.5.5.3. FloorPhotosRecord
4.3.5.5.4. PlacePhotosRecord
4.3.5.5.5. SpacePhotosRecord
4.4. Entity Mapping
4.4.1. Entity Mapping Diagram
4.4.2. Industry
4.4.2.1. Users
4.4.2.2. Friends
4.4.2.3. Maps
4.4.2.4. Geojson
4.4.2.5. Directions
4.4.2.6. Photos
5. References 31
C2SE.08 TEAM 6
[Online Service Market System] Database Design Ver 1.0
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
o 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.
o 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.
C2SE.08 TEAM 7
[Online Service Market System] Database Design Ver 1.0
1.4. Scope
- This Database Design Document provides the basic database design of OSM
web application.
- It describes both logical and physical definition, non-functional, database
interfaces, tables, code create tables.
- It includes the tables and performance considerations and requirements. The
following topics are covered in this document:
o Assumptions and decisions on database design
o Entity – mapping
o Table, column definitions
o Column and row level validation rules (check constraints)
o Interfaces and dependencies with other components.
- This Database Design Document of Online Service Market web application is
composed of definitions for database objects derived by mapping entities to
tables, attributes to columns, unique identifiers to unique keys and relationship
to foreign keys.
1.5. System Overview
System Overview Details
Online Service Market
System Name
C2SE.08 TEAM 8
[Online Service Market System] Database Design Ver 1.0
2. System Overview
2.1. Database Management System Configuration
- System: MS Windows
- Vendor: Digital Ocean
- Services enabled: Linux Virtual Machine
2.2. Database Software Utilities
C2SE.08 TEAM 9
[Online Service Market System] Database Design Ver 1.0
System and
Security anhquan74.dev@gmail.co
Quan Anh Tran
m
Administrator
OSM-Web NA In Development NA
C2SE.08 TEAM 10
[Online Service Market System] Database Design Ver 1.0
varchar,
email False The email of the user.
unique
Provider operating
is_working tinyInt True
status
C2SE.08 TEAM 11
[Online Service Market System] Database Design Ver 1.0
C2SE.08 TEAM 12
[Online Service Market System] Database Design Ver 1.0
4.3.1.2. Location
province_nam
varchar False The name of the province.
e
is_primary
C2SE.08 TEAM 13
[Online Service Market System] Database Design Ver 1.0
C2SE.08 TEAM 14
[Online Service Market System] Database Design Ver 1.0
4.3.1.3. Banner
User identification
provider_id bigInt FK False number. Foreign key
to User.id.
C2SE.08 TEAM 15
[Online Service Market System] Database Design Ver 1.0
4.3.1.4. Post
User identification
author_id bigInt FK False number. Foreign key to
User.id.
4.3.1.5. Category
C2SE.08 TEAM 16
[Online Service Market System] Database Design Ver 1.0
total_provid
int True The number of provider.
er
view_priorit
bigInt True
y
4.3.1.6. Service
Category identification
category_id bigInt FK False number. Foreign key to
Category.id.
User identification
provider_id bigInt FK False number. Foreign key to
User.id.
C2SE.08 TEAM 17
[Online Service Market System] Database Design Ver 1.0
is_negotiabl
tinyInt True
e
number_of_
bigInt True
packages
4.3.1.7. Package
Service identification
service_id bigInt FK False number. Foreign key to
Service.id.
C2SE.08 TEAM 18
[Online Service Market System] Database Design Ver 1.0
view_priorit
bigInt True
y
4.3.1.8. Appointment
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.
C2SE.08 TEAM 19
[Online Service Market System] Database Design Ver 1.0
er for provider.
The unit of
price_unit varchar True
appointment’s price
4.3.1.9. Feedback
C2SE.08 TEAM 20
[Online Service Market System] Database Design Ver 1.0
Appointment
identification
appointment_id bigInt FK False
number. Foreign key
to Appointment.id.
Comment of
comment varchar True customer for the
appointment.
C2SE.08 TEAM 21
[Online Service Market System] Database Design Ver 1.0
4.3.1.10. Favorite
User identification
customer_id bigInt FK False number. Foreign key
to User.id.
User identification
provider_id bigInt FK False number. Foreign key
to User.id.
4.3.1.11. Notify
User identification
customer_id bigInt FK False number. Foreign key
to User.id.
C2SE.08 TEAM 22
[Online Service Market System] Database Design Ver 1.0
to User.id.
Check if customer
is_cus_deleted tinyInt True deleted the notify (for
hard delete)
Check if provider
is_prov_deleted tinyInt True deleted the notify (for
hard delete)
4.3.1.12. Message
User identification
customer_id bigInt FK False number. Foreign key
to User.id.
User identification
provider_id bigInt FK False number. Foreign key
to User.id.
C2SE.08 TEAM 23
[Online Service Market System] Database Design Ver 1.0
The content of
content varchar True
message.
C2SE.08 TEAM 24
[Online Service Market System] Database Design Ver 1.0
C2SE.08 TEAM 25
[Online Service Market System] Database Design Ver 1.0
C2SE.08 TEAM 26
[Online Service Market System] Database Design Ver 1.0
5. References
- [SDA] 006 Database Design.docx (Man, Nguyen Duc).
- https://drawsql.app/teams/dac-1/diagrams/osm
C2SE.08 TEAM 27