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/ 5
Supplier table: Contains information about suppliers.
Data Description Composition Length Values
Element or Data Type SupplierID Unique identifier for a integer 4 Positive integers, e.g., 1, supplier. 2, 3, ... SupplierName The name of the supplier String 255 Alphanumeric characters, e.g., "Nguyen Quang Duc," Address The address of the supplier String 255 Alphanumeric characters representing addresses, e.g., "12 TranPhu, HaiPhong." Phone The phone number of the String 10 Alphanumeric characters supplier representing phone numbers, e.g., "0935363562” Email The email address of the String 255 Valid email addresses, supplier e.g.,"[email protected]”
InvoiceSupplier table: Contains information about InvoiceSuppliers.
Data Element Description Composition Length Values
or Data Type InvoiceSupplierID Unique identifier for the Integer 4 Positive integers, supplier invoice e.g., 1, 2, 3, ..
SupplierID The ID of the supplier in Integer 4 Positive integers,
invoiceSupplier, relates to e.g., 1, 2, 3, .. Supplier table using SupplierID MaterialID The ID of the material in Integer 4 Positive integers, invoiceSupplier, relates to e.g., 1, 2, 3, .. Material table using MaterialID Quantity The quantity of a particular Integer 4 Non-negative item in the inventory. integers, e.g., 100, 150, ... Amount Amount of material Decimal Varies (e.g., 3 Decimal numbers, decimal e.g., 100000.800. places) TimeOfDay Time create invoiceSupplier Time 5(if stored as local time; hh = 0- in day a string) 23 inclusive; mm hh:mm = 00, 15, 30, or 45 Date InvoiceSupplier date Date 10(if stored as Valid dates in the a string) format "YYYY- MM-DD," e.g., "2023-10-15." Material table: Stores information about materials supplied by suppliers.
Data Description Composition Length Values
Element or Data Type MaterialID Unique identifier ID for a Integer 4 Positive integers, e.g., 1, material 2, 3, ... MaterialName Name of the material String 255 lphanumeric characters, e.g., “ Chanh”,”Dau” SupplierID Relates to the Supplier table Integer 255 Positive integers, e.g., 1, using SupplierID 2, 3, ... Price Price of the material Decimal Varies Decimal numbers, e.g., (e.g., 3 100000.800. decimal places)
Inventory table: Records information about inventory levels of materials.
Data Description Composition Length Values
Element or Data Type InventoryID Unique ID number for the Integer 4 Positive integers, e.g., 1, inventory item 2, 3, ... MaterialID Relates to the Material table Integer 4 Positive integers, e.g., 1, using MaterialID 2, 3, ... Quantity The quantity of a particular Integer 4 Non-negative integers, item in the inventory. e.g., 100, 150, ... LastUpdate Date when the inventory Date 10(if Valid dates in the format was last updated. stored "YYYY-MM-DD," e.g., as a "2023-10-15." string)
Drinks table: Store information about drinks and their prices
Data Description Composition or Length Values
Element Data Type DrinkID Unique identifier for a Integer 4 Positive integers, specific drink. e.g., 1, 2, 3, .. DrinkName Name of the drink String 255 Alphanumeric characters, e.g., “Coca" "TraChanh" ... MaterialID Relates to the Material table Integer 4 Positive integers, using MaterialID, points out e.g., 1, 2, 3, .. the material used in drink Price Price of the drink Decimal Varies Decimal numbers, (e.g., 3 e.g., 100000.800. decimal places)
Branch table: Contains information about branches
Data Description Composition or Length Values
Element Data Type BranchID Unique ID number for the Integer 4 Positive integers, branch e.g., 1, 2, 3, .. BranchName Name of the branch String 255 Alphanumeric characters, e.g., "Drinks1 "Drinks2," ... Location Address of the branch String 255 Alphanumeric characters representing addresses, e.g., "12 TranPhu, HaiPhong."
Customer table: Contains information about customers
Data Description Composition or Length Values
Element Data Type CustomerID Unique ID number for the Integer 4 Positive integers, e.g., 1, customer 2, 3, .. CustomerName Name of the customer String 255 Alphanumeric characters, e.g., "Nguyen Quang Duc," BranchID The ID of the branch that Integer 4 Positive integers, e.g., 1, customers have their first 2, 3, .. purchase, relates to Branch table using BranchID Email Email address of the String 255 Valid email addresses, customer e.g.,"[email protected]” Phone Phone number of the String 10 Alphanumeric characters customer representing phone numbers, e.g., "0935363562”
Invoice table: Records information about customer invoices
Data Description Composition or Length Values
Element Data Type InvoiceID Unique ID number for the Integer 4 Positive integers, invoice e.g., 1, 2, 3, ... CustomerID The ID of the customer in Integer 4 Positive integers, invoice, relates to Customer e.g., 1, 2, 3, ... table using CustomerID DrinkID The drink that have in the Integer 4 Positive integers, invoice, relates to the Drinks e.g., 1, 2, 3, ... table using DrinkID Quantity The quantity of a particular Integer 4 Positive integers, drinks in the invoice e.g., 1, 2, 3, ... Amount The amount of drink Decimal Varies Decimal numbers, (e.g., 3 e.g., 100000.800. decimal places) TimeOfDay Time create invoice in day Time 5(if local time; hh = 0- stored 23 inclusive; mm = as a 00, 15, 30, or 45 string) hh:mm Date Invoice date Date 10(if Valid dates in the stored format "YYYY-MM- as a DD," e.g., "2023- string) 10-15."
Revenue table: Stores information about revenue generated by branches.
Data Description Composition or Length Values
Element Data Type RevenueID Unique ID number for the Integer 4 Positive integers, revenue e.g., 1, 2, 3, ..
BranchID The ID of the Branch, relates Integer 4 Positive integers,
to Branch table using e.g., 1, 2, 3, .. BranchID Amount Revenue amount Decimal Varies Decimal numbers, (e.g., 3 e.g., 100000.800. decimal places) Date Date of the revenue entry Date 10(if Valid dates in the stored format "YYYY-MM- as a DD," e.g., "2023- string) 10-15."
Employee table: Stores information about employees.
Data Element Description Composition or Length Values
Data Type EmployeeID Unique ID number for the Integer 4 Positive integers, employee e.g., 1, 2, 3, ..
EmployeeName The name of the employee String 255 Alphanumeric
characters, e.g., "Nguyen Quang Duc,"
BranchID The branch that employees Integer 4 Positive integers,
work in, relates to Branch e.g., 1, 2, 3, .. table using BranchID Position Job position of the String 255 Alphanumeric employee characters, e.g., "Manager," "Cashier," “server” Email Email address of the String 255 Valid email employee addresses, e.g.," [email protected]” Phone Phone number of the String 10 Alphanumeric employees characters representing phone numbers, e.g., "0935363562”
EmployeeSalary table: Records salary information for employees.
Data Description Composition or Length Values
Element Data Type SalaryID Unique ID number for the Integer 4 Positive integers, salary entry e.g., 1, 2, 3, ..
EmployeeID The ID of the employee, Integer 4 Positive integers,
relates to Employee table e.g., 1, 2, 3, .. using EmployeeID Amount Salary amount of Employee Decimal Varies Decimal numbers, for month (e.g., 3 e.g., 100000.800. decimal places) Date Date of the salary entry Date 10(if Valid dates in the stored format "YYYY-MM- as a DD," e.g., "2023- string) 10-15."