0% found this document useful (0 votes)
29 views

DBI202 - Assignment Report

123

Uploaded by

tienndhe181439
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

DBI202 - Assignment Report

123

Uploaded by

tienndhe181439
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

DBI202 - Assignment

Group 1

Department of Software Engineering


FPT University

Major Professor: Phan Thi Le Thuyen

Member:

Name ID
Lê Minh Vương QE170148
Nguyễn Thị Thúy QE170033
Đinh Quốc Chương QE170097
Hồ Trọng Nghĩa QE170173

1
I. Presentation of problem:

Around FPT University Quy Nhon, there are almost no places


selling food. Recently, a lady opened a pastry shop. Our group knows
her and she hired us to write software to manage her pastry shop.

II. Description of the system's business:

- Customer management: Customers who register as members


will receive benefits.

- Product management: Add, delete, and edit information of


various types of pastry.

- Payment management: Ability to create and process purchase


invoices safely.

- Voucher management: Voucher information, applicable objects,


value of vouchers.

2
III. ER model of the system:

Click here to view more!

3
IV. Relational model (moving from ER model):

Click here to view more!

4
V. Data requirements specification (data
dictionary) and List of data constrain:

Customer

Data Element Description Data Type Lengt Value


h

Customer_Phone The customer’s VARCHAR 10 NOT NULL


phone number (PK)
UNIQUE

Only contain
numbers

Customer_Name The name of customer NVARCHAR 50 NOT NULL

Point Point accumulated by INT NOT NULL


customers when they
make a purchase Greater than 0

Employee

Data Element Description Data Type Length Value

Employee_ID The employee VARCHAR 8 NOT NULL


identifier (PK)
UNIQUE

Employee_Name The name of NVARCHAR 50 NOT NULL


employee

Employee_Phone The phone of VARCHAR 10 NOT NULL


employee
UNIQUE

Only contains
numbers

Employee_Address The address of NVARCHAR 100 CAN NULL


employee

5
Product

Data Element Description Data Type Length Value

Product_ID The product identifier VARCHAR 5 NOT NULL


(PK)
UNIQUE

Product_Name The name of product NVARCH 100 NOT NULL


AR

Price The price of product INT NOT NULL

Greater than 0

Voucher

Data Element Description Data Type Length Value

Voucher_ID The voucher identifier VARCHAR 5 NOT NULL


(PK)
UNIQUE

Voucher_Descriptio Information of voucher NVARCHA 200


n R

Discount Value of voucher INT NOT NULL

Minimum_Price Price min to use INT NOT NULL


voucher

Begin_Date Voucher begin date DATE NOT NULL

End_Date Voucher end date DATE NOT NULL

Is_Require_Member Check member BIT NOT NULL


customer

6
Bill

Data Element Description Data Type Length Value

Bill_ID The bill identifier (PK) VARCHAR 10 NOT NULL

UNIQUE

Create_Date Bill creation date DATE NOT NULL

Create_Time Bill creation time TIME NOT NULL

Payment_Date Bill payment date DATE NOT NULL

Payment_Time Bill payment time TIME NOT NULL

Primary_Price Total price of all INT NOT NULL


products that this bill
have

Used_Point Point that customer INT NOT NULL


use, if Customer_Phone
is NULL, this attribute Equals 0 if
will 0 Customer_Phone is
NULL

Final_Price Total price that INT NOT NULL


customer have to pay

Earned_Point Point returned from the INT NOT NULL


value of bill
Equals 0 if
Customer_Phone is
NULL

Given_Money Total money that INT NOT NULL


customer give for
employee

Excess_Money The employee's change INT NOT NULL


is returned to the
customer

Employee_ID The employee who VARCHAR 8 NOT NULL


created the bill (FK)

Voucher_ID The voucher is used VARCHAR 5 CAN NULL


(FK)

Customer_Phone Phone number of VARCHAR 10 CAN NULL


customer (FK)

7
Only contains
numbers

Bill_Data

Data Element Description Data Type Length Value

Bill_ID The bill identifier VARCHAR 10 NOT NULL


(PK,FK)

Product_ID The product identifier VARCHAR 5 NOT NULL


(PK, FK)

Product_Amount The amount of INT NOT NULL


product
Must be greater 0

8
VI. Physical settings:
1. Setup.sql: create a database, tables and insert data for
them
- Link: Click here!

2. Query.sql: write query


- Link: Click here!

9
VII. Conclusion:
● Achievements:
○ Effective teamwork.
○ Application of knowledge in practice.
○ Creation of a foundation for future team projects,
including a website for managing a bakery for a
client.
○ Increase in professional knowledge.
● Areas for Improvement:
○ Incomplete features in the project.

Despite the limitations faced by the group during the


initial application of real projects, this report acknowledges
the identified shortcomings. We eagerly anticipate your
valuable contributions to enhance and complete our project.
The group's ultimate aspiration is for this small project to
evolve into a fully-fledged product soon.

10

You might also like