Beruflich Dokumente
Kultur Dokumente
Administrator
Travel Trourism
users
This DFD explains about the relationship between the administrator and users using st@ynfly.com. The software gives response to the user according to their requests.
Here Administrator logins into the website by verifying the username and password from the administrator table. If it is a valid one then the administrator is allowed to enter the administrator home page.
E_R DIAGRAM
3.4 DATABASE For this project to be implemented, we have to use different tables for the storage of data relating to administrator, client, employee, projects etc. Some of the tables include User_Details, Agency_Master, Hotel_Master, Package, Reservation _Tab, Room Master, Veh_Reservation, Veh_Details, Log_Tab, and Hotel Category. The detailed explanation of each table is given below. Table:Log_Tab Primary key: Log_id This table stores the user name and password of any user and from this table we get the user type.
Length 9
Table: User_Details Primarykey: User_id This table stores the details of a registered user Field Name User_id Name Address Phone E_mail Data Type Numeric varchar varchar varchar varchar Length Description Indicates the unique id of user. 9 Denote name of user. 60 300 15 This gives the email of a user. 50 This field is the address of user. It indicates the phone number.
Table:Hotel_Master Primary key: Hotel_id. Foreign key: Catid. This table stores the details of different hotels in different location. Field Name Hotel_id Hotel_name Address City State Country Catid Phone E_mail Description Data type numeric varchar varchar varchar varchar varchar numeric varchar varchar varchar Length 9 60 600 50 50 50 9 15 50 600 Description Unique id of hotel. name of hotel address of hotel city state Indicate the country category id phone number Denote the email id of hotel Describe the peculiarity of hotel
Table: Hotel_Category Primary key: Catid This table stores about the category of the hotel. Category is provided by the administrator. Field Name Catid Category Description Table: package Primary key: Package_id. Foreignkey: Hotel_id. This table stores about the details of different packages given by different hotels. Packages are entered by administrator. Field Name Package_id Hotel_id Package_name No_person Types Rate Days Last_date Data type numeric numeric varchar numeric varchar numeric varchar datetime Length 9 9 60 9 50 9 300 8 Description Package id Hotel id Package name No of persons Type of room Rate per room For how many days Last date of the package Data Type numeric varchar varchar Length 9 Category of hotel 20 Gives the peculiarity of a 100 category Description Category id
Table: Room_Master Foreign key: Hotel_id This table stores the details of different rooms available in hotels. Field Name Hotel_id Room_con Room_type Room_rate No_rooms Data type numeric varchar varchar numeric numeric Length 9 50 50 9 9 Description Hotel id Indicate A/C or Non-A/C Indicate single or double room Rate per room No of rooms for a hotel.
Table: Agen_Master Primarykey: Agen_id.This tables stores the details of agencies registered in the site. Agencies are providing the vehicles. Fieldname Agen_id Name Address Estd_date Phone E_mail Description Data type Numeric Varchar Varchar Datetime Varchar Varchar Varchar Length 9 60 600 8 15 30 600 Description Agency id Agency name Address Established date Phone number email Description about agency
Table: Veh_Details Primary key: Veh_id, Foreign key: Agen_id.This table stores the details of vehicles provided different agencies
Length 9 60 50 9 9 9 50
Description Vehicle id Name of vehicle Indicate vehicle is a/c or not Agency id No of seats Charge per vehicle Vehicle number
Table: Veh_Reservation Primary key: Veh_tran_id, Foreign key: Agen_id, Veh_id.This table stores the details of vehicles reserved by user. Here the vehicles are reserved as a whole. Fieldname Veh_tran_id Agen_id Veh_id From_date To_date Res_date Cerdit_no User_name Data type Numeric Numeric Numeric Datetime Datetime Datetime Varchar Varchar Length 9 9 9 8 8 8 20 30 Description Reserved vehicle id Agency id Vehicle id Reserved for which date Reserved upto which date Reservation date Credit number User name
Table name: Reservation_Tab primary key: Trans_id. This table stores the details of rooms reserved. Only registered user can reserve rooms.
Field Name Trans_id User_name Hotel_id Room_con Room_type Reserv_date From_date To_date No_rooms Credit_no
Data Type Length Numeric 9 Varchar 30 Numeric 9 Varchar 50 Varchar 30 Datetime 8 Datetime 8 Datetime 8 Numeric 9 Varchar 20
Description Transaction id User name Hotel id A/C or Non A/C Single or double room Reservation date From which date onwards reserved Up to which date reserved No of rooms Credit no