text: CREATE DATABASE  IF NOT EXISTS `catering` /*!40100 DEFAULT CHARACTER SET latin1 */;
  USE `catering`;
  -- MySQL dump 10.13  Distrib 5.6.13, for Win32 (x86)
  --
  -- Host: 127.0.0.1    Database: catering
  -- ------------------------------------------------------
  -- Server version	5.6.25
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8 */;
  /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  /*!40103 SET TIME_ZONE='+00:00' */;
  /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  /*!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' */;
  /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  
  --
  -- Table structure for table `addons`
  --
  
  DROP TABLE IF EXISTS `addons`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `addons` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `idtrans` int(11) DEFAULT NULL,
    `idaddons_list` int(11) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `addons`
  --
  
  LOCK TABLES `addons` WRITE;
  /*!40000 ALTER TABLE `addons` DISABLE KEYS */;
  /*!40000 ALTER TABLE `addons` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `addons_list`
  --
  
  DROP TABLE IF EXISTS `addons_list`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `addons_list` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `addons_list` varchar(45) DEFAULT NULL,
    `price` varchar(45) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='list of addons item';
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `addons_list`
  --
  
  LOCK TABLES `addons_list` WRITE;
  /*!40000 ALTER TABLE `addons_list` DISABLE KEYS */;
  INSERT INTO `addons_list` VALUES (1,'Photobooth','2000'),(2,'Chairtable','1500'),(3,'Videoke','1000');
  /*!40000 ALTER TABLE `addons_list` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `group`
  --
  
  DROP TABLE IF EXISTS `group`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `group` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(45) DEFAULT NULL COMMENT 'a group name for the user',
    `desciption` varchar(45) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COMMENT='it containes the list of group of the user';
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `group`
  --
  
  LOCK TABLES `group` WRITE;
  /*!40000 ALTER TABLE `group` DISABLE KEYS */;
  INSERT INTO `group` VALUES (1,'sysprog','super user of the website'),(2,'admin','administrator'),(3,'staff','admin staff'),(4,'client','client ');
  /*!40000 ALTER TABLE `group` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `menu`
  --
  
  DROP TABLE IF EXISTS `menu`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `menu` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `menu` varchar(45) DEFAULT NULL,
    `idpackage_list` int(11) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `menu`
  --
  
  LOCK TABLES `menu` WRITE;
  /*!40000 ALTER TABLE `menu` DISABLE KEYS */;
  INSERT INTO `menu` VALUES (1,'Crabmeat Soup',1),(2,'Pancit Canton',1),(3,'Chicken and Lemon Sauce',1),(4,'Fish Fillet with Garlic',1),(5,'Sweet and Sour Pork',1),(6,'Fried Beancurd Salt and Pepper',1),(7,'Buchi',1),(8,'Steam Rice',1),(9,'ce Tea',1),(10,'Hotatai Soup',2),(11,'Mixed Green Salad',2),(12,'Soy Chicken',2),(13,'Sweet and Sour Pork',2),(14,'Beep Broccoli',2),(15,'Fish Fillet woth Tausi',2),(16,'Birthday Noodles',2),(17,'Salt and Pepper Tofu',2),(18,'Ice Tea Unlimited',2);
  /*!40000 ALTER TABLE `menu` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `package`
  --
  
  DROP TABLE IF EXISTS `package`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `package` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `iduser` int(11) DEFAULT NULL,
    `idtrans` int(11) DEFAULT NULL COMMENT 'id of transaction ( if null the user are used catering only)',
    `idpackage_list` int(11) DEFAULT NULL COMMENT 'id of the package came from package list',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='package transaction';
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `package`
  --
  
  LOCK TABLES `package` WRITE;
  /*!40000 ALTER TABLE `package` DISABLE KEYS */;
  /*!40000 ALTER TABLE `package` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `package_list`
  --
  
  DROP TABLE IF EXISTS `package_list`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `package_list` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `package` varchar(45) DEFAULT NULL,
    `price` varchar(45) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `package_list`
  --
  
  LOCK TABLES `package_list` WRITE;
  /*!40000 ALTER TABLE `package_list` DISABLE KEYS */;
  INSERT INTO `package_list` VALUES (1,'Package A','1024'),(2,'Package B','3512');
  /*!40000 ALTER TABLE `package_list` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `registration`
  --
  
  DROP TABLE IF EXISTS `registration`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `registration` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `iduser` int(11) DEFAULT NULL,
    `first_name` varchar(45) DEFAULT NULL,
    `middle_name` varchar(45) DEFAULT NULL,
    `last_name` varchar(45) DEFAULT NULL,
    `contact_num` varchar(45) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='it contained the basic information of the user';
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `registration`
  --
  
  LOCK TABLES `registration` WRITE;
  /*!40000 ALTER TABLE `registration` DISABLE KEYS */;
  INSERT INTO `registration` VALUES (1,1,'system',NULL,'administrator',NULL);
  /*!40000 ALTER TABLE `registration` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `transaction`
  --
  
  DROP TABLE IF EXISTS `transaction`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `transaction` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `iduser` int(11) DEFAULT NULL,
    `event` varchar(45) DEFAULT NULL,
    `date` date DEFAULT NULL,
    `time` time DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `transaction`
  --
  
  LOCK TABLES `transaction` WRITE;
  /*!40000 ALTER TABLE `transaction` DISABLE KEYS */;
  /*!40000 ALTER TABLE `transaction` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `user`
  --
  
  DROP TABLE IF EXISTS `user`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `user` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `username` varchar(45) DEFAULT NULL,
    `password` varchar(100) DEFAULT NULL,
    `email` varchar(45) DEFAULT NULL,
    `status` int(11) DEFAULT NULL,
    `date_register` date DEFAULT NULL,
    `time_register` time DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COMMENT='it contained the security information of the user (e,g username and password)';
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `user`
  --
  
  LOCK TABLES `user` WRITE;
  /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  INSERT INTO `user` VALUES (1,NULL,'$2y$10$vh9GT0OhnVtrHKcIAgPIIOWwT84jrABk6HhlgH1Cyi2af8i70wPyC','admin@admin.com',0,'2018-08-18','02:27:42');
  /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `user_group`
  --
  
  DROP TABLE IF EXISTS `user_group`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `user_group` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `group_id` int(11) DEFAULT NULL,
    `user_id` int(11) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COMMENT='this table containes the relation of the user table and the group table. it will determine the group of the user. ';
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `user_group`
  --
  
  LOCK TABLES `user_group` WRITE;
  /*!40000 ALTER TABLE `user_group` DISABLE KEYS */;
  INSERT INTO `user_group` VALUES (1,2,1);
  /*!40000 ALTER TABLE `user_group` ENABLE KEYS */;
  UNLOCK TABLES;
  /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  
  /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  
  -- Dump completed on 2018-08-19 15:14:34
  