Skip to content

Commit 2c2b257

Browse files
authored
Create README.md
1 parent cbe41b5 commit 2c2b257

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

‎README.md‎

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
Application Name: Restaurant Reservation System
2+
To run the app in browser : http://localhost:8000/RestaurantReservationApp/
3+
4+
Application created using-
5+
Language: Java 1.8 , J2EE
6+
Database: MySQL 5.7
7+
Server: Tomcat 7.0
8+
9+
Setup MySQL database before running the app-
10+
Database name: restaurantreservation
11+
Username: root
12+
Password: root
13+
Tables to be created:
14+
1) customer
15+
2) day_availability
16+
3) reservation
17+
4) restaurant
18+
19+
create table day_availability
20+
(
21+
day_of_week varchar(15) primary key,
22+
available_tables int
23+
);
24+
25+
26+
insert into day_availability values('Sunday',10);
27+
insert into day_availability values('Monday',10);
28+
insert into day_availability values('Tuesday',10);
29+
insert into day_availability values('Wednesday',10);
30+
insert into day_availability values('Thursday',10);
31+
insert into day_availability values('Friday',10);
32+
insert into day_availability values('Saturday',10);
33+
34+
create table customer
35+
(
36+
cust_id int primary key auto_increment,
37+
cust_name varchar(50),
38+
pswd varchar(50)
39+
);
40+
41+
42+
create table restaurant
43+
(
44+
rest_id int primary key,
45+
rest_name varchar(20)
46+
);
47+
48+
insert into restaurant values(100,'Taj');
49+
create table reservation
50+
(
51+
reservation_id int primary key auto_increment,
52+
restaurant_id int,
53+
customer_id int,
54+
tables_reqd int,
55+
reservation_day varchar(15),
56+
reservation_time time,
57+
foreign key (restaurant_id) references restaurant(rest_id),
58+
foreign key (customer_id) references customer(cust_id),
59+
foreign key (reservation_day) references day_availability(day_of_week)
60+
);
61+
62+
63+

0 commit comments

Comments
 (0)