E-R Diagram & Program Design

advertisement
Seema Tomar
Chris Robson
Suma Surpur
TABLE
OF CONTENTS
I.
Business Requirements
II.
Context Diagram
III.
Level 0 DFD
IV.
Level 1 DFD
B USINESS R EQUIREMENTS

To establish a computerized system that will replace
our current system
To keep records of all business data
 Allow
new user to register, create their profile and buy
membership online.
Allow customers to renew /upgrade their membership.
Allow customers to edit their information.
Allow customers to schedule for classes.
B USINESS R EQUIREMENTS

Allow customers to request and view yoga class
videos online.

There should be a centralize database and should
be accessed from any computer via internet

Personal trainers should be able to see their
schedule

Report should be generated to track sales and
improve efficiency
C ONTEXT D IAGRAM
(UPDATED)
L EVEL 0 DFD

External Entities
Customer
Employee

Processes
Employee processing
Personal Trainer processing
Customer processing
Billing
Class schedule processing
Video processing
Feedback processing
Generate Report processing
L EVEL 0 DFD

Data Store
D1 Employee data
D2 Trainer data
D3 Membership data
D4 Customer data
D6 Classes data
D9 Feedback data
D10 Billing data
L EVEL 1DFD
FOR PROCESS
3(C USTOMER PROCESSING )

External Entities
 Customer

Processes
 Register processing
 Log In processing
 Edit Information
 Upgrade or Renew Membership

Data Store
 D3 Membership data


D4 Customer data
D10 Billing data
L EVEL 1DFD
FOR PROCESS
4(B ILLING )

External Entities
 Customer

Processes
 Select Billing
 Cash Processing
 Credit or Debit processing

Data Store
D10 Billing data
L EVEL 1DFD
FOR PROCESS
8(G ENERATE

External Entities
 Employee

Processes
REPORT PROCESSING )
 Select report
 Billing report processing
 Feedback report processing
 Customer report processing

Data Store
 D10 Billing data
 D4 Customer data
 D9 Feedback data
SYSTEM COMPONENTS
Processes
2.0
1.0
External Entity
Employee
Processing
4.0
CUSTOMER
Billing
D1
3.0
Personal
Trainer
Processing
Customer
Processing
5.0
6.0
Class
Schedule
Processing
Video
Processing
7.0
8.0
Feedback
Processing
Report
Processing
Employee Data
D2
Trainer Data
D3
External Entity
EMPLOYEE
Membership Data
Database
D4
Customer Data
D6
D5
Classes Data
Billing Data
D9
Feedback Data
STRUCTURE CHART
Logical Design- ER Diagram
PHYSICAL DESIGN
Membership_Type (Membership_type_code, Membership_type_description,
Annual_subscription, Half-yearly_subscription, Quaterly_subscription, Monthly_subscription)
Customer (Customer_id, First_name, Last_name, Email, Home_Phone, Mobile_Phone, Address,
City, State, Zip)
Membership_Account ( Membership_id, Customer_id, Membership_type_code,
Cust_username, Cust_password, First_joined_date, Status, Renewal_date)
Employee ( Emp_id, Emp_username, Emp_password, First_name, Last_name, Job_title, Email,
Home_Phone, Mobile_Phone, Address, City, State, Zip)
Billing(Bill_id, Membership_id, Total_charges, Balance, Bill_due_date, Payment_mode)
Classes (Class_id, Emp_id, Class_room, Class_day, Class_time)
Member_Classes(Membership_id, Class_id)
Feedback (Feedback_id, Customer_id, Feedback_description)
Personal_trainer_sessions (Session_id, Membership_id, Emp_id, Session_day, Session_time)
LOGIN PAGE
CUSTOMER REGISTRATION PAGE
Download