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

RIVERA DMF111 Database Structure

THIS IS ALL ABOUT DATABASE STRUCTURE LECTURES

Uploaded by

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

RIVERA DMF111 Database Structure

THIS IS ALL ABOUT DATABASE STRUCTURE LECTURES

Uploaded by

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

Database Structure

Define the function of each field

1. Products Table

This table keeps track of all the items you sell.

- Product ID: A unique number for each product.

- Product Name: The name of the product (e.g., "Coke 500ml").

- Category: Type of product (e.g., drinks, snacks).

- Price: How much you sell the product for.

- Quantity in Stock: How many you have left in your store.

2. Sales Table

This table records every sale you make.

- Sale ID: A unique number for each sale.

- Product ID: The ID of the product sold (connects to the Products table).

- Sale Date: When the sale happened.

- Quantity Sold: How many of that product were sold.

- Total Price: The total amount paid for the items sold.

3. Suppliers Table

This table contains information about the people or companies you buy products from.

- Supplier ID: A unique number for each supplier.

- Supplier Name: The name of the supplier.

- Contact Info: How to reach the supplier (phone number, email, etc.).
4. Inventory Transactions Table

This table tracks any changes in your inventory.

- Transaction ID: A unique number for each transaction.

- Product ID: The ID of the product involved.

- Transaction Type: What kind of change happened (e.g., restock, sale).

- Quantity: How much the inventory changed by.

- Transaction Date: When the change happened.

5. Users Table

This table keeps track of people who can use your inventory system.

- User ID: A unique number for each person who uses the system.

- Username: Their login name.

- Password: Their login password (stored securely).

- Role: Their role in the system (e.g., admin, cashier).

You might also like