text: # ************************************************************
  # Sequel Pro SQL dump
  # Version 4541
  #
  # http://www.sequelpro.com/
  # https://github.com/sequelpro/sequelpro
  #
  # Host: 127.0.0.1 (MySQL 5.6.38)
  # Database: tidehunter
  # Generation Time: 2018-04-22 06:33:14 +0000
  # ************************************************************
  
  
  /*!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 */;
  /*!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 */;
  
  
  # Dump of table gallery
  # ------------------------------------------------------------
  
  DROP TABLE IF EXISTS `gallery`;
  
  CREATE TABLE `gallery` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `userId` int(11) NOT NULL,
    `type` varchar(45) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `fk_gallery_user_idx` (`userId`),
    CONSTRAINT `fk_gallery_user` FOREIGN KEY (`userId`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8;
  
  LOCK TABLES `gallery` WRITE;
  /*!40000 ALTER TABLE `gallery` DISABLE KEYS */;
  
  INSERT INTO `gallery` (`id`, `userId`, `type`)
  VALUES
  	(46,46,'Art');
  
  /*!40000 ALTER TABLE `gallery` ENABLE KEYS */;
  UNLOCK TABLES;
  
  
  # Dump of table image
  # ------------------------------------------------------------
  
  DROP TABLE IF EXISTS `image`;
  
  CREATE TABLE `image` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `galleryId` int(11) NOT NULL,
    `fileName` varchar(255) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `fk_image_gallery_idx` (`galleryId`),
    CONSTRAINT `fk_image_gallery` FOREIGN KEY (`galleryId`) REFERENCES `gallery` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  
  LOCK TABLES `image` WRITE;
  /*!40000 ALTER TABLE `image` DISABLE KEYS */;
  
  INSERT INTO `image` (`id`, `galleryId`, `fileName`)
  VALUES
  	(2,46,'IMAGE_5ad9e94d49cb2-20182004012117pm.jpg'),
  	(3,46,'IMAGE_5ad9e94d4a850-20182004012117pm.jpg');
  
  /*!40000 ALTER TABLE `image` ENABLE KEYS */;
  UNLOCK TABLES;
  
  
  # Dump of table user
  # ------------------------------------------------------------
  
  DROP TABLE IF EXISTS `user`;
  
  CREATE TABLE `user` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `username` varchar(45) NOT NULL,
    `password` varchar(45) DEFAULT NULL,
    `authKey` varchar(255) DEFAULT NULL,
    `accessToken` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8;
  
  LOCK TABLES `user` WRITE;
  /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  
  INSERT INTO `user` (`id`, `username`, `password`, `authKey`, `accessToken`)
  VALUES
  	(46,'anggal',NULL,NULL,NULL);
  
  /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  UNLOCK TABLES;
  
  
  
  /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;
  