text: -- MySQL dump 10.13  Distrib 5.7.9, for Win64 (x86_64)
  --
  -- Host: 127.0.0.1    Database: whopay_db
  -- ------------------------------------------------------
  -- Server version	5.7.9
  
  /*!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 `item`
  --
  
  DROP TABLE IF EXISTS `item`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `item` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `receipt_id` int(11) NOT NULL,
    `name` varchar(45) NOT NULL,
    `cost` float NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `item`
  --
  
  LOCK TABLES `item` WRITE;
  /*!40000 ALTER TABLE `item` DISABLE KEYS */;
  INSERT INTO `item` VALUES (1,1,'POKKA LEMON TEA500M_',1.2),(2,1,'POKKA LEMON TEA500M_',1.2),(3,1,'TO T/CHP-R/ST 283.5G',5.45),(4,1,'TOS SAL DIP-HOT439.4',5.45),(5,1,'M SP MSHRM B/NDL116G',1.4),(6,1,'NS BIG BWL-M0\'RM 117G',1.45),(7,1,'NS BIG BWL-M0\'RM 117G',1.45),(8,1,'N C/N-BK PEPR CRB81G',1.5),(9,1,'NIS CUP NDL-T/Y 75G',1.5);
  /*!40000 ALTER TABLE `item` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `receipt`
  --
  
  DROP TABLE IF EXISTS `receipt`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `receipt` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `code` varchar(45) NOT NULL,
    `submitted` int(11) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `receipt`
  --
  
  LOCK TABLES `receipt` WRITE;
  /*!40000 ALTER TABLE `receipt` DISABLE KEYS */;
  INSERT INTO `receipt` VALUES (1,'VC3439',0);
  /*!40000 ALTER TABLE `receipt` 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,
    `receipt_id` int(11) NOT NULL,
    `name` varchar(45) NOT NULL,
    `is_ready` int(11) NOT NULL DEFAULT '0',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
  /*!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,1,'Oswell',1),(2,1,'Kk',1),(3,1,'yip',1),(4,1,'Victor',1);
  /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `user_item`
  --
  
  DROP TABLE IF EXISTS `user_item`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `user_item` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `receipt_id` int(11) NOT NULL,
    `user_id` int(11) NOT NULL,
    `item_id` int(11) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `user_item`
  --
  
  LOCK TABLES `user_item` WRITE;
  /*!40000 ALTER TABLE `user_item` DISABLE KEYS */;
  INSERT INTO `user_item` VALUES (1,1,1,1),(2,1,1,3),(3,1,1,4),(4,1,1,7),(5,1,1,8),(6,1,2,3),(7,1,2,7),(8,1,2,9),(9,1,3,3),(10,1,3,4),(11,1,3,5),(12,1,3,6),(13,1,4,2),(14,1,4,3),(15,1,4,4),(16,1,4,6),(17,1,4,9);
  /*!40000 ALTER TABLE `user_item` 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 2016-01-24 10:48:37
  