Professional Documents
Culture Documents
CUST_USER
Desc
This table keep general information about user that contain from customer and admin. The main
information needed is the address of the user.
Desc of
Naming
Conven
tion
None
No.
Field Name
1
2
USER_IDENT
ITY
PASSWORD
USERNAME
ADDRESS_1
ADDRESS_2
ADDRESS_3
POSTCODE
8
9
STATECODE
MOBILE_NO
10
STATUSTOC
11
USER_EMAIL
Data
Type
VARCHAR(
25)
VARCHAR(
15)
VARCHAR(
15)
VARCHAR(
30)
VARCHAR(
30)
VARCHAR(
30)
VARCHAR(
10)
INT
VARCHAR(
12)
VARCHAR(
10)
VARCHAR(
25)
Constr
aint
PK
FK
Default
Value
0
Mandat
ory
YES
not null
YES
not null
YES
not null
YES
not null
YES
not null
YES
not null
YES
null
not null
YES
YES
null
YES
not null
YES
Description
Auto running number
Format
alphanume
ric
alphanume
ric
STATE table
12
LEVEL_OF_U
SER
INT
null
YES
13
DATE_REGIS
TER
DATETIME
Date register.
null
YES
1 - Admin,
2Customer
current
date
Table : PURCHASE
Table
Name
Desc
Desc of
Naming
Conven
tion
PURCHASE
This table will keep information about the confirmation purchase by the customer.
None
No.
Field Name
1
2
3
ORDER_NO
DATEORDER
TOTALAMTORD
ER
STATUS_ORDE
R
5
6
7
QUANTITY_OR
DER
DATE_DELIVER
Y
DATE_ENTRY
Data
Type
INT
DATETIME
Decimal
Constr
aint
PK
Description
Auto running
Date order product
The total amount of the order
Default
Value
0
null
null
Mandat
ory
YES
YES
YES
YES
INT
INT
null
YES
DATETIME
null
YES
not null
YES
DATETIME
Format
1PENDING,
2DELIVER
11
DELIVERY_ADD
RESS
DELIVERY_ADD
RESS
DELIVERY_ADD
RESS
POSTCODE
12
STATE
VARCHAR(
45)
VARCHAR(
45)
VARCHAR(
45)
VARCHAR(
10)
INT
13
USER_IDENTIT
Y
VARCHAR(
25)
9
10
fK
null
YES
null
YES
null
YES
null
YES
null
YES
YES
STATE
Table
Table : PAYMENT
Table
Name
Desc
Desc of
Naming
Conven
tion
No.
PAYMENT
This table will kep the payment information of the product buy
None
Field Name
idPAYMENT_ORD
ER
MODE_OF_PAYM
ENT
BANK_CODE
Data
Type
INT
Constr
aint
PK
Description
Defaul
t Value
Mandat
ory
YES
INT
Auto running
Mode of payment made by the
customer
null
YES
INT
null
YES
Format
1 - Credit Card, 2
- Debit
1 - CIMB, 2 MAYBANK, 3 AMBANK
RECEIPT_NO
VARCHAR(
16)
YES
null
5
6
9
10
NAME_CARD
MONTH_EXP
11
12
YEAR_EXP
ORDER_NO
INT
INT
VARCHAR(
16)
DATETIME
VARCHAR(
30)
VARCHAR(
5)
INT
INT
13
BANK_CODE
INT
7
8
CARD_TYPE
CCV
CREDIT_CARD_
NO
DATE_PAYMENT
fK
fK
null
null
YES
YES
null
null
YES
YES
null
null
YES
YES
null
null
YES
YES
null
YES
The
combination of
the
DATE_PAYMENT
and
idPAYMENT_OR
DER
1 - Mastercard, 2
- Visa Card
Refer
REF_MONTH
Table : SHOPPING_LIST
Table
Name
Desc
Desc of
Naming
Conven
tion
No.
1
SHOPPING_LIST
This table will keep the product that customer buy.
None
Field Name
PRODUCT_ID
Data
Type
INT
Constr
aint
PK
Description
Auto Running
Default
Value
Mandat
ory
YES
Format
2
3
PRODUCT_CATE
GORY
PRODUCT_TYPE
ORDER_NO
SERIAL_NO
STOCK_SERIAL_
NO
INT
INT
INT
VARCHAR(
16)
VARCHAR(
45)
null
null
YES
YES
FK
null
YES
null
YES
FK
Refering a product no
Refering a product no for
managing stock
null
YES
Table : DELIVERY
Table
Name
Desc
Desc of
Naming
Convent
ion
DELIVERY
This table will contain the information or status delivery of the product
None
refer
PURCHASE
refer STOCK
No.
Field Name
Data
Type
Constr
aint
INT
DECIMAL
(2)
PK
ID_COST
TRANSPORT_C
OST
INSTALL_COST
4
5
6
TOTAL_COST
ID_STATE
ID_PRODUCT
DECIMAL
(2)
DECIMAL
(2)
INT
INT
fK
fK
Description
Auto running no
Transportation rate is based on State and
there will
get a discount if buy more than one product.
Adding transportation cost and Installation
Cost
Refer State Table
Refer Type Table
Table : STOCK
Table
Name
Desc
STOCK
This table will contain about the information of the stock available.
Default
Value
Mandat
ory
0
null
YES
null
YES
null
null
null
YES
YES
YES
Form
at
Desc of
Naming
Conven
tion
No.
1
2
3
4
None
Field
Name
SERIAL_NO
STATUS_ST
OCK
STATUS_DA
TE
ID_PRODUC
T
Data
Type
VARCHAR(
45)
Constr
aint
INT
DATETIME
INT
PK
Description
FK
Default
Value
Mandat
ory
null
YES
null
YES
not null
YES
null
YES
Format
1 - Available,
2 - Sold
Table : CATEGORY
Table
Name
Desc
Desc of
Naming
Conventi
on
No.
CATEGORY
This tablewill keep data about the category of the product to sell.
None
Field Name
Data Type
ID_PRODUCT_CATEGORY
INT
PRODUCT_CATEGORY
VARCHAR(45
)
Table : STATE
Constrai
nt
PK
Description
Auto running number
Product Category
Default
Value
0
Mandato
ry
YES
null
YES
Format
Table
Name
STATE
Desc
This table will keep all the information about state. This table use as a reference table to the other table
especially at CUST_USER and DELIVERY
Desc of
Naming
Conventi
on
No.
None
Field Name
Data Type
idSTATE
INT
STATE_NAME
VARCHAR(45)
USER_IDENTITY
VARCHAR(45)
Constraint
PK
fK
Default
Value
Mandatory
YES
null
YES
null
YES
Description
Auto running number
Table : BANK
Table
Name
Desc
Desc of
Naming
Conven
tion
No.
1
BANK
This table will keep data about Bank table
None
Field Name
BANK_CODE
BANK_NAME
Table : TYPE
Data
Type
INT
VARCHAR(
45)
Constr
aint
PK
Description
Bank choose to make payment if the
payment made by the debit
Bank Name for make a payment
Defaul
t Value
null
Mandat
ory
YES
null
YES
Format
1 - CIMB, 2
- MAYBANK,
3 - AMBANK
Format
Table
Name
Desc
Desc of
Naming
Conven
tion
No.
1
2
3
TYPE
This table will keep record about the type of equipment to buy.
None
Field Name
ID_PRODUCT
PRODUCT_TYPE
HEIGHT
WIDTH
WEIGHT
DESCRIPTION
IMAGE
8
9
BROCHURE
PRICE
ID_PRODUCT_CATE
GORY
10
Data
Type
INT
VARCHAR(
45)
VARCHAR(
45)
VARCHAR(
45)
VARCHAR(
45)
VARCHAR(
45)
VARCHAR(
45)
VARCHAR(
45)
FLOAT
INT
Constr
aint
PK
Defaul
t Value
0
null
Mandat
ory
YES
YES
null
YES
null
YES
null
YES
null
YES
null
YES
not null
null
YES
YES
YES
Description
Auto running number
Product Category
Format
Table : LOG_TRAIL
Table
Name
Desc
Desc of
Naming
Conventi
on
No.
LOG_TRAIL
This table will keep a log trail by all customer and user
None
Field Name
Data Type
ID_LOG
INT
DATELOG
DATETIME
USER_IDENTITY
VARCHAR(2
5)
Constra
int
PK
fK
Description
Auto running number
Time for all user enter the system
Auto running number
Default
Value
0
Mandato
ry
YES
NULL
YES
YES
Format