The document outlines requirements for creating database tables and stored procedures to store user, transaction, product, and stock information for an Epson hackathon. Tables are to be created for users, store visit history, transactions, sales, products, stock, and tenders with common fields tracking creation and updates. Stored procedures are also to be created to insert data into the tables and retrieve product lists based on business unit and product code.
The document outlines requirements for creating database tables and stored procedures to store user, transaction, product, and stock information for an Epson hackathon. Tables are to be created for users, store visit history, transactions, sales, products, stock, and tenders with common fields tracking creation and updates. Stored procedures are also to be created to insert data into the tables and retrieve product lists based on business unit and product code.
The document outlines requirements for creating database tables and stored procedures to store user, transaction, product, and stock information for an Epson hackathon. Tables are to be created for users, store visit history, transactions, sales, products, stock, and tenders with common fields tracking creation and updates. Stored procedures are also to be created to insert data into the tables and retrieve product lists based on business unit and product code.
Notes: All tables must have the following info: CreatedBy – information who is the user/application who inserted the data in the table/s. CreatedOn – autogenerated; date when the data was inserted. UpdatedBy – information who is the user/application that updates the record in the table/s. UpdateOn – date when the record was updated.
All tables must have unique ID.
Table Name Description
User Save user details such as name, address, and contact number. UserID (unique ID) will be automatically generated (PK). StoreVisitHistory Save all the date/time that the user has visited the stores.
This table includes the following columns:
RecordID – unique ID. UserID – User Identifier Temperature – User temperature upon entering the store. Transaction_Tbl In this table all transactions will be stored. Such as BusinessUnit, TransactionDate, TransactionID, PosID, TransactionType, and Transaction Total Amount Sales_Tbl Save all sales records including BuzUnit, TransactionID, PosID, Barcode, qty, price, TotalAmount, and NetAmount
TotalAmount = Sum qty * price
NetAmount = Sum qty * price - discount Product_Tbl Save all product information such as Business Unit, Product name, barcode, department Stock_Tbl Saved Stock available for each product. Tender_Tbl Save all transaction tenders. Business unit, transactionid, posid, tendered and change.
Create Stored Procedure for insertion of data in above tables.
Practical guide for coding: Coding Manual for Industry and product standard classification, generic and for warehouse guideline with Classification Plans and sample Tables for coding articles, products, price lists