You are on page 1of 12

Overview of e-Fitness Database

e-Fitness Data Dictionary


Table : CUST_USER
Table
Name

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

password of the user contain from


alphanumeric.
Username of the user must be uniq for
everyone
Must be a permanent Address of the
user
Must be a permanent Address of the
user
Must be a permanent Address of the
user
Postcode of the user

not null

YES

not null

YES

not null

YES

not null

YES

not null

YES

not null

YES

State of the user. Refer STATE table


Mobile phone number for contact person

null
not null

YES
YES

null

YES

not null

YES

Description
Auto running number

user emel for any notification from the


system

Format

alphanume
ric
alphanume
ric

STATE table

12

LEVEL_OF_U
SER

INT

Level of the user to access application

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

The order status of the product

INT

Quantity of the order

null

YES

DATETIME

Refering customer time to deliver at


home
Date customer enter the system to buy
product

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

Must be an address where the product


to deliver
Must be an address where the product
to deliver
Must be an address where the product
to deliver
Must be a postcode where the product
to deliver
State of the where to deliver. Refer
STATE table
Auto running

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

Bank choose to make payment if


the payment made by the debit

null

YES

Format

1 - Credit Card, 2
- Debit
1 - CIMB, 2 MAYBANK, 3 AMBANK

RECEIPT_NO

VARCHAR(
16)

Receipt number of the payment.

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

Type of card if payment made by


the credit card
CCV of the credit card.

null
null

YES
YES

Credit card number


Date of payment made

null
null

YES
YES

Name on the card


Month of expired card

null
null

YES
YES

Year of expired card


Foreign Key
Refering a bank to make a payment
transaction

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)

Category of product to buy


Type of the product to puy

null
null

YES
YES

FK

Order Number of the product

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

Serial number of the product


Refer the stock of the product either available
or sold out

DATETIME

date update status

INT

PK

Description

FK

Default
Value

Mandat
ory

null

YES

null

YES

not null

YES

null

YES

foreign key product type stock

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

State of the name

null

YES

Auto running number

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

Height of the product for details

null

YES

Width of the product for details

null

YES

Weight of the product for details


Details and briefly explanation about
the product

null

YES

null

YES

Image of the product

null

YES

not null
null

YES
YES

YES

Description
Auto running number
Product Category

Brochure of the product


The price of the product
fK

Auto running number

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

You might also like