You are on page 1of 9

ER-DIAGRAM

Database Diagram

1. Registeration

create table emp_registration (emp_id int identity(1090,1) primary key , field varchar(50) not null, emp_password varchar(50), confirm_password varchar(50), check(emp_password=confirm_password) ); select * from emp_registration; insert into emp_registration values('user','ajay','ajay')

2. Customer Detail Table

create table cus_detail (cus_id [int] Primary key identity(1,1), cus_name varchar(50) not null, cus_address varchar(50) not null, cus_email varchar(50), cus_doj datetime not null, cus_status varchar(50) not null, cus_occu varchar(50), cus_phoneno numeric(10,0) not null )

3. Member Detail Table

create table member_detail (member_id [int] Primary key identity(1,1), member_name varchar(50) not null, member_address varchar(50) not null, member_email varchar(50), member_doj datetime not null, member_status varchar(50) not null, member_occu varchar(50), member_phoneno numeric(10,0) not null, membership varchar(50)) select * from member_detail; insert into member_detail values('Rama Singh','4001/2 Anky Colony NewDelhi','','6-202009','inactive','Housewife',9167121521,'VVIP' );

4. Hotel Detail

create table hotel_detail ( hotel_id int primary key identity(1,1), hotel_name varchar(100) not null, hotel_address varchar(MAX) not null, meeting_person varchar(MAX), phone integer, email varchar(100), website varchar(MAX), hotel_details varchar(MAX) not null, no_of_employee integer not null ); select * from hotel_detail; insert into hotel_detail values ( 'JW Marriot', 'Plaza Road,Jaipur', 'Ajay Singh', 984556323, 'ajayantarctic@ymail.com', '', 'It is in the Pink city of India', '237');

5. Booking Detail

create table booking_detail (hotl_id int foreign key references hotel_detail(hotel_id), booking_date datetime not null, mode_of_booking varchar(50) not null, cust_from varchar(50) not null, to_hotel varchar(50) not null, cust_name varchar(50)not null, email varchar(50) not null, phone integer ) select * from booking_detail; insert into booking_detail values (2,'4-4-2010', 'online', 'Moga', 'ludhiana', 'Hitesh', 'hitesh_07@yahoo', 996543665);

6. Room Detail Table

create table room_detail (hotel_id integer foreign key references hotel_detail(hotel_id), room_no integer, booking_date datetime, hotel_floor integer, mode_booking varchar(30), cus_from varchar(50), cus_to varchar(50), requirement_detail varchar(MAX), cus_state varchar(50), cus_name varchar(100), phoneno integer ); select * from room_detail; insert into room_detail values (2,24,'1-16-2010',2,'manual','moga','Mumbai', 'Swimming Pool,AC','Punjab','Bajrang','867546789' )

7. Checkout detail table

create table checkout_detail (hotel_id integer foreign key references hotel_detail(hotel_id), room_no integer, booking_date datetime, hotel_floor integer, mode_booking varchar(30), check_indate datetime, check_out datetime, checkout_bill_depth integer, cus_state varchar(50), cus_name varchar(100), phoneno integer ) select * from checkout_detail

You might also like