0% found this document useful (0 votes)
23 views12 pages

Database Project

The document outlines a database project for a computer shop, detailing its business rules, customer types, and income sources. It includes relationships between various entities such as suppliers, products, and customers, as well as attributes for each entity. The project aims to manage the shop's operations effectively, catering to different customer needs and payment methods.

Uploaded by

77fgj8j2jk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views12 pages

Database Project

The document outlines a database project for a computer shop, detailing its business rules, customer types, and income sources. It includes relationships between various entities such as suppliers, products, and customers, as well as attributes for each entity. The project aims to manage the shop's operations effectively, catering to different customer needs and payment methods.

Uploaded by

77fgj8j2jk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Sultan Qaboos University

College of Economics and Political Science


Department of Information Systems
Database management
Section 10
Spring 2023

Database project
(Database for Computer Shop)

Prepared by: -Alwarith Ahmed Harith Alshaqsi Student ID: 129194


-Laith Sulaiman Said Alhabsi Student ID: 129677
-Ibrahim Shareef Mohammed Almahrooqi Student ID: 127713
-Bashar Mubarak Almur Alhinai. Student ID: 129935
-Nasser Marhoon Salim Alrahbi. Student ID: 129184

1
Table of content:

Cover Page 1

Table of Content 2

Introduction 3

Business Rules & Constraints 4

EED 5

Relationships 6-7

Tables 8-12

Brief Description

2
 the computer shop is a business that specializes in providing a variety of computing
products and services. These products can include laptops, mobile phones, accessories,
and spare parts. Moreover, the computer shop also offers repair and maintenance services
to various types of customers ranging from customers that merely purchase accessories to
the customers that purchase in bundles per contracts. The services can go from fixing
software issues to replacing hardware components. The main goal of the computer shop
is to provide customers with high-quality products and services that fulfil their specific
computing needs. Whether you are a student, a professional, or a gaming enthusiast, a
computer shop can help you find the right solution for your computing needs.

BUSINESS RULES AND CONSTRAINTS

 The computer shop only has three types of customers: walk in, corporate, and vendors.

3
 The computer shop has two sources of income: services (continuous maintenance
(corporates only), in-service and out-service, and products (electronic devices, parts))
 The computer shop will act as a vendor to other companies. The companies are allowed
to purchase every product and exclusively purchase spare parts.
 The product the shop sells come from internal and external suppliers.
 The shop accepts several types of payments. The walk-in customers can pay in electronic
payment I.E visa or cash. The corporate customers can only have their transaction in
cheques, and ultimately vendor customers can accept all types of payments as per the
quantity.
 Within the shop, there are two types of employees: front-office (sales, accountants, and
any other employee jobs that deal with the customers directly), and back office
(repairpersons) employees.

EED

4
5
Relationships
supplier M:1 manager.
Binary relationship indicates that each supplier must be registered by one manager and each
manager may register many suppliers.

Supplier M:M product.


Binary relationship indicates that each supplier may supply many products and each product
must be supplied by at least one supplier.

Product 1:M truck.


Binary relationship indicates that each product must only delivered by one truck and each truck
may deliver many products.

Device M:M customer.


Binary relationship indicates that each device must be bought by at least one customer and each
customer may buy many products.

Part M:M vendor.


Binary relationship indicates that each part must be bought by at least one vendor and each
vendor may buy many parts.

Product M:1 Manager.


Binary relationship indicates that each product must be registered by only one manager and each
manger may register many products.

Technician M:M repair.


Binary relationship indicates that each technician may do many repairs and each repair must be
done by at least one technician.

tables

6
Driver 1:1 truck.
Binary relationship indicates that each driver may drive only one truck and each truck must be
driven by only one driver.

Truck 1:M out-service_repair


Binary relationship indicates that each truck may do many out-service and each out-service must
be done by only one truck.

Corporate 1:M cheque


Binary relationship indicates that each corporate must pay by at least one cheque and each
cheque must be made by only one corporate.

Payment 1:M vendor


Binary relationship indicates that each vendor must do by at least one payment and each
payment must be done by only one vendor.

Transaction 1:M walk-in_customer


Binary relationship indicates that each walk-in customer must do at least one transaction and
each transaction must be done by only one vendor.

Supplier M:1 manager


Binary relationship indicates that each supplier must be registered by only one manager and
each manager may register many supplier.

Supplier M:M product


Binary relationship indicates that each supplier may supply many products and each product
must be supplied by at least one supplier.

7
product

Attributes Description

PK product_ID A unique ID that identifies each product

Name The name of the product

Description A brief details about the product

Stock The amount of the products held in the shop

Product parts
Attributes Description

Model number Represents the model number of the part that


can be used to identify specific parts

Product device
Attributes Description

Model number Represents the model number of the device


which can be used to identify the specific
product

supplier
Attributes Description

PK Supplier_ID A unique ID that identifies each supplier

name The supplier’s name

address The supplier’s address

Phone number The supplier’s phone number

8
employee
Attributes Description

PK employee_ID A unique ID that identifies each employee

name The employee’s name

address The employee’s address

Phone number The employee’s phone number

Employee front office


Attributes Description

Work schedule Represents the work schedule of the employee

Employee back office


Attributes Description

Work schedule Represents the work schedule of the employee

truck
Attributes Description

PK Truck_ID A unique ID that identifies each truck

Capacity The space that can be filled in the truck

Service
Attributes Description

PK Service_ID A unique ID that identifies each service

9
Date The date In which the service happened

Description A brief details about the service

Cost The service’s cost

service after sales


Attributes Description

Customer service skills Represents the sales team’s ability to interact


with customers with their communication and
problem-solving skills

servicerepair
Attributes Description

Date Date that states when a repair is provided

service repairin-service
Attributes Description

Technical skills Represents the expertise of the repairperson

customer
Attributes Description

PK Customer_ID A unique ID that identifies each customer

name The customer’s name

Phone number The customer’s phone number

Email address The customer’s email address

10
Payment
Attributes Description

PK Payment_ID A unique ID that identifies each payment

Date The date which the payment happened

Amount A brief details about the service

Payment transaction
Attributes Description

Payment method It is a composite that contains cash & credit


card as methods of payment

Payment cheque
Attributes Description

Expiry date A date in which a cheque would expire

Product_supply
Attributes Description

PK PS_ID A unique ID that identifies each supplied


product

Date The date which the process happened

Quantity The number of products supplied

Customer_device
Attributes Description

PK Order _ID A unique ID that identifies each order

Date The date which the order happened

Warranty Details about the warranty

11
Vendor_part
Attributes Description

PK VP _ID A unique ID that identifies each order

Part name Tthe part’s name

Quantity The number of parts ordered by vendor

Technician repair
Attributes Description

PK Tech-repair ID A unique ID that identifies each repair that


happens by a technician

Date Represents the date on which the technician


performed the repair

12

You might also like