Sei sulla pagina 1di 11

Database Design Document 2019

CAPSTONE PROJECT 1
Database Design Document
< Quick Marker >
(Doc-v1.1)

PROJECT CODE: CAP1-AIS

DOCUMENT CODE: DB_Doc1.1

PROJECT TEAM: Team 13

MENTOR: Msc.Nhat Minh Nguyen

TEAM MEMBERS:
Giang To Huu

Huy Le Quoc

Tuan Huynh Anh

Trung Dang Quoc

Da Nang, Oct 1, 2019


Page | 1
Database Design Document 2019

Contents
1. Introduction .................................................................................................................................................7
1.1. Purpose ................................................................................................................................................7
1.2. Goal .....................................................................................................................................................7
1.3. Scope ...................................................................................................................................................7
1.4. Documents referenced .........................................................................................................................8
2. Database Design ..........................................................................................................................................8
2.1. Table Overview ...................................................................................................................................8
2.2. Table relationship Diagram .................................................................................................................9
2.3. Table Physics.......................................................................................................................................9
2.3.1. Table HocSinh: ..........................................................................................................................9
2.3.2. Table DeThi ...............................................................................................................................10
2.3.3. Table BaiThi ..............................................................................................................................10
2.3.4. Table DiemThi ...........................................................................................................................11

Page | 2
Database Design Document 2019

Project Information

Project acronym QM
Project Title Quick Marker
Start Date 8/8/2019 End Date 10/12/2019

Lead Institution International School, Duy Tan University


Project Mentor & Nhat Nguyen Minh
contact details
Email: nhatnm2010@gmail.com

Name
Tel: 0905125143 Email Tel
Giang, To Huu tohuugiang129@gmail.com 0905171067

Team members Huy, Le Quoc quochuy25111998@gmail.com 0359322922


Tuan, Huynh Anh hatuan0402@gmail.com 0935023182
Trung, Dang Quoc trungdq2497@gmail.com 0932713490

Page | 3
Database Design Document 2019

Database Design Document

Document Title Database Design Document

Reporting Period Oct 5, 2019

Author(s) Anh Tuan Huynh

Role Developer’s member Member Huy Le Quoc

Developer’s member Member Giang To Huu

Product Owner, Developer’s Member Tuan Huynh Anh


member

Scrum Master, Developer’s Member Trung Dang Quoc


member

Date Oct 5, 2019 Filename Database


Design_v1.1

URL

Access Project and CMU Program

Page | 4
Database Design Document 2019

Document History

Version Date Comments Updater

Create Database
V1.0 1/10/2019
Design Document

Page | 5
Database Design Document 2019

Document Approvals: The following signatures are required for approval of


this document.

Mentor Nhat Nguyen Minh Date

…../…../2019

Product Owner Tuan Huynh Anh Date

…../…../2019

Scrum Master Trung Dang Quoc Date

…../…../2019

DEV Team’s Member Giang To Huu Date

…../…../2019

DEV Team’s Member Huy Le Quoc Date

…../…../2019

DEV Team’s Member Tuan Huynh Anh Date

…../…../2019

DEV Team’s Member Trung Dang Quoc Date

…../…../2019

Page | 6
Database Design Document 2019

1. Introduction

1.1. Purpose
- Based on Architecture Document to write database design document.Place
information system’s database design document describes structure of database and
file structure of system. Database Design document will introduce all attribute the
System that will help developer and tester base on this design to implement and test.
1.2. Goal
- To create database tables most accurate and follow the architecture design analysis
closely.
1.3. Scope
- This Database Design Document provides the basic for “Quick Marker System”
Database design.
- It defines the database that will support the “Quick Marker System” Data Model.
- It describes both logical and physical definition, non-functional issues and the
database interfaces, storage aspects are defined in the physical database design
sections.
- The table performance considerations requirements. The following topics are covered
in this document:
 Assumptions and decisions on database design.
 Entity-mapping.
 Table column definitions.
 Primary, unique and foreign key definitions.
 Column and row level validation rules (check constraints).
 Rule for populating specific columns (sequences, derivations, demoralized
(column)).
 Interfaces and dependencies with other components.
 Data access description.
- The database design for “Quick Marker System” 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.
- During design, these initial definitions are enhanced to support the functionality
described in the functional specification/ user stories and defined in the primary and
supporting modules of the application high level design .

Page | 7
Database Design Document 2019

Definitions, Acronyms and Abbreviations

Abbreviations Description Comment


PK/FK Primary Key / Foreign Use to indicate a file is a
Key Primary or Foreign key in a
table
ERD Entity Relationship Show the relationship
Diagram between entities in the
system

1.4. Documents referenced

No. References Document information


1.
1.

2. Database Design
2.1. Table Overview

No Table name Short Description


This table shows all detail
1 HocSinh
information of a student.
This table shows all detail
information of the class stores
2 DeThi
the answers corresponding to
each exam code.
This table shows detail
3 BaiThi information of the class stores
exam information of students.

Page | 8
Database Design Document 2019

This table shows all the class


4 Diem
stores test scores for students.

2.2. Table relationship Diagram

Figure : Relationship schema.


2.3. Table Physics
2.3.1. Table HocSinh:
This includes the attribute: <SoBaoDanh, TenHocSinh, Lop >

Attributes Data Type Constraints Null Description


SoBaoDanh NVARCHAR Primary key Not Student’s
registration number
TenHocSinh NVARCHAR Not Student’s name
Lop NVARCHAR Not student's class
name

Page | 9
Database Design Document 2019

2.3.2. Table DeThi


This includes the attribute: <Id,MaDeThi, MaBaiThi, DapAn>

Attributes Data Type Constraints Null Description


Primary key Not Identification of
Id INT
exam
MaDeThi NVARCHAR Primary key Not Exam paper code
MaBaiThi INT Foreign Key Not Student test code
DapAn NVARCHAR Not Answer of the test

2.3.3. Table BaiThi


This includes the attribute: < MaBaiThi, DanhSachBaiThi, NgayTao, TenBaiThi,
SoCau, HeDiem >

Attributes Data Type Constraints Null Description


MaBaiThi INT Primary key Not Student test code

DanhSachBaiThi NVARCHAR Not List of exam


questions
NgayTao DATE Not The date the test
was created
TenBaiThi NVARCHAR Not Subject of the test

SoCau INT Not Number of


questions
HeDiem INT Not Score coefficient
of the test

Page | 10
Database Design Document 2019

2.3.4. Table DiemThi


This includes the attribute:
<Id, SoBaoDanh, MaDeThi, MaBaiThi, BaiLam,DiemSo>

Attributes Data Type Constraints Null Description

Id INT Primary key Not Identification of


student’s work
SoBaoDanh NVARCHAR Foreign Key Not Student’s
registration number
MaDeThi NVARCHAR Foreign Key Not Exam paper code
MaBaiThi INT Foreign Key Not Student test code
BaiLam NVARCHAR Not student’s work
DiemSo INT Not Student's score

Page | 11

Potrebbero piacerti anche