Difference between revisions of "AY1516 T2 Team13 Natasha Studio Findings Database"

From Analytics Practicum
Jump to navigation Jump to search
 
Line 89: Line 89:
 
<h3>Functions</h3>
 
<h3>Functions</h3>
 
1. Add new purchases – when there is a new purchase, the counter staff will use this function to add a new customer purchase record into the database. If the customer is a new member, the new member will be automatically added into the ‘Member’ table.
 
1. Add new purchases – when there is a new purchase, the counter staff will use this function to add a new customer purchase record into the database. If the customer is a new member, the new member will be automatically added into the ‘Member’ table.
 +
<br><br>
 
[[File:flow1.png|Process flow of “Add New Purchase” function|800px]]
 
[[File:flow1.png|Process flow of “Add New Purchase” function|800px]]
 
[[File:flow2.png|Sample page of package purchase data entry|800px]]
 
[[File:flow2.png|Sample page of package purchase data entry|800px]]

Latest revision as of 21:04, 17 April 2016

HOME

TEAM

PROJECT OVERVIEW

FINDINGS & ANALYSIS

PROJECT MANAGEMENT

DOCUMENTATION

EXPLORATORY DATA ANALYSIS OTHER ANALYSIS DATABASE CREATION ASSOCIATION RULE MINING LOGISTIC REGRESSION

SQLite database

Problems faced during database creation and their corresponding solutions

Without the help of a 3rd party user interface (UI) program, SQLite runs mainly using command prompt commands. The team feels that this would be non-intuitive for the user and hence not user friendly. Therefore, the team has decided to use SQLiteStudio as the main UI. SQLiteStudio allows users to perform create, read, update, delete (CRUD) functions using either SQL or the UI. It also allows us to import and export databases or tables in .csv format. Most of the functions are available in the form of a UI, thus prior knowledge of SQL required in order to configure the database is kept to a minimal.

SQLite Entity Diagram

Diagram of relational database structure

When creating the tables and its columns, we took into consideration the historical records so as to keep as close to the as-is situation as possible. We are still in the midst of discussing certain naming conventions with our client.

Table Description

Daily Class

Contains the records for all the classes that is held daily

Daily Class

All Class

Contains the records for all types of classes that is held in the studio since its inception

All Class

Instructor

Contains the data for the instructors that holds classes in the studio

Instructor

Member

Contains the data for Natasha Studio’s customers

Member

Package

Contains the records of all the packages that is available for purchase

Package

Attendance

Records the members that attended classes in Natasha Studio, along with the package that the member is currently using.

Attendance

PackagePurchase

Contains records for day-to-day sales during working hours

PackagePurchase

User Interface

Below is the breakdown of the tools used. 1. Java IDE – Netbeans 2. Website design – HTML, CSS 3. Backend – Java servlets 4. Libraries – sqlite-jdbc-3.8.11.2.jar

Landing Page

Landing Page

Functions

1. Add new purchases – when there is a new purchase, the counter staff will use this function to add a new customer purchase record into the database. If the customer is a new member, the new member will be automatically added into the ‘Member’ table.

Process flow of “Add New Purchase” function Sample page of package purchase data entry

2. Mark attendance – before a class starts, the counter staff will use this function to add a new ‘DailyClass’ object. Following which, he/she will enter the names of the members that attended this class. Using the ‘PackagePurchase’ table, the function will search for the latest package purchase by the member and fill the ‘Attendance’ table. Process flow of “Mark Attendance” function

3. Activate Package – this function allows the staff to activate packages that has not been activated previously. Process flow of “Activate Package” function Sample page of “Activate Package” function