0% found this document useful (0 votes)
70 views12 pages

Table 1 - Ref - Addresses Fieldname Data Type Description: Btid Int (11) Unique Id For Business Type

The document contains descriptions of 9 tables with their fields and data types used to store reference data, user data, transaction data, and audit logs for a point of sale system. The tables store information on users, products, suppliers, transactions, inventory, and system activities. Primary keys are defined for each table to uniquely identify records.
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
70 views12 pages

Table 1 - Ref - Addresses Fieldname Data Type Description: Btid Int (11) Unique Id For Business Type

The document contains descriptions of 9 tables with their fields and data types used to store reference data, user data, transaction data, and audit logs for a point of sale system. The tables store information on users, products, suppliers, transactions, inventory, and system activities. Primary keys are defined for each table to uniquely identify records.
Copyright
© © All Rights Reserved
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/ 12

Table 1

_ref_addresses

Fieldname Data Type Description


uID(Primary) int(11) Unique ID for Users
street text Street address of User
city text City address of User
state text State address of User

Table 1.1

_ref_brands

Fieldname Data Type Description


brndID(Primary) int(11) Unique ID for Brands
brndDesc varchar(50) Brands Description

Table 1.2

_ref_businesstype

Fieldname Data Type Description


btID (Primary) int(11) Unique ID for Business Type
btDesc varchar(70) Business Type Description

Table 1.3

_ref_discount

Fieldname Data Type Description


discID (Primary) int(11) Unique ID for Discount
disc_whole int(11) Discount Whole Value
disc_percent varchar(20) Discount Percentage
disc_desc varchar(50) Discount Description

1
Table 2

_ref_gender

Fieldname Data Type Description


gID int(11) Unique ID for Gender
(Primary)
gDesc varchar(20) Gender Description

Table 2.1

_ref_position

Fieldname Data Type Description


pID int(11) Unique ID for Position
(Primary)
pDesc varchar(30) Position Description

Table 2.2

_ref_status

Fieldname Data Type Description


unitID (Primary) int(11) Unique ID for
Unit
unitDesc varchar(20) Unit
Description
Table 2.3

_ref_recent

Fieldname Data Type Description


Id int(11) Unique ID for table
(Primary)
prdID int(11) Unique ID of Product
dateAdd varchar(50) Date of product been
added
qty double Quantity of product
added

2
Table 3

audit

Fieldname Data Type Description


id (Primary) int(11) Unique ID for table
uid int(11) Unique ID for Users
name varchar(150) Name of the User
user_action text Action been done by user
created_at timestamp Date and Time of Activity
branch_id int(11) Unique ID for Branch

Table 3.1

backup_history

Fieldname Data Type Description


id (Primary) int(11) Unique ID for table
name varchar(150) Name of User
create_at timestamp Date and Time of Activity
uID int(11) Unique ID for User

Table 3.2

branch

Column Data Type Description


bid (Primary) int(11) Unique ID for
Branch
branch_name varchar(150) Name of Branch
branch_address text Address of Branch

3
Table 4

cashier_audit

Fieldname Data Type Description


id int(11) Unique ID for table
(Primary)
uid int(11) ID for Users
name varchar(60) Name of the User
bid int(11) ID for Branch
user_action text Action been done by
User
type varchar(50) Type of action been
done by User
created_at timestamp Date and Time of
activity

Table 4.1

invoice

Fieldname Data Type Description


ivID (Primary) int(11) Unique ID for
Invoice
ivNumber bigint(20) Invoice Number
prdID int(11) ID of Product
ivDate varchar(50) Invoice date of
Delivery
qty double Quantity of the
Product
uPrice double Unit Price of the
product
uID int(11) ID for Unit
branch_id int(11) ID for Branch

4
Table 5

pos_items

Fieldname Data Type Description


uID (Primary) int(11) ID for Unit
tranID int(11) ID for
Transaction
prdID int(11) ID for Product
prd_qty int(11) Quantity of
Product
tranDate varchar(50) Transaction
Date
status int(11) Status of
product
branch_id int(11) Unique ID for
Branch

Table 5.1

product_expiry

Fieldname Data Type Description


ex_id (Primary) int(11) Unique ID
for table
ivID bigint(20) Unique ID
for Invoice
prdID int(11) ID for
Product
expiry_date varchar(255) Date of
expiration
of product
notify_at varchar(255) Date of
notification
seen int(11) Status for
expiration

5
Table 6

product_details

Fieldname Data Type Description


prdID (Primary) int(11) ID for Product
prdUnit varchar(50) Unit for Product
unitID int(11) ID of Unit
qty int(11) Quantity of
product
uPrice double Unit price of
product
discID int(11) ID for discount
netPrice double Net Price of
product
srp double Suggested Retail
Price of product
bid int(11) ID for Branch

Table 6.1

product_details

Fieldname Data Type Description


prdID (Primary) int(11) ID for Product
genName varchar(100) Generic name of
product
brndID bigint(20) ID for brand
supID bigint(20) ID for supplier
branch_id int(11) ID for branch

6
Table 7

supplier_details

Fieldname Data Type Description


supID (Primary) int(11) Unique ID for
supplier
street text Street address
of supplier
city text City address of
supplier
state text State address
of supplier
contact varchar(20) Contact number
of supplier
contPerson varchar(50) Contact person
of supplier

Table 7.1

suppliers

Fieldname Data Type Description


supID (Primary) int(11) Unique ID for
supplier
cmpName text Company name of
supplier
bID int(11) ID for branch

7
Table 8

transaction_details

Fieldname Data Type Description


id int(11) Unique ID for table
tranID int(11) ID for transaction
Itmqty int(11) Quantity of item
total double Total Sales
Atenderd int(11) Tendered amount
Achange double Change amount
branch_id int(11) ID for branch
discounted double Discounted amount
disc_val varchar(10) Discount Value

Table 8.1

transaction_details

Fieldname Data Type Description


id int(11) Unique ID for table
tranID int(11) ID for transaction
uID int(11) ID for unit
tranDate varchar(50) Date of transaction
branch_id int(11) ID for branch

8
Table 9

user_accnts

Fieldname Data Type Description


uID int(11) ID for user
username varchar(50) Username of user
password varchar(150) Password of user
email text Email of user
fname varchar(40) First name of user
mname varchar(30) Middle name of user
lname varchar(40) Last name of user
gID int(11) ID for gender
pID int(11) ID for Position
sID int(11) ID for status
bid int(11) ID for branch
stat int(11) Status value

Table 9.1

user_info

Fieldname Data Type Description


uID int(11) ID for User
BirthDate varchar(50) Birthdate of user
Contact varchar(20) Contact number of
user

9
Table 9.2

voided.items

Fieldname Data Type Description


uID int(11) ID for user
tranID int(11) ID for transaction
prdID int(11) ID for product
prd_Qty varchar(50) Quantity of product
tranDate varchar(60) Date of transaction
bid int(11) ID for branch

10
user_accnts
uID integer(11) PK

username varchar(255)

fname varchar(255)

mname varchar(255)

lname varchar(255)

password varchar(255)

transactions suppliers
tranID integer(11) PK sup_Id integer(11) PK

tran_Date varchar(255) cmpId integer(11)

Itmqty integer(11) fname varchar(255)

total integer(11) mname varchar(255)

Atendered integer(11) lname varchar(255)

Achange integer(11) contact


integer(11)
number

products
prdID integer(11) PK

reorder_count integer(11)

brndName varchar(255)

genName varchar(255)

unitPrice integer(11)

netPrice integer(11)

11
Data Scheme

User Account {user_id, username, fname, mname,lname


,password}
Transaction {tran_id, tran_date, Itmqty, total,
Atendered, Achange}
Supplier {sup_id, cmpId, street, city, province,
contact_number}
Product {prdId, reorder_count, brndName, genName,
unitPrice, netPrice}

12

You might also like