You are on page 1of 2

Grocery Shop Management System

============================================================================

System Description at a Glance


The Indian Groceries make their billing system computerized and record their daily transaction
with customer record. The grocery shop keeps certain information as follows:

Database : customer

Tables : Login, Item, record, Sales

Table : Login
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| user | varchar(20) | YES | | NULL | | User Name
| pwd | char(10) | YES | | NULL | | Password
+-------+-------------+------+-----+---------+-------+
The system will provide the username and password to secure the Management System. Only
authorized users are able to access this system.

Table : Item
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| pid | int(11) | YES | | NULL | | Product Code
| pname | varchar(30) | YES| | NULL | | Product Name
| qty | int(11) | YES | | NULL | | Quantity of the Product
| price | int(11) | YES | | NULL | | Price of the product
| ptype | varchar(50) | YES | | NULL | | Category of Product Like Kitchen, Health
&Hygiene etc
+-------+-------------+------+-----+---------+-------+
Table Item contains brief description about different products available in Grocery Shop.
Column ptype is about the category of the product. So that Store keeper is easily locate the
product in the store (where it is kept).

Table : Record
+---------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| cid | int(11) | YES | | NULL | | Customer Id
| name | varchar(20) | YES | | NULL | | Customer Name
| age | int(11) | YES | | NULL | | Customer Age
| address | varchar(80) | YES | | NULL | | Customer Address
+---------+-------------+------+-----+---------+-------+
Table Record maintain the records of the customer with their address. So that in future we can
send them the letter about different sale festive seasons.

Table : Sales
+-------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+---------+------+-----+---------+-------+
| cid | int(11) | YES | | NULL | | Customer Id
| pid | int(11) | YES | | NULL | | Product Id
+-------+---------+------+-----+---------+-------+
Table sales is used to relate item and record table.

You might also like