DATABASE
MANAGEMENT SYSTEM
PROJECT: BAKERY MANAGEMENT SYSTEM
GROUP MEMBERS:
Uzair Ahmed 17074198-107
SYED ARSLAN ABID 17074198-052
M. Jawad-ul-Arfeen 16064198-060
Ahmed Sadaqat 17074198-083
BAKERY MANAGEMENT SYSTEM
Database Designing
ABSTRACT:
“The objective and essence of any Records Management
system is the right information in the right place in the right
order, at the right time for the right person at the lowest cost.”
Bakery Management System is a computerized system
designed and programmed to deal with daily operations taking
place in the bakery. It is only built to facilitate and makes
every things in the record. The program can manage products,
employees, suppliers, customers and orders. It also keeps
check on Bakery items life by storing its manufacturing and
expiry information. The purpose of the project is to
computerize the management of Bakery to develop software
which is user friendly, simple, fast, and cost–effective. It deals
with the collection of products information, Quantity details,
etc. Traditionally, it was done manually. The project outlines
all the process followed to come up with the software that is
from analysis to testing the system.
DESCRIPTION:
A database is a collection of information and is
systematically stored in tables in the form of rows and
columns. The table in the database has unique name that
identifies its contents. The database in turn is further
described in detail giving all the fields used with the data
types, constraints available, primary key and foreign key.
Database design is used to manage large bodies of
information. In this database we describe all the 6 tables
available in the software, which are used to store all
the records.
Data types and its description:
Fields in database table have a data type. Some of the
data types used in database table are explained below.
Date/Time:
Date/Time data type is used for representing data or
time.
LONG TEXT:
Holds a string with a maximum length of
4,294,967,295 characters.
SHORT TEXT:
Holds a string with a maximum length of 255
characters
AUTO NUMBER:
AutoNumber fields automatically give each record
its own number, usually starting at 1.
CURRENCY:
Use for currency. Holds up to 15 digits of whole
dollars, plus 4 decimal places.
Tip: You can choose which country's currency to use.
Tables
Product Table:
Fields Data type Property
product_id Auto Number Primary Key
product_name Short Text Not Null
product_quantity Number Not Null
product_mfg Date/Time Not Null
product_exp Date/Time Not Null
product_price Number Not Null
Employee Table:
Fields Data type Property
employee_id Auto Number Primary Key
employee_name Short Text Not Null
employee_address Long Text Allow Null
employee_contact_no Short Text Not Null
employee_salary Number Not Null
Customer Table:
Fields Data type Property
customer_id Auto Number Primary Key
product_id Number Foreign Key
employee_id Number Foreign Key
purchase_date Date/Time Not Null
Order Table:
Fields Data type Property
order_id Auto Number Primary key
order_date Date/Time Not Null
delivery_date Date/Time Not Null
quantity Number Not Null
bill Currency Not Null
product_id Number Foreign Key
supplier_id Number Foreign Key
employee_id Number Foreign Key
Supplier Table:
Fields Data type Property
supplier_id Auto Number Primary Key
supplier_name Short Text Not Null
supplier_address Long Text Allow Null
supplier_contact_no Short Text Not Null
product_id Number Foreign Key
Received By Table:
Fields Data type Property
received_id Auto Number Primary Key
order_id Number Foreign Key
supplier_id Number Foreign Key
Information about our ER-Diagram:
1. A customer can pay bill to only one employee but
an employee can receive bill from none or many
customer.
2. A customer may not buy any product or buy many
products and a product may be bought by none or
many customers.
3. An employee can make no order or many orders
and an order can be made by only one employee.
4. A supplier may not receive any order or may
receive many orders and an order will be
received by only one supplier.
5. A supplier may supply many products or may not
supply any product and a product can be supplied
by one or many suppliers.
E-R Diagram:
Relationships:
A relationship is named connection or association
between entities used to relate two or more entities with some
common attributes of meaningful interaction between the
object.
Entity:
Entity is the thing which we want to store information. It
is an elementary basic building block of storing information
about business process. An entity represents an object defined
within the information system about which you want to store
information.
Attributes:
Attributes are the properties of the entities and
relationship. Descriptor of the entity. Attributes are
elementary pieces of information attached to an entity.