080250033CASE TOOLS: Adithya Institute of Technology
080250033CASE TOOLS: Adithya Institute of Technology
080250033CASE TOOLS: Adithya Institute of Technology
COIMBATORE – 107
080250033CASE TOOLS
LABORATORY
Department of
INFORMATION TECHNOLOGY
ADITHYA INSTITUTE OF TECHNOLOGY
COIMBATORE -107
Department of
INFORMATION TECHNOLOGY
LABORATORY RECORD
Place:Coimbatore
Date:
1.0 Introduction:
1.1 Purpose:
The purpose of the virtual classroom system is to integrate the benefits of a physical classroom
with the convenience of a “no-physical-bar” virtual learning environment.It will usher in the immense
flexibility and sophistication in the existing learning platform structures,with the perfect blend of
synchronous and asynchronous interaction.It provides a means of collaborative learning for the
students
1.2 Scope:
This project has a lot of scope for future development. Developing a virtual classroom system to
promote a greater count of students to splurge into the field of Education.
HTML (Hyper Text Markup Language): It is used to create static web pages.
platform, which is used for developing and running distributed java applications.
HTTP (Hyper Text Transfer Protocol): It is a transaction oriented client/ server protocol
between a web browser and a web server.
1.4 References:
http://findarticles.com/
http://en.wikipedia.org/wiki/History_of_virtual_learning_environments/
http://ezinearticles.com/
1.5 Technologies to be used:
1.6 Overview :
Overall Description :
Developing a virtual classroom system to promote a greater count of students to splurge into the
field of Education. It integrates the benefits of a physical classroom with the convenience of a ‘no-
physical-bar’ virtual learning environment, minus the commuting hazards and expenses. It will usher
in the immense flexibility and sophistication in the existing learning platform structures, with the
perfect blend of synchronous and asynchronous interaction. It provides a means of collaborative
learning for the students.
Specific Requirements :
Students can choose courses, attend lectures, take exams, view their attendance records, progress
reports etc as per their convenience.
Attend lectures either at the scheduled time or on request view lecture at a later time.
There can be forums, blogs etc to discuss various queries and to put up suggestions posted
both by students and teachers.
Students can take up various quizzes which can help them to realize their inbuilt talents
in various fields.
Facuties :
Faculties can take lectures, upload assignments, announcements, evaluate answer sheets and
also can upload lectures and other discussions in various formats as in videos, power point
presentation etc.
There can be forums, blogs etc to discuss various queries and to put up suggestions posted
both by students and teachers.
Administrator :
Administrator can generate reports, log files, backup/recovery of data at any time and create
user,department and courses.
Dean :
Can view all actors details
◦ The GUI and other parts of the E-learning tool software are to be done in JAVA and J2EE.
◦ The output of this software will need a web browser for viewing it.
2.6 Constraints :
Hardware Constraints:
The system requires a database in order to store persistent data. The database should have
backup capabilities.
Software Constraints:
The development of the system will be constrained by the availability of required software
such as web servers, database and development tools.The availability of these tools will be governed
by the Adithya Institute of Technology and Management.
A Class Diagram is a diagram that shows a set of classes, interfaces, collaborations and their
relationships. Graphically, it is a collection of vertices and arcs.
Diagram:
2.9.1 Sequence Diagram :
Definitions:
An Interaction is a behavior that comprises a set of messages exchanged among a set of objects
within a context to accomplish a purpose. We use interactions to model the dynamic aspects of the
model. When an object passes a message to another object, the receiving object might in turn send a
message to another object, which might send a message to yet another object, and so on. This stream of
messages forms a sequence. Any sequence must have a beginning; the start of every sequence is rooted
in some process or thread. Each process or thread within a system defines a distinct flow of control, and
within each flow, messages are ordered in sequence by time. A Sequence Diagram is an interaction
diagram that emphasizes the time ordering of the messages. Graphically, a sequence diagram is a table
that shows objects arranged along the X-axis and messages, ordered in increasing time, along Y-axis.
A Sequence Diagram has an Object Lifeline, which is a vertical dashed line that represents the
existence of an object over a period of time. Objects can be created and destroyed during this life time.
The second feature of a sequence diagram is the focus of control, which is a tall, thin rectangle that
shows the period of time during which an object is performing an action, either directly or through a
subordinate procedure.
Diagram:
2.9.2 Collaboration Diagram :
The Definition:
Collaboration is a society of classes, interfaces and other elements that work together to provide
some cooperative behavior that’s bigger than the sum of all its parts. The structural aspect of
collaboration includes any combination of classifiers, such as classes, interfaces, components and nodes.
That is, it specifies the classes, interfaces and other elements that work together to carry out the named
collaboration. Graphically, the classifiers are arranged like in any other UML Diagram, and related
using the common relationships.
Diagram:
Diagram:
2.9.4 Statechart Diagram
The Definitions:
A State Machine is a behavior that specifies the sequence of states an object goes through during
its lifetime in response to events, together with its responses to those events. A State is a condition or
situation during the life of an object during which it satisfies some condition, performs some activity, or
waits for some event. An Event is the specification of a significant occurrence that has a location in
space and time, i.e. it can trigger a state transition. A Transition is a relationship between two states
indicating that an object in the first state will perform certain actions and enter the second state when
specified event occurs and conditions are satisfied. An Activity is an ongoing non-atomic execution
within a state machine. An Action is an executable atomic computation that results in the change of a
state. Graphically, a state is a rectangle with rounded edges, and a transition is solid directed line.
A State Chart Diagram shows a state machine, emphasizing the flow of control from state to
state. Graphically, it is a collection of vertices and arcs. We use the state-chart diagram to model the
dynamic aspects of the system.
Diagram:
create table Role (Role_id INT AUTO_INCREMENT NOT NULL,Role_name varchar(10) NOT
NULL,primary key (Role_id) );
Department
create table Department (Department_id INT AUTO_INCREMENT NOT
NULL,Department_name varchar(10) NOT NULL,primary key (Department_id) );
Course
create table Course (Course_id INT AUTO_INCREMENT NOT NULL,Course_name
varchar(10) NOT NULL,syllabus varchar(10000),primary key (Course_id) );
User
create table User (User_id INT AUTO_INCREMENT NOT NULL,User_name varchar(10) NOT
NULL,User_passwd varchar(30) NOT NULL,Course_id INT NOT NULL,Department_id INT
NOT NULL,primary key (User_id) ,FOREIGN KEY (Course_id)REFERENCES Course
(Course_id)on DELETE CASCADE ON UPDATE CASCADE ,FOREIGN KEY (Department_id)
REFERENCES Department(Department_id) on DELETE CASCADE ON UPDATE CASCADE);
Attendance
create table Attendance (Attendance_no INT AUTO_INCREMENT NOT NULL,Date date
NOT NULL,day varchar(15) NOT NULL,User_id INT NOT NULL,Course_id INT NOT
NULL,status varchar(10) NOT NULL,PRIMARY KEY(Attendance_no),FOREIGN KEY
(Course_id)REFERENCES Course (Course_id)on DELETE CASCADE ON UPDATE
CASCADE ,FOREIGN KEY (User_id) REFERENCES User(User_id) on DELETE CASCADE
ON UPDATE CASCADE);
Assignment
create table Assignment (Assignment_id INT AUTO_INCREMENT NOT NULL,Given_date date
NOT NULL,Due_date date NOT NULL,Course_id INT NOT NULL,Assignment_que
varchar(1000) NOT NULL,Assignment_ans_file varchar(10000000)NOT NULL,Assignment_mark
int not null,PRIMARY KEY(Assignment_id),FOREIGN KEY (Course_id)REFERENCES Course
(Course_id)on DELETE CASCADE ON UPDATE CASCADE );
Question_bank
create table Question_bank (Question_bank_id INT AUTO_INCREMENT NOT
NULL, Question_bank_name varchar(15)NOT NULL,Course_id INT NOT
NULL,Question_bank_que varchar(1000) NOT NULL,Question_bank_ans varchar(100000)NOT
NULL,PRIMARY KEY(Question_bank_id),FOREIGN KEY (Course_id)REFERENCES Course
(Course_id)on DELETE CASCADE ON UPDATE CASCADE );
Lectures
create table Lectures (Lecture_id INT AUTO_INCREMENT NOT NULL,Lecture_name
varchar(15) NOT NULL,Course_id INT NOT NULL,Lecture_note varchar(10000000) NOT
NULL,PRIMARY KEY(Lecture_id),FOREIGN KEY (Course_id)REFERENCES Course
(Course_id)on DELETE CASCADE ON UPDATE CASCADE );
2.10.1 ER Diagram :
2.10.2 Schema :
CREATE SCHEMA
VCS; USE VCS;
nysq\> desc Ass1gnnent ;
Administrator: Responsible for managing all the three types of users, viewing logs and
managing standard groups of the system.
Manage System users:The Administrator will provide the system students,faculties
and dean the authentication to use the site.
View Logs:Responsible for checking the logs of different system user for auditing and
maintaining the integrity of the system.
System Reports:The Administrator is responsible to generate the system reports for
the future reference.
View All Details:View the user’s details,Chatting Details,forum details and mark records.
Back Up Date:The Administrator is responsible to back up all the data at a particular
time everyday.
Manage System Users:
Name of the Use Case:View Systems users
Description: View the list of system users in the role and view the details of roles,tasks and
permissions assigned to the users.
Preconditions:
Have Hours of Operation that are 24*7:Because System Can be authenticated it can
stay open for 24 hours a day.
Reduce the cost of sales transaction:To the extend one can automate the sales
process through this system ,one can start to reduce the sales of that sales transaction.
Make the existing website more Dynamic in nature:Many early web implementation
consisted of static HTML pages.This because it becomes difficult to manage if the number
of pages get too large.Application should serve dynamic user based customized web
pages to its client from server.
Tie the existing website into the existing enterprise system:Any existing website
that relies from the manual duplication of data from another system is one that can be
improved.
Personal Identity Management
1.0 Introduction:
The main objective of this document is to illustrate the requirements of the Personal Identity
Management system. This document provides a detailed description of the both functional and non
functional requirements proposed by the users. This document is developed after a number of
consultations with the user and considering the complete requirement specifications of the given
system. The final product of the team will be meeting the requirements of this document.
1.1 Purpose:
Standalone product that aggregates identity records of an individual and creates a secure file
that can be used by the individual and authorized people only. Something like a personal data vault.
1.2 Scope:
This software is being developed for the users to maintain their records in a much secured way
so that it can be accessed across several networks .Verification of PAN card ,passport ,account
creation in bank,account creation in any other organization.it is a centralized system for other
services.
HTML (Hyper Text Markup Language): It is used to create static web pages.
platform, which is used for developing and running distributed java applications.
HTTP (Hyper Text Transfer Protocol): It is a transaction oriented client/ server protocol
between a web browser and a web server.
1.4 References:
http://findarticles.com/
http://en.wikipedia.org/wiki/History_of_virtual_learning_environments/
http://ezinearticles.com/
1.5 Technologies to be used:
* Specific Requirements:
The following details gives the actors and their activities in a system.
1. Unregister User:
They have to register in the system first.
2. Register User:
They can view their details.
They can Update their details but that will be changed after the agents Permission.
They can delete their account in a system.
3. Agent:
Agent can do the registration in a system
Gives the permission for updation to the User.
Verifying and validating the user details.
4. Admin:
Admin can do database maintenance
Admin can do Encrypting the password for avoiding Hacking.
Admin can take a backup from the database for future use.
5. PIM:
Provides Service for any other systems which are all needs the details about a
Particular person who are in the PIM(Personal Identity Management) system.
Database changed
mysql> show tables;
Tables_in_eleven address authenticationcity college community country degree
experience familydetails gas1 licencesneighbour person phd pimproperty
property_references qualificationrationcard1role state university 1 voter_id
26 rows in set (0.00 sec)
Address Table:
mysql> create table address(address_id int auto_increment,city_id int not null,user_id
varchar(12),street_name char(12),door_number varchar(12),phone_number
int(12),primary key(address_id),foreign key(city_id) references
city(city_id))TYPE=innodb;
Query OK, 0 rows affected, 1 warning (0.03 sec)
Authentication Table:
mysql> create table authentication(authentication_id int auto_increment,user_id
varchar(12),finger_print varchar(12),photo varchar(12),keystroke_speed
varchar(12),human_iris varchar(12),primary key(authentication_id))TYPE=innodb;
Query OK, 0 rows affected, 1 warning (0.01 sec)
Experience Table:
mysql> create table experience(experience_id int auto_increment,year_of_experience
varchar(10),is_govtjob char(21),is_prijob char(12),total_salary_peryear int(12),primary
key(experience_id))TYPE=innodb;
Query OK, 0 rows affected, 1 warning (0.03 sec)
Familydetails Table:
mysql> create table familydetails(family_id int auto_increment,user_id
varchar(12),family_type varchar(10),no_of_sibling varchar(10),father_name
char(15),mother_name char(15),community_of_father varchar(10),community_of_mother
varchar(10),primary key(family_id))TYPE=innodb;
Query OK, 0 rows affected, 1 warning (0.04 sec)
Pim Table:
mysql> create table pim(pim_id int auto_increment,password varchar(10),role_id int not
null,reference_id varchar(10),primary key(pim_id),foreign key(role_id) references
role(role_id)TYPE=innodb;
Query OK, 0 rows affected, 1 warning (0.03 sec)
Voter_id Table:
mysql> create table voter_id(vote_id int auto_increment,user_id varchar(12),age
int(12),gender char(12),dob varchar(12),primary key(vote_id))TYPE=innodb;
Query OK, 0 rows affected, 1 warning (0.01 sec)
Person Table:
create table person(person_id varchar(12),pim_id int not null,no_of_occupation
int(12),main_occupation char(12),address_id int not null,property_id int not
null,family_id int not null,qualification_id int not null,rationcard_id int not
null,license_id int not null,community_id int not null,votere_id int not null,reference_id
int not null,authentication_id int not null,is_physically_handicapped
char(12))TYPE=innodb;
Query OK, 0 rows affected, 1 warning (0.04 sec)
Field Type Null Key Default Extra
person_id varchar(12 YES NULL
)
pim_id int(11) NO NULL
no_of_occupation int(11) YES NULL
main_occupation char(12) YES NULL
address_id int(11) NO NULL
| property_id int(11) NO NULL
family_id int(11) NO NULL
qualification_id int(11) NO NULL
rationcard_id int(11) NO NULL
license_id int(11) NO NULL
community_id int(11) NO NULL
votere_id int(11) NO NULL
reference_id int(11) NO NULL
authentication_id int(11) NO NULL
is_physically_handicapped char(12) YES NULL
2.8 Sequence Diagram:
2.9 Collaboration Diagram:
2.10 Activity Diagram:
2.11 ER Diagram:
2.12 Assumptions and Dependencies:
There exists the relationship between Role and PIM is one to many.
There exists the relationship between Person and Authentication is one to many.
There exists the relationship between Family details and Person is one to many.
There exists the relationship between Person and Experience is one to many.
There exists the relationship between Person and Qualification is one to many.
There exists the relationship between Person and Address is many to one.
In Usecase diagram there are five actors.Each actor has different activities of their own.
Actors in system are
Unregistered user
Registered user
Admin
Agent
PIM
.
EMentoring for women system
1.1 Purpose:
1.2 Scope:
This system is built for the one who doesn't know about about their in-built
talents.Once they use this online E-mentoring system they try to know about their in-built
talents and get good exposure about various fields. This system is mainly used by young girls
and women who needs to get inspired and motivated by the successful women in the society.
1.4 ReferenceS:
http://ici.umn.edu/ementoring/overview.html http://sarah-
stewart.blogspot.com/search/label/eMentoring
http://www.staffs.ac.uk/schools/sciences/ementoring
http://www.womenatbusiness.eu/Default.aspx
Specific requirements:
Mentor:
Can conduct test and tutorials
Can view student profile
Can post forums
Can view and post feedback
Can generate test reports
Can view student report
Mentee:
Can select mentors according to their interested field acce
Can take up test and view their test reports
Can view mentors profile
Can post forums/feedbacks
Can access biographies of successful women/men
Administrator:
Can view mentee/mentor status
Can analysis new mentee/mentor request
Can cancel or delete mentee/mentor request
The server is directly connected to the client system.Also the client has the access
to the database for accounting details and storing the login time.The client access to the
databasein the server is read only.
Mentee:
Mentee is the one who is a lesser skilled or experienced individual.
Mentor:
A Mentor is partly a coach, leader, advisor, counselor, teacher, guideA mentor is ply
a coach, leader, advisor, counselor, teacher, guide, and friend but none of these alone or
completely.
Administrator:
Administrator is the one who maintains the records,check the current status of mentee
as well mentor and also has the provision to accept or cancel the new mentee/mentor request.
mysql> create table role(Role_id int auto_increment NOT NULL primary key,Role_name char(30));
Query OK, 0 rows affected (0.00 sec)
mysql> create table user(User_id int auto_increment NOT NULL primary key,Password
varchar(40),Role_id int NOT NULL,foreign key(Role_id)references role(Roll_id));
Query OK, 0 rows affected (0.01 sec)
mysql> create table quiz(Quiz_id int auto_increment NOT NULL primary key,Quiz_name
varchar(40),Start_time varchar(20),End_time varchar(20),Random_question
varchar(40),Random_answer varchar(40),Time_limit varchar(30),User_id int NOT NULL,foreign
key(User_id)references user(User_id));
Query OK, 0 rows affected (0.01 sec)
mysql> create table answer_choice(Answer_choice_id int NOT NULL auto_increment primary
key,Answer_choice_description varchar(30),Question_id int NOT NULL,Choice_number
varchar(10),Correct varchar(5),foreign key(Question_id)references Quiz_Question(Question_id));
Query OK, 0 rows affected (0.00 sec)
2.8.1 ER DIAGRAM:
3.0 Specific Requirements:
Administrator: Responsible for managing all the two types of users, viewing logs and managing
standard groups of the system.
1.1 Purpose
Managing employee performance every day is the key to an effective performance management
system. Setting goals, making sure your expectations are clear, and providing frequent feedback help
people perform most effectively.Employee Performance Management System in online can help you
meet these big challenges of improving employee performance.
1.2 Scope
The scope of this project includes an integrated web-based tool to improve organizational
performance by setting SMART Goals for employee,evaluating employee performance, recommending
highly competitive compensation plans, managing employee trainings & development and promoting
right employees to critical positions.The primary purpose for an employee to understand that a
performance problem or opportunity for improvement exists.
Java platform, which is used for developing and running distributed java applications.
• HTTP (Hyper Text Transfer Protocol): It is a transaction oriented client/ server protocol
between a web browser and a web server.
• mysql: ver 14.12 Distrib 5.0.75, for Debian- linux -gnu(i486) using readline 5.2 Edition)
Web Server
2.6 Constraints
The system must run on a Unix or Windows 95/98/Me/Xp/NT/2000 operating system. The
system must not have any sort of fatal errors.
The data stored by the system needs to be encrypted in some way.
The system must to create backup files of all saved materials given their critical nature.
create table profile(profile_id int auto_increment NOT NULL,name varchar(30) NOT NULL,age
varchar(30) NOT NULL,gender varchar(30) NOT NULL,date_of_birth varchar(30) NOT
NULL,salary_details varchar(30) NOT NULL,designation varchar(30)NOT NULL,year_of_experience
varchar(30) NOT NULL,department varchar(30) NOT NULL,primary key(profile_id));
create table rating(rating_id int auto_increment NOT NULL,user_id int NOT NULL,lssupervisor_id int
NOT NULL,lsHR_id int NOT NULL,percentage varchar(30) NOT NULL,comment varchar(30) NOT
NULL,datestamp varchar(30) NOT NULL,primary key(rating_id,lssupervisor_id,lshr_id),foreign
key(user_id) references user(user_id));
ER Diagram
2.11 Assumptions and Dependencies :
Although basic password authentication and role based security mechanisms will be
used to protect OPMS from unauthorised access; functionality such as email notifications are assumed
to be
sufficiently protected under the existing security policies applied by the University network
team. Redundant Database is setup as the role of backup Database Server when primary database is
failure.
• Have Hours of Operation that are 24*7:Because System Can be authenticated it can stay
open for 24 hours a day.
• Reduce the cost of sales transaction:To the extend one can automate the sales process
through this system ,one can start to reduce the sales of that sales transaction.
• Make the existing website more Dynamic in nature:Many early web implementation consisted
of static HTML pages.This because it becomes difficult to manage if the number of pages get too
large.Application should serve dynamic user based customized web pages to its client from server.
• Tie the existing website into the existing enterprise system:Any existing website that relies
from the manual duplication of data from another system is one that can be improved.
Online Ticketing
1.1 Purpose:
The purpose of this document is to provide a detailed overview of our software product
“Online Ticketing”.This document describes the project's target audience and its user interface,
hardware and software requirements.
1.2 Scope:
We will trough this work,to understand and explain what is “online ticketing”,the place of
this system electronic business,the different concrete application of such a system in everyday life.
◦ HTTP (Hyper Text Transfer Protocol): It is a transaction oriented client/ server protocol
between a web browser and a web server.
◦ Ajax (Asynchronous Java Script and XML): It is a technique used in java script to
create dynamic web pages.
http://www.redbus.in
http://www.google.com
1.5 Technologies to be used:
• Localization: English
1.6 Overview:
Overall Description:
Specific Requirements:
This section will describe the functions of actors, their roles in the system
and the constraints faced by the system.
Online Ticketing is a web product for running powerful and customized. The
product may also be used also to empower existing websites for online ticketing. The
system contains administration space with functionality for the users to edit their profile,
consult the tickets, manage their Details .
Online Ticketing system uses the front end as Java, Java Server Pages and
HTML at the client side.
Advanced Tools:
Webserver :
Apache Tomcat is used as the web server for the Online Ticketing System.
Back End:
Online Ticketing system uses MySQL Ver 14.12 Distrib 5.0.75 as a back end database.
Login capabilities: The system shall provide the users with logon
capabilities.
• Alert:
Service Provider:
• The provider update his datas.
• Gives the information about the transport like
Origin,Destination,Dates,Price- preferences,transport number.
• Update the transport details.
Admin:
• Application manager manages the entire details about the system and get the updates regularly.
ER Diagram:
Sequence Diagram:
DB Design:
create table role(role_id int NOT NULL,name char(20) NOT NULL,primary key(role_id));
create table address(address_id varchar(20) NOT NULL,street_1 varchar(20) NOT
NULL,street_2 varchar(20) NOT NULL,city_id int NOT NULL,primary
key(address_id),foreign key(city_id)references city(city_id));
Query OK, 0 rows affected (0.00 sec)
Tables_in_ticket
address
city
role
3 rows in set (0.00 sec)
mysql> create table state(state_id int NOT NULL,state_name char(20),country_id int NOT
NULL,primary key(state_id),foreign key(country_id)references country(country_id));
Query OK, 0 rows affected (0.02 sec)
Tables_in_ticket
address
city
role
state
4 rows in set (0.00 sec)
mysql> create table country(country_id int NOT NULL,country_name char(20),primary
key(country_id));
Query OK, 0 rows affected (0.00 sec)
mysql> show tables;
Tables_in_ticket
address
city
country
role
state
5 rows in set (0.01 sec)
mysql> create table user(user_id int NOT NULL,user_name char(20),password varchar(20)NOT
NULL,role_id int NOT NULL,address_id varchar(20)NOT NULL,contact_no int NOT
NULL,primary key(user_id),foreign key(role_id)references role(role_id),foreign
key(address_id)references address(address_id));
Query OK, 0 rows affected (0.01 sec)
mysql> show tables;
Tables_in_ticket
address
city
country
role
state
user
6 rows in set (0.01 sec)
mysql> create table customer(customer_id int NOT NULL,user_id int NOT NULL,address_id
varchar(20)NOT NULL,contact_no int NOT NULL,payment_id int NOT NULL,primary
key(customer_id),foreign key(payment_id)references payment_type(payment_id),foreign
key(address_id)references address(address_id),foreign key(user_id)references user(user_id));
Query OK, 0 rows affected (0.00 sec)
Tables_in_ticket
address
city
country
customer
role
state
user
7 rows in set (0.00 sec)
create table bus_type(type_id int NOT NULL,type_name char(20),description
char(20),transport_id int NOT NULL,no_of_seats int NOT NULL,fare_id int NOT
NULL,foreign key(fare_id)references fare(fare_id),foreign key(transport_id)references
bus(transport_id),primary key(type_id));
Query OK, 0 rows affected (0.01 sec)
show tables;
Tables_in_ticket
address
bus_type
city
country
customer
role
state
user
create table bus(transport_id int NOT NULL,service_id int NOT NULL,customer_id int NOT
NULL,isavailable varchar(20),route_id int NOT NULL,foreign key(route_id)references
route(route_id),foreign key(customer_id)references customer(customer_id),primary
key(transport_id));
Query OK, 0 rows affected (0.01 sec)
mysql> show tables;
Tables_in_ticket
address
bus
bus_type
city
country
customer
role
state
user
Tables_in_ticket
address
bus
bus_type
city
country
Customer role
route
state
user
Tables_in_ticket
address
bus
bus_type
city
country
customer
role
route
state
sub_route
user
Tables_in_ticket
address
book_seat
bus
bus_type
city
country
customer
role
route
state
sub_route
12 rows in set (0.00 sec)
mysql> create table book_ticket(book_ticket_id int NOT NULL,user_id int NOT
NULL,datestamp date,fare_id int NOT NULL,foreign key(user_id)references
user(user_id),primary key(book_ticket_id),foreign key(fare_id)references
fare(fare_id)); Query OK, 0 rows affected (0.01 sec)
mysql> show tables;
Tables_in_ticket
address
book_seat
book_ticket
bus
bus_type
city
country
customer
role
route
state
sub_route
user
13 rows in set (0.00 sec)
mysql> create table online_payment(transaction_id int NOT NULL,creditcard_no int NOT
NULL,expire_date int NOT NULL,code_no int NOT NULL,foreign
key(transaction_id)references transaction(transaction_id));
Query OK, 0 rows affected (0.01 sec)
Tables_in_ticket
address
book_seat
book_ticket
bus
bus_type
city
country
customer
role
route
state
sub_route
user
mysql> create table transaction(transaction_id int NOT NULL,book_ticket_id int NOT
NULL,amount int NOT NULL,payment_type_id int NOT NULL,datestamp date,primary
key(transaction_id),foreign key(book_ticket_id)references book_ticket(book_ticket_id),foreign
key(payment_type_id)references payment_type(payment_type_id));
Query OK, 0 rows affected (0.02 sec)
mysql> show tables;
Tables_in_ticket
address
book_seat
book_ticket
bus
bus_type
city
country
customer
online_payment
role
route
state
sub_route
transaction
user
15 rows in set (0.01 sec)
mysql> create table payment_type(payment_id int NOT NULL,transaction_id int NOT
NULL,payment_type_id int NOT NULL,primary key(payment_type_id),foreign
key(transaction_id)references transaction(transaction_id));
Query OK, 0 rows affected (0.01 sec)
In Usecase diagram there are three actors.Each actor has different activities of their own.
Actors in system are
1. Customer
2. Setrvice Provider
3. Admin
3.2 Supplementary Requirements:
Supplementary requirements for Online Ticketing is Internet. Because this system can run in
online, so we need to internet to access this system.Then we need some softwares to run
this web application.