You are on page 1of 11

Practical6

AIM: Design SA/SD for current semester project. It includes Requirement specification,
DFD with data dictionary and Structure chart for current semester project.

DATAFLOW DIAGRAM

ADMIN Setup the Update


system Cyber database Scheme_
café master
monitorig
system
Coupon_
master
Buy the
Customer coupon/scheme

LEVEL 0(CONTEXT LEVEL)


Checks userid
Userid and password and password
CONNECT Login_master
1.0 Validation status
Validation staus

Total time Checks availabilty Coupon_


master
Billing Corresponding
6 reply
Client status
Account_
master

Retrieves the
Userid & password
Information
Information Mem_master
2.0 Sends information
Receives
information
Retrieve information
Account_
Send information master

Userid & password Updates database


Register Login_master
4 Update status
Registration status

Mem_master

Scheme_
master

Inputs schemes Updates database


Coupon_
Scheme
master
5 Update status
Receives status

Scheme_
master

Inputs data Updates database Scheme1_


Recharge master
3 Sends reply
Receives status

Account_
master
Userid & password Updates database
Delete Login_master
7 Update status
Deletion status

Mem_master

Scheme_
master

LEVEL 1

Level 1 (revised)
Enter coupon id
Coupon id
Account_ Coupon_
entry master Account_
master
1.1 master

Coupon_ Invalid
master validates Update
coupon update

Checks Validate Valid Start End


coupon id coupon surfing surfing
Validity status 1.2 1.3 1.4

Account_
master

Level 2 DFD for non-members


Enter userid
Userid id
Account_ mem_
entry master Account_
master
1.1 master

Login_ Invalid
master validates Update
user update

Checks Validate Valid Start End


user id user surfing surfing
Validity status 1.2 1.3 1.4

mem_ valid
master

Member
Retrieves info Mem_
info master
2.1 Receives info

Level 2 DFD for members

DATA DICTIONARY

1) Table name: login_master


Primary key: userid
Foreign key: References:

FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION


Userid Varchar2 20 Primary key. Member’s id/coupons
for non-members
Password Varchar2 20 Should not be null Member’s password

2) Table name: mem_master


Primary key: memid
Foreign key: References:

FIELDNAME DATATYPE SIZE CONSTRAIN DESCRIPTION


T
Memid Varchar2 10 Provide unique id to each
Primary key.
member
address Varchar2 10 Stores address of each member
Phone Number 10 Stores phone number of each
member
Email Varchar2 20 Stores email id of each member
Date Date/time 8 Stores registration date
time Date/time 8 Stores total time left for surfing

3) Table name: coupon_master


Primary key: coupid
Foreign key: References:

FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION


Coupid Varchar2 10 Provides unique coupon for
Primary key.
non-members
Time Number 8 Stores the total time provided
by coupon(in hours)
Days Number 4 Stores the total days for
expiring coupon

4) Table name: account_master


Primary key: {id, logindate, logintime}
Foreign key: References:

FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION


Id Varchar2 20 Primary key. Stores the id of user
Logindate Date/time 8 Primary key Stores the login date of user
Logintime Date/time 8 Primary key Stores the login time of user
Logofftime Date/time 8 (Logoff-login) time Stores the current balance of
should not exceed user
the valid time
remaining for user

5) Table name: scheme1_master


Primary key: schemeid
Foreign key: null References:

FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION


Schemeid Varchar2 20 Primary key Stores the id of scheme
Time Number 10 Stores the total time provided
by scheme (in hours)
Days Number 10 Stores the total days for
expiring the scheme
Rupees Number 4 Stores the amount for the
schemes

6) Table name: scheme_master


Primary key: {schemeid, memid}
Foreign key: References:

FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION


Schemeid Varchar2 10 Primary key Stores the id of schemes
Memid Varchar2 10 Primary key Stores the id of member

DATA DICTIONARY (revised)


1) Table name: mem_master
Primary key: mem_id
Foreign key: References:

FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION


mem_id Varchar2 20 Provide unique id to each
Primary key.
member
Address1 Varchar2 10 Stores address of each member
Phone1 Number 10 Stores phone number of each
member
Email1 Varchar2 20 Stores email id of each
member
Date1 Date/time 8 Stores registration date
Time1 Varchar2 8 Stores total time left for
surfing
Name1 Varchar2 20 Store the name of the member
Scm_id1 Varchar2 20 Stores the id of the scheme
password Varchar2 20 Stores the member password

2) Table name: coupon_master


Primary key: coupid
Foreign key: References:

FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION


Couponid Varchar2 10 Provides unique coupon for non-
Primary key.
members
price Number 8 Stores the total price of specific
coupon(according to hours)

3) Table name: account_master


Primary key: {id, logindate, logintime}
Foreign key: References:

FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION


Id Varchar2 20 Primary key. Stores the id of user
Logindate Date/time 8 Primary key Stores the login date of user
Logintime Varchar2 8 Primary key Stores the login time of user
Logofftime Varchar2 8 (Logoff-login) time Stores the current balance of
should not exceed user
the valid time
remaining for user

4) Table name: scheme1_master


Primary key: scm_id
Foreign key: null References:
FIELDNAME DATATYPE SIZE CONSTRAINT DESCRIPTION
Scm_id1 Varchar2 20 Primary key Stores the id of scheme
Time Varchar2 10 Stores the total time provided
by scheme (in hours)
Days Number 10 Stores the total days for
expiring the scheme
Ruppees Number 4 Stores the amount for the
schemes

STRUCTURE CHART

ADMIN

REGISTER RECHARGE COUPON

NEW USER ACCOUNT VISITOR

You might also like