Sei sulla pagina 1di 8

/*

SQLyog Enterprise Trial - MySQL GUI v7.11


MySQL - 5.0.24-community-nt : Database - mumbai
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0
*/;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`mumbai` /*!40100 DEFAULT CHARACTER SET
latin1 */;
USE `mumbai`;
/*Table structure for table `account` */
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
`deptId` varchar(100) NOT NULL,
`expenses` double NOT NULL,
`income` double NOT NULL,
PRIMARY KEY (`deptId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `account` */
/*Table structure for table `advance_booking` */
DROP TABLE IF EXISTS `advance_booking`;
CREATE TABLE `advance_booking` (
`customerId` varchar(100) NOT NULL,
`checkinDate` date NOT NULL,
`package` double NOT NULL,
`roomNo` varchar(100) NOT NULL,
`checkoutDate` date NOT NULL,
`totalMembers` int(11) NOT NULL,
`memberNames` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `advance_booking` */
insert into `advance_booking`(`customerId`,`checkinDate`,`package`,`roomNo`,`ch
eckoutDate`,`totalMembers`,`memberNames`) values ('c1','2011-02-05',145,'1','201
1-03-01',2,'vishwesh|sumeet|'),('c2','2011-02-23',152,'2','2011-02-28',4,'sumit|
'),('c3','2011-02-20',1254,'1','2011-02-25',4,'rashi|'),('c4','2011-02-05',145,'
1','2011-03-01',2,'vishwesh|sumeet|'),('c5','2011-02-17',1245,'2','2011-02-21',2
,'aamir|'),('c2','2011-04-04',14500,'1','2011-04-11',1,'amit singh|'),('c7','201
1-06-08',14500,'1','2012-07-01',4,'afad|sdfsdf|dfsf|sdfsd|');
/*Table structure for table `agent` */
DROP TABLE IF EXISTS `agent`;

CREATE TABLE `agent` (


`id` varchar(100) NOT NULL,
`service` varchar(100) NOT NULL,
`contactNo` double NOT NULL,
`emailId` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`package` varchar(100) default NULL,
`name` varchar(200) default NULL,
`address` varchar(500) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `agent` */
insert into `agent`(`id`,`service`,`contactNo`,`emailId`,`password`,`package`,`
name`,`address`) values ('a0','Railways',2409319,'a0@gmail.com','agent0','1000',
'vivek','m.g road,indore'),('a1','airlines',2400689,'a1@gmail.com','agent1','325
0','vishal','A.B road, indore'),('a2','airlines',3698273,'a2@yahoo.com','agent2'
,'1200','sumit','23 kalani bagh'),('a3','Roadways',4250000,'a3@rediff.com','agen
t3','5000','sumeet','39, gandhinagar');
/*Table structure for table `contract` */
DROP TABLE IF EXISTS `contract`;
CREATE TABLE `contract` (
`id` varchar(100) NOT NULL,
`supplierId` varchar(100) NOT NULL,
`productDetails` varchar(100) NOT NULL,
`date` date NOT NULL,
`totalAmount` double NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `contract` */
/*Table structure for table `contract_history` */
DROP TABLE IF EXISTS `contract_history`;
CREATE TABLE `contract_history` (
`contractId` varchar(100) NOT NULL,
`supplierId` varchar(100) NOT NULL,
`amount` double NOT NULL,
`date` date NOT NULL,
PRIMARY KEY (`contractId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `contract_history` */
/*Table structure for table `current_status` */
DROP TABLE IF EXISTS `current_status`;
CREATE TABLE `current_status` (
`customerId` varchar(100) NOT NULL,
`roomNo` varchar(100) NOT NULL,
`checkinDate` date NOT NULL,
`curAmtPayable` double NOT NULL,
`totalMembers` int(11) NOT NULL,

`memberNames` varchar(100) NOT NULL,


`checkoutDate` date default NULL,
PRIMARY KEY (`customerId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `current_status` */
insert into `current_status`(`customerId`,`roomNo`,`checkinDate`,`curAmtPayable
`,`totalMembers`,`memberNames`,`checkoutDate`) values ('c1','1','2011-05-18',200
,2,'vishwesh|sumit|','2011-05-20'),('c2','1','2011-05-18',1000,4,'Rashi|shalini|
tina|','2011-05-20'),('c3','1','2011-05-18',1457,4,'Amit|','2011-02-10'),('c4','
2','2011-05-18',110,3,'Ravi|','2011-05-20'),('c5','2','2011-05-18',50,2,'Aditya|
ayush|','2011-05-21');
/*Table structure for table `department` */
DROP TABLE IF EXISTS `department`;
CREATE TABLE `department` (
`id` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`head` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `department` */
insert into `department`(`id`,`name`,`head`) values ('d8','sumit','GM');
/*Table structure for table `emp_profile` */
DROP TABLE IF EXISTS `emp_profile`;
CREATE TABLE `emp_profile` (
`empId` varchar(100) NOT NULL,
`credits` varchar(100) NOT NULL default '',
`lastUpdated` date NOT NULL,
PRIMARY KEY (`empId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `emp_profile` */
insert into `emp_profile`(`empId`,`credits`,`lastUpdated`) values ('e1','9','20
11-05-08'),('e2','10','2011-05-10');
/*Table structure for table `employee` */
DROP TABLE IF EXISTS `employee`;
CREATE TABLE `employee` (
`id` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`gender` varchar(100) NOT NULL,
`address` varchar(100) NOT NULL,
`contactNo` double NOT NULL,
`emailId` varchar(100) NOT NULL,
`deptId` varchar(100) NOT NULL,
`joiningDate` date NOT NULL,
`salary` double NOT NULL,
`designation` varchar(100) NOT NULL,

`password` varchar(100) NOT NULL,


PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `employee` */
insert into `employee`(`id`,`name`,`gender`,`address`,`contactNo`,`emailId`,`de
ptId`,`joiningDate`,`salary`,`designation`,`password`) values ('e1','sumit','mal
e','2,gandhi nagar',2400654,'e1@gmail.com','d8','2010-02-15',14578,'Executive','
e1emp'),('e2','sumeet','male','27,grant road',2467567,'e2@gmail.com','d7','201003-21',45326,'employee','e2emp'),('e3','Riya','female','12,m.g road',3259890,'e3
@yahoo.com','d5','2000-01-25',45326,'employee','e3emp'),('gm','vishwesh','male',
'34/3,palasia',985623541,'e4@yahoo.com','d3','1990-05-10',100000,'General Manage
r','genman'),('ma','tapan','male','31,samvid nagar',789789789,'e5@rediff.com','d
9','1990-06-10',10000,'Assistant Manager','aman');
/*Table structure for table `food_accounts` */
DROP TABLE IF EXISTS `food_accounts`;
CREATE TABLE `food_accounts` (
`orderNo` varchar(100) NOT NULL,
`customerId` varchar(100) NOT NULL,
`date` date NOT NULL,
`billAmount` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `food_accounts` */
insert into `food_accounts`(`orderNo`,`customerId`,`date`,`billAmount`) values
('01','c2','2011-05-28',0),('o1','c3','2011-05-18',1000),('o2','c3','2011-05-18'
,200),('o3','c4','2011-05-18',1400),('o4','c2','2011-05-23',800),('o5','c2','201
1-05-23',670),('o6','c1','2011-05-23',300),('o7','c2','2011-05-23',400),('o9','c
1','2011-05-14',1200),('o1','c2','2011-05-28',0),('o2','c1','2011-05-28',0),('01
','c','2011-05-28',0),('null','null','2011-05-28',0);
/*Table structure for table `food_articles` */
DROP TABLE IF EXISTS `food_articles`;
CREATE TABLE `food_articles` (
`id` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`price` double NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `food_articles` */
insert into `food_articles`(`id`,`name`,`price`) values ('1','chilly paneer',67
),('2','hakka noodles',50),('3','dal makhani',60),('4','tava roti',78);
/*Table structure for table `food_order_details` */
DROP TABLE IF EXISTS `food_order_details`;
CREATE TABLE `food_order_details` (
`orderNo` varchar(100) NOT NULL,
`customerId` varchar(100) NOT NULL,
`foodId` varchar(1000) NOT NULL,

`status` varchar(100) NOT NULL,


`quantity` varchar(1000) default NULL,
`time` time default NULL,
`totalAmount` double default NULL,
PRIMARY KEY (`orderNo`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `food_order_details` */
insert into `food_order_details`(`orderNo`,`customerId`,`foodId`,`status`,`quan
tity`,`time`,`totalAmount`) values ('o3','c3','3|5|','Not Delivered','12|1|','02
:36:18',810),('o4','c2','chilly paneer|hakka noodles|','Not Delivered','12|3|','
15:26:48',954),('o5','c2','chilly paneer|hakka noodles|','Not Delivered','12|44|
','20:35:24',3004),('o6','c8','chilly paneer|hakka noodles|','Not Delivered','1|
2|','18:52:57',167);
/*Table structure for table `forgotpassword` */
DROP TABLE IF EXISTS `forgotpassword`;
CREATE TABLE `forgotpassword` (
`id` varchar(100) default NULL,
`emailId` varchar(100) default NULL,
`password` varchar(100) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `forgotpassword` */
/*Table structure for table `general_manager` */
DROP TABLE IF EXISTS `general_manager`;
CREATE TABLE `general_manager` (
`hotelId` varchar(100) NOT NULL,
`empId` varchar(100) NOT NULL,
PRIMARY KEY (`hotelId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `general_manager` */
insert into `general_manager`(`hotelId`,`empId`) values ('h1','gm1');
/*Table structure for table `hotel` */
DROP TABLE IF EXISTS `hotel`;
CREATE TABLE `hotel` (
`id` varchar(100) NOT NULL,
`city` varchar(100) NOT NULL,
`address` varchar(100) NOT NULL,
`webAddress` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `hotel` */
insert into `hotel`(`id`,`city`,`address`,`webAddress`) values ('h1','indore','
20,vaijay nagar','ind@grp.com'),('h2','mumbai','443,mira road','mum@grp.com');
/*Table structure for table `quotation` */

DROP TABLE IF EXISTS `quotation`;


CREATE TABLE `quotation` (
`tenderNo` varchar(100) NOT NULL,
`supplierId` varchar(100) NOT NULL,
`price` varchar(1000) default NULL,
PRIMARY KEY (`tenderNo`,`supplierId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `quotation` */
insert into `quotation`(`tenderNo`,`supplierId`,`price`) values ('12','s0','700
000|54000|45000|400|'),('12','s1','150000|150000|15090|15009|'),('12','s2','3300
00|40000|150000|60000|'),('13','s0','780000|'),('13','s1','2222|'),('13','s2','4
54500|'),('14','s0','5656000|'),('14','s2','45000|'),('14','s5','340000|');
/*Table structure for table `reservation` */
DROP TABLE IF EXISTS `reservation`;
CREATE TABLE `reservation` (
`id` varchar(100) NOT NULL default '',
`customerId` varchar(100) NOT NULL default '',
`agentId` varchar(100) default NULL,
`date` date default NULL,
`charge` double default NULL,
`status` varchar(100) default NULL,
`name` varchar(1000) default NULL,
`age` varchar(100) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `reservation` */
insert into `reservation`(`id`,`customerId`,`agentId`,`date`,`charge`,`status`,
`name`,`age`) values ('a0','c3','a0','2011-02-18',122,'0','sumit singh|','22|'),
('r4','c3','a4','2010-05-05',3400,'confirmed','sumit|','21|');
/*Table structure for table `reservation_history` */
DROP TABLE IF EXISTS `reservation_history`;
CREATE TABLE `reservation_history` (
`reservationId` varchar(100) NOT NULL,
`customerId` varchar(100) NOT NULL,
`agentId` varchar(100) NOT NULL,
`date` date NOT NULL,
`charge` double NOT NULL,
PRIMARY KEY (`reservationId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `reservation_history` */
/*Table structure for table `room_history` */
DROP TABLE IF EXISTS `room_history`;
CREATE TABLE `room_history` (
`customerId` varchar(100) NOT NULL,

`roomNo` varchar(100) NOT NULL,


`checkinDate` date NOT NULL,
`checkoutDate` date NOT NULL,
`totalAmountPaid` double NOT NULL,
PRIMARY KEY (`customerId`,`checkinDate`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `room_history` */
/*Table structure for table `roomavl` */
DROP TABLE IF EXISTS `roomavl`;
CREATE TABLE `roomavl` (
`roomNo` varchar(100) NOT NULL,
`class` varchar(100) NOT NULL,
`package` double NOT NULL,
`occupiedFlag` varchar(100) NOT NULL,
`floor` varchar(100) NOT NULL,
PRIMARY KEY (`roomNo`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `roomavl` */
insert into `roomavl`(`roomNo`,`class`,`package`,`occupiedFlag`,`floor`) values
('1','b',14500,'0','14'),('2','a',32000,'1','12');
/*Table structure for table `sign` */
DROP TABLE IF EXISTS `sign`;
CREATE TABLE `sign` (
`id` varchar(100) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `sign` */
/*Table structure for table `supplier` */
DROP TABLE IF EXISTS `supplier`;
CREATE TABLE `supplier` (
`id` varchar(100) NOT NULL,
`companyName` varchar(100) NOT NULL,
`products` varchar(100) NOT NULL,
`contactNo` double NOT NULL,
`emailId` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`address` varchar(500) NOT NULL,
`name` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `supplier` */
insert into `supplier`(`id`,`companyName`,`products`,`contactNo`,`emailId`,`pas
sword`,`address`,`name`) values ('s0','L&T group of companies','t.v sets',309099
0,'s0@gmail.com','s0supplier','32,gandhi nagar','Vishal'),('s1','HT group of com
panies','furniture',3450004,'s2@gmail.com','s1supplier','222,grant road','Rajat'
),('s2','sun pvt.ltd','food raw materials',90997987,'s2@rediff.com','s2supplier'

,'12,m.g road','Joy');
/*Table structure for table `tender` */
DROP TABLE IF EXISTS `tender`;
CREATE TABLE `tender` (
`tenderNo` varchar(50) NOT NULL,
`items` varchar(1000) default NULL,
`quantity` varchar(1000) default NULL,
`lastDate` date default NULL,
PRIMARY KEY (`tenderNo`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `tender` */
insert into `tender`(`tenderNo`,`items`,`quantity`,`lastDate`) values ('12','A|
B|C|D|','100|90|50|200|','2011-10-16'),('13','F|','500|','2011-10-04'),('14','K|
','450|','2011-07-08'),('15','J|','340|','2011-07-09'),('16','G|','230|','2011-0
7-01');
/*Table structure for table `transaction` */
DROP TABLE IF EXISTS `transaction`;
CREATE TABLE `transaction` (
`id` varchar(100) NOT NULL,
`name` varchar(100) default NULL,
`password` varchar(100) default NULL,
`balance` double default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `transaction` */
insert into `transaction`(`id`,`name`,`password`,`balance`) values ('t1','sumit
','sumit',1998879),('t2','vishwesh','vishwesh',1998879);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;

Potrebbero piacerti anche