/*
Navicat MySQL Data Transfer

Source Server         : localhost_3306
Source Server Version : 50519
Source Host           : localhost:3306
Source Database       : bookstore

Target Server Type    : MYSQL
Target Server Version : 50519
File Encoding         : 65001

Date: 2023-07-02 19:58:07
*/


-- ----------------------------
-- Table structure for `access`
-- ----------------------------
CREATE TABLE `access` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `device` varchar(255) DEFAULT NULL,
  `sec_token` longtext,
  `lastlog` datetime DEFAULT NULL,
  `details` mediumtext,
  `childmode` varchar(5) DEFAULT NULL,
  `cm_pw` longtext,
  `cm_update` datetime DEFAULT NULL,
  `actionuser` varchar(45) DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_access_user1_idx` (`user_id`),
  CONSTRAINT `fk_access_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of access
-- ----------------------------
INSERT INTO `access` VALUES ('6', 'HUAWEIMYA-U29  6.0', '56|BeiDFnvFUXVE6Qd0W1gQKf2rgI6qCGlLogU6ind2lxHx6XPHYe0yOdFQnELxm43m3Cyin0WYkm9SGMYOVAzHQKMoCRRYtDlmph7rR3JJVIf2yCpZM15iJY6vD4BtbxFApkGsiSvHI1tpuhlLg05udNzRxpmwLvDeB0iASaYtnXye34OumwQJGYtQQTNVU1n', '2023-03-16 21:02:54', 'HUAWEIMYA-U29-Manufacture:HUAWEI-Host:WUH1000093732-Version release:6.0', null, null, null, null, '2', '26');
INSERT INTO `access` VALUES ('11', 'HUAWEIMYA-U29  6.0', '61|3DgmYaRGnUVsFjvT07VCoTQgEIGEzm3ArIxYsTO5RNisk6QH4SKpnCyaR2pMjEOXfySCLEuu5w2wjbaI5004zy3SdRqbz5Xv06jCkRDjCZNckBvyp2slQ0yfWA47AMTNUK3SawYDXLL0sg7r53YHnHBosagGHI40oBMX8nUrU1X1ePxWvNAIMBOxprWlKgy', '2023-03-16 21:34:39', 'HUAWEIMYA-U29-Manufacture:HUAWEI-Host:WUH1000093732-Version release:6.0', null, null, null, null, '2', '26');
INSERT INTO `access` VALUES ('12', 'HUAWEIMYA-U29  6.0', '62|hJ5A4QVDIJVCI64KEeE73aEu4oEOLDqY9c3CuGjkM9zXsvSemXK2cX8GJfKJbieRGlBvIGqyaqncqKiFpmjBnBmUwXwWW4gsf5NIXiX0GeP607xfKWgpGZfS7UGz1ETqT3VP3F2l77wTtLA71k07lHy1VGlYl3RjOPja8IF310b6JYq2mo6yEn0gvrTExIl', '2023-04-13 00:02:38', 'HUAWEIMYA-U29-Manufacture:HUAWEI-Host:WUH1000093732-Version release:6.0', null, null, null, null, '2', '26');
INSERT INTO `access` VALUES ('13', 'HUAWEIMYA-U29  6.0', '63|NdmA291gA1g3CeRl8DmjrXrFFI0E5M5hFu3G8sSFGoXOTyF2fsFph7Yierzr4TAAGbKOFNuXrtQuG06AMf4dVqZa92QdxCr67cemd2IRe0gxAYbk5wpDpfrmMyG6k4tTWTg4i2VxVt6fWkpTmLwpqSyFyNinkAEbyse5B4nYUUBOG6ohGLm77L07fd7lXnK', '2023-03-20 22:00:29', 'HUAWEIMYA-U29-Manufacture:HUAWEI-Host:WUH1000093732-Version release:6.0', null, null, null, null, '2', '27');
INSERT INTO `access` VALUES ('14', 'HUAWEIMYA-U29  6.0', '64|Tuohvf94Cw5fbg5jzfa4LYumN04HgYE7Zxu5b3Mg2oToHUrGxLBZdn3447TvgLT95dvglasm0gCPr08Ach1EFZkQG5v4wKSnXZjpUeD7TNqYDpxHJPhfzW5oBlgEHsNFtnJREz8LqrOLB4KHnvAU7vKUV0gQhKMpbPz2HRbFz5L2UstsmiSLMGfbpv7s2Ze', '2023-03-16 21:37:37', 'HUAWEIMYA-U29-Manufacture:HUAWEI-Host:WUH1000093732-Version release:6.0', null, null, null, null, '2', '1');
INSERT INTO `access` VALUES ('18', 'HUAWEIJKM-LX2  9', '68|X21qwFXnPgadpwwKh7sCDZRdbVLGEhgVEeMvAg4csMPffpg9jpf7kYS8MaDwFqDmkRvbnM8wXa8KgwpKIKOxAn0K80YfMnBBagSPVY6aihuoJkYuMywPI8d3asj2pC3N5LAgOCOSFw5FxFs0pa5I8k8tTWZNlntA9Tqpi4iufjwNSGKqPEGxjgHmRUciS7x', '2023-04-21 00:33:16', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, null, null, null, '2', '26');
INSERT INTO `access` VALUES ('19', 'HUAWEIJKM-LX2  9', '69|EngXbmOQO7kSr9wcwqjJNzWJF21AoLRQrdW45Ft7Tl8fAHWSMMh4RKfZSZHnVa8HblkTX5sza9dAIqHBs6aLQVaLfx8PHVxLMoYoE0eCox0TDZBSWdLyp1gthss4IZ0nfmQmsyRUL2E5tVOjn302RSjskEAIICOZOVtCqLajz4c03TOwMRz63iKzuhFqOBN', '2023-04-24 21:52:40', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, '$2y$10$Mzhp.N0BcHxtv.pYm.WVE.I29xlNiJ/v/IJ1KwOmi0aqW6cyjrPKu', '2023-04-24 21:54:42', null, '2', '26');
INSERT INTO `access` VALUES ('20', 'HUAWEIJKM-LX2  9', '70|9oq4eiow4H0t2wegoloMF9g1Hagn4yTX80dbqsTWAsAR21W4fdwlTbXb23DFsZUnraA7GBAJLFbFTOL2ZDw3OZYyApOrrpsn998M9mXeTt0q9eJcb1J1YyMakf6tMiexdSVPes8rWE2LG511CEHJJrWf9yzQsT5eawx8p3ERWK4mZUoJevyurMJ3htgnaEx', '2023-04-26 10:02:33', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, '$2y$10$ljBy5Q6HDyX7B/kYK8bLQuuAHIm3I.5VjZiIsMDSmFiQWg2Ar6wPm', '2023-04-26 03:33:29', null, '2', '26');
INSERT INTO `access` VALUES ('31', 'HUAWEIJKM-LX2  9', '84|b8AsAOATEQwAd7ALXIPOzKoR2AFeRDYTjiDYVX5suK5Bs63p3fxBEje4XFjXNnmH31e0xbK4ouxr1tzY7LLR7C9MFEMEHDC6jrNQuHmUpT3i3Pp2pIiXi1Li6vugNLFV4bxCxstpw3x3sbrJXw3UrSkDarfhMbKhEvXZfJ2Kn7yqhLQi8D0vxkNdleD4Sp7', '2023-05-02 13:51:07', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, '$2y$10$TS0jy92wbhDcyuNy5z0GhODk3igesD4Ro1YbnfIH/NgF5Ea1p8x0K', '2023-05-01 13:25:51', null, '2', '26');
INSERT INTO `access` VALUES ('32', 'HUAWEIJKM-LX2  9', '85|eAqHBgUaxxyxbv3fC7YLZymh0Kygi8Lwo8rD77WTJ9Dez5zluG81MaZTuAMU4XfRcnKmlxbGtYQNeUn6qA9b8zYnJ76NhBdOXvM6QXUpxQAGgwXBPJDeat00AbBZrtH585hcs6QA3uwUu3dKyUUCycoae1912L6vIcs5czJ3U6RekauVxjfJepR2MXIGixu', '2023-06-23 21:08:52', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, null, null, '1', '2', '26');
INSERT INTO `access` VALUES ('33', 'HUAWEIJKM-LX2  9', '86|V9qNZtjxKEm6HTwH15pQPIcK30tmUpxIKUAOjs77SNzfsSsdcTxBAjT8p3C6JxjyLLmIs6eIrEjqeYcPLtkwjxZD2tAnWTpUvvRWGmYAQlummFs4c11NpYi0QtIFb21DMctT7F7bJfMsUnl5UsSzCB9a6AtgsEoKp5Lmsjcdnhy8gYcDFkH6UBZZrr535Ur', '2023-05-19 22:59:36', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, '$2y$10$qR3qaZ6nsiRM/lG2ttADI.035P9JuYCPyQtk64q6QKln8b3QvYpdC', '2023-05-09 10:45:20', null, '1', '26');
INSERT INTO `access` VALUES ('34', 'HUAWEIJKM-LX2  9', '87|OlENDPcLAPxXcKHGqme7FaaCIl3UYOPQxRNGoC6R6gWwBiAb5qpBncJ6pZWX4z6Khl059oOSbSASWZebrd7yCA20xfMwhYgPhtJ4YysIJuOFrRB5EfBjVzVKWchGOSkZL49R3W8LyLbIrIQG5uoX2MXQEr5oi7qeXzAIC13D3O3eJUHO5HVE662UIdiVyhg', '2023-05-24 13:37:01', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, '$2y$10$fOhHq6wWEcBPLOgcGt.8Ae8RrKZ5UF0c7HPnQGYRMW2dR4UzUT8c2', '2023-05-24 13:37:26', null, '1', '2');
INSERT INTO `access` VALUES ('35', 'HUAWEIJKM-LX2  9', '88|HQZtCHdhu5pmxX2PiL6sLlFEgqoPojgzWLLyVkIbJuie8ZWtxDKYKB4QVfux0EHzZvFdKfsclrMEobvIoW7XjZQRNgbCKGUNDa18XAVLo73SXeTqKZ6RnpcX99U9c9XsI0XKXNk5uXrismcHdfAizF7ZO7XPtATOK1CSbhQ2kpQ5Dq6roTkwigAti8rzsru', '2023-05-25 11:20:05', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, '$2y$10$Nxs6lpHmzE9r/bS9xMnAAOf5zPiXXLe/rkCwo5vw6T/oG9x6YdzUa', '2023-05-24 11:03:21', null, '2', '26');
INSERT INTO `access` VALUES ('36', 'HUAWEIJKM-LX2  9', '89|eSrLLh0leJAiYlQ15JN2xE6SVdz3hpO0TE2rvxj0jg4mQcXzWzGw8zyky6CVBUwp49cxSPAHN77JiDBO47wWcdDCJ977fWvoSF0IijJvH2bLyGULJrW9sRUHVrFzX7XpVRHVFYerFZh1IXhZW9A5xaEI0K6q42xioQjpGAYtSGFmG8qylPVXRzaTGHxmMtR', '2023-05-25 11:11:01', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, null, null, null, '2', '27');
INSERT INTO `access` VALUES ('37', 'HUAWEIJKM-LX2  9', '90|w0nr5EyYlp6nAy51KbmCPQxcgNOSodWrluNjMxJTYcxRBrjlaNGP4RFrMXX2KuSuwiHtEtUKruU6UcDLZtyxdStMJTttpaFmsqM8xwzNEnryw7JZMb5MvpXvzpH8cr3sb3jxgHtcr91RJ2HjRLgQ3CD0oGrSIw4uHHExXildV0rTu9nmvfJGR2e9RgZbT12', '2023-05-28 22:47:10', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, '$2y$10$R2IaKkAJuHtJf2mvWbjiee0.H74XLPDPUBxiWAWPBY7kgwwdMy/8K', '2023-05-26 19:29:45', null, '2', '26');
INSERT INTO `access` VALUES ('38', 'TE1A.220922.028  13', '91|aV4sWprUdmWcHq2QCViN46shZytMdXNwIw4x7CjiCNv62bP7SzK7S3sePFHNsmRAmIzYibc10YxCAaglZpcl272VCyzmisG8nUScYzvLgZEUvJvtjSsV6STyHuXiLLJUkXllGMPnxoxdbqZzpovnCHrwJySO54LiI4X5sWhClQ3LgAbAqCqqOg1n0hpphKq', '2023-06-02 21:04:35', 'TE1A.220922.028-Manufacture:Google-Host:abfarm-release-2004-0104-Version release:13', null, null, null, null, '2', '26');
INSERT INTO `access` VALUES ('39', 'TE1A.220922.028  13', '92|UIfQO4nKnUR9XyKTtd6VfV5OD8Bv38VZs3EFEOVTkRyGTjzZx2ggA9zjL4SlacZiVSVH0hQHg2tTzewvQgBVX6qWjEVdkCQvpNKtId45zf6LhTjSaTio6CR1S9Vk8VcHWaDNBFLZ1lKieotR1OY5NpR8hvYGMLkLnbNFkXmEo2h4wwtcKOXAxmaH9bjIzME', '2023-06-03 11:40:22', 'TE1A.220922.028-Manufacture:Google-Host:abfarm-release-2004-0104-Version release:13', null, null, null, null, '2', '26');
INSERT INTO `access` VALUES ('40', 'HUAWEIJKM-LX2  9', '93|lla949Isa47n4Tjbp9BnDjltf0jRx4Am31Blu1KQOgm2Y4vUHzY8HxRj2SZyZpB5LKfAFpnTTV7cZPfiB1cI9xwSk3vFksSGOjKucPGsPbNOca4RZQCYrhEwlH0j8reFC2gwG0ARgvqNGGqntJyN5Gz4Wi4DiI9ogaHxlCPjfvHVpJbyDoKt53YtB5DIYAs', '2023-06-03 22:15:25', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, null, null, null, '2', '26');
INSERT INTO `access` VALUES ('41', 'HUAWEIJKM-LX2  9', '94|ksGO4NUMfkxmfz6EEkwvZSWz09dC9PtzQBnJBo31BJJw5j2lOhQNn5xMihOWGjVBzZkbDblkkIgh83CnilAlTVd9mUt8eWcyzOgayer8rNMfoTmSuaAKf4su16bolMrLNR8ncD8UjdFVjQhG9tgjx4pw1Xxy2heuKJwCt2pzEMhKFbmsBne9F47rym8xsUk', '2023-06-23 18:28:35', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, null, null, null, '1', '26');
INSERT INTO `access` VALUES ('42', 'HUAWEIJKM-LX2  9', '95|BPPy0z9bLTlqJpS3nXA81elfgiaC05N3aaWstfCHaKOeowUAnjVxtwlWFAhujJXDyW2sw07MXB6hc9XMuVoEPMzNJURJ24lx8WP6y0OY6tgYuywzEYsOPP8gERC3nsIyi6RmwUhFZNLWzNxzl87yctxG7ctNvhzFyX0FGpqZOhKBT3xpSwPOhH5EMxdyECH', '2023-06-28 10:44:11', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, null, null, null, '1', '26');
INSERT INTO `access` VALUES ('43', 'HUAWEIJKM-LX2  9', '96|JBtiw8VzgxCEjXnpxZfm3gYqv6MMpOkut0IS1ucanssaKMSrqb5NNDfBWAA5xuThxxhgrCt5gNKjTYCG656XYNkcs9oYXidUY3McpSqSUhsRwoXGTRcGxQ91SMS8cmkgPzr5yrSZBXyRKUgEQ7Nr6kG4kytrgYXZ9tAbF7evuCXczLG3GctlEnZvtttbJIw', '2023-07-02 19:29:30', 'HUAWEIJKM-LX2-Manufacture:HUAWEI-Host:cn-central-1b-68138391e1596248870596-1515878770-3j0jz-Version release:9', null, null, null, null, '1', '2');

-- ----------------------------
-- Table structure for `author`
-- ----------------------------
CREATE TABLE `author` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(500) DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `user_reg_id` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_author_user1_idx` (`user_id`),
  CONSTRAINT `fk_author_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of author
-- ----------------------------
INSERT INTO `author` VALUES ('1', 'C Perera', '1', null, '0', null);
INSERT INTO `author` VALUES ('2', 'Test User authur', '1', '2023-06-07 19:46:54', '1', '35');
INSERT INTO `author` VALUES ('3', 'Anil Bandara', '1', null, '0', null);
INSERT INTO `author` VALUES ('4', 'Angelo broos drama', '1', null, '0', null);
INSERT INTO `author` VALUES ('5', 'Samatha Jo', '1', null, '0', null);
INSERT INTO `author` VALUES ('6', 'Martin Wickramasinghe', '1', null, '0', null);
INSERT INTO `author` VALUES ('7', 'Anil K Senadeera', '1', null, '0', null);
INSERT INTO `author` VALUES ('8', 'aaa1', '2', '2023-04-29 23:37:36', '1', null);
INSERT INTO `author` VALUES ('9', 'wwr11', '2', '2023-05-02 10:15:11', '35', null);
INSERT INTO `author` VALUES ('10', 'Test Auth', '1', '2023-06-07 19:46:14', '1', '36');

-- ----------------------------
-- Table structure for `banners`
-- ----------------------------
CREATE TABLE `banners` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `create` datetime DEFAULT NULL,
  `number` int(11) DEFAULT NULL,
  `name` mediumtext,
  `url` longtext,
  `lastupdate` datetime DEFAULT NULL,
  `clicks` int(11) DEFAULT NULL COMMENT 'total clicks\n',
  `status` varchar(5) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `pages_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_banners_user1_idx` (`user_id`),
  KEY `fk_banners_pages1_idx` (`pages_id`),
  CONSTRAINT `fk_banners_pages1` FOREIGN KEY (`pages_id`) REFERENCES `pages` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_banners_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of banners
-- ----------------------------
INSERT INTO `banners` VALUES ('1', '2023-04-06 11:26:00', '1', 'test', 'images/banner/1681231483.jpg', '2023-04-11 22:14:43', null, '2', '1', '1');
INSERT INTO `banners` VALUES ('2', '2023-04-11 21:25:43', '2', 'test 1', 'images/banner/1681228543.jpg', '2023-04-11 21:25:43', null, '2', '1', '1');
INSERT INTO `banners` VALUES ('3', '2023-04-19 11:45:11', '2', 'Test event', 'images/banner/1681884911.jpg', '2023-04-19 11:45:11', null, '2', '1', '1');
INSERT INTO `banners` VALUES ('4', '2023-04-21 21:38:44', '1', 'Arts', 'images/banner/1682881963.png', '2023-05-01 00:42:43', null, '1', '1', '1');
INSERT INTO `banners` VALUES ('5', '2023-05-01 00:41:56', '2', 'test2', 'images/banner/1682881916.jpg', '2023-05-01 00:41:56', null, '1', '1', '1');
INSERT INTO `banners` VALUES ('6', '2023-05-01 00:44:59', '3', 'tst36', 'images/banner/1682882099.jpg', '2023-05-01 11:40:17', null, '1', '1', '1');
INSERT INTO `banners` VALUES ('7', '2023-05-02 10:10:11', '4', 'dsd dff', 'images/banner/1683002552.jpg', '2023-05-02 10:12:32', null, '1', '35', '1');
INSERT INTO `banners` VALUES ('8', '2023-06-05 22:22:42', '5', 'ff', 'images/banner/1685983962.png', '2023-06-06 10:03:38', null, '2', '1', '1');
INSERT INTO `banners` VALUES ('9', '2023-06-06 20:07:48', '5', 'sadsad', 'images/banner/1686062268.png', '2023-06-06 20:07:48', null, '1', '1', '1');

-- ----------------------------
-- Table structure for `banner_clicks`
-- ----------------------------
CREATE TABLE `banner_clicks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `count` int(11) DEFAULT NULL,
  `lastupdate` int(11) DEFAULT NULL,
  `banners_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_banner_clicks_banners1_idx` (`banners_id`),
  KEY `fk_banner_clicks_user2_idx` (`user_id`),
  CONSTRAINT `fk_banner_clicks_banners1` FOREIGN KEY (`banners_id`) REFERENCES `banners` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_banner_clicks_user2` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of banner_clicks
-- ----------------------------

-- ----------------------------
-- Table structure for `book`
-- ----------------------------
CREATE TABLE `book` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` longtext,
  `description` longtext,
  `book_url` longtext,
  `book_url_name` longtext COMMENT 'book file real name',
  `book_img` longtext,
  `book_sample_url` longtext,
  `book_sample_url_name` longtext COMMENT 'sample file real name',
  `pbacklink` longtext,
  `pbacklink_details` mediumtext,
  `isbn` varchar(100) DEFAULT NULL,
  `publishd_date` varchar(45) DEFAULT NULL,
  `language` varchar(45) DEFAULT NULL,
  `page_count` int(11) DEFAULT NULL,
  `rating` double DEFAULT '0',
  `price` double DEFAULT '0',
  `old_price` double DEFAULT '0',
  `clicks` int(11) DEFAULT '0',
  `created` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `publisher_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_book_publisher1_idx` (`publisher_id`),
  KEY `fk_book_user1_idx` (`user_id`),
  CONSTRAINT `fk_book_publisher1` FOREIGN KEY (`publisher_id`) REFERENCES `publisher` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_book_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of book
-- ----------------------------
INSERT INTO `book` VALUES ('1', 'Madol Doova', 'Madol Doova Sinhala: මඩොල් දූව is a children\'s novel and coming-of-age story written by Sri Lankan writer Martin Wickramasinghe and first published in 1947. The book recounts the misadventures of Upali Giniwella and his friends on the Southern coast of Sri Lanka during the 1890s.', null, null, 'https://cdn11.bigcommerce.com/s-ocfb74260x/images/stencil/1280x1280/products/403/436/MAT-KSB-00390-Madol_Doova_Sinhala__28859.1574598150.jpg', null, null, null, null, '65512277', null, 'Sinhala', '450', '2.4', '650', '750', null, '2023-03-06 07:14:16', '1', null, '5', '1');
INSERT INTO `book` VALUES ('2', 'Grade 10 English ', 'Study & Master English Grade 10 has been especially developed by an experienced author team according to the Curriculum and Assessment Policy Statement (CAPS). Includes: * an expanded contents page, showing how CAPS is covered each week * listening, speaking, reading, writing, and language activities that cover all the skills required by CAPS', null, null, 'https://m.media-amazon.com/images/I/41cXWF5BpsL.jpg', null, null, null, null, '954544', '10/08/1990', 'Sinhala', '320', '1.5', '820.5', '920', null, '2023-03-22 07:22:31', '1', null, '2', '1');
INSERT INTO `book` VALUES ('3', 'Music Book', 'Music Book,Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, ', null, null, 'https://d1csarkz8obe9u.cloudfront.net/posterpreviews/children%27s-colorful-kindle-music-book-cover-design-template-5b493779c372b453ec29341f60e079d7_screen.jpg', null, null, null, null, '7844', null, 'English', '850', '1', '1520', '1850', null, '2023-03-20 12:48:00', '1', null, '2', '1');
INSERT INTO `book` VALUES ('4', 'Tin Tin', 'Tin Tin Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, ', null, null, 'https://www.sarasavi.lk//storage/product/120415/FmVQ0XJffj8T9lur5XpOvK668TisP6aFHDYf3upl.jpg', null, null, null, null, '84454', null, 'English', '1200', '0', '3520', '4200', null, '2023-03-10 12:49:30', '1', null, '4', '1');
INSERT INTO `book` VALUES ('5', 'Medical Science', 'Medical Science Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting,', null, null, 'images/book/cover_page/1688210807.jpg', null, null, '', null, '89897454sds', null, 'English', '4500', '3', '9845', '0', null, '2023-03-07 12:51:06', '1', '2023-07-01 16:56:47', '3', '1');
INSERT INTO `book` VALUES ('6', 'Information Technology', 'IT Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, ', null, null, 'https://m.media-amazon.com/images/I/51vb7WS9HNL.jpg', null, null, null, null, '823478454sdsd', null, 'Sinhala', '2875', '0', '3150', '0', null, '2023-03-01 12:53:11', '1', null, '1', '1');
INSERT INTO `book` VALUES ('7', 'Thriller', 'Thriller Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, ', null, null, 'https://d1csarkz8obe9u.cloudfront.net/posterpreviews/thriller-suspense-book-cover-design-template-1438d47348d378a3f26d2c78a2b48a54_screen.jpg', null, null, null, null, '25659898', null, 'English', '3000', '3.5', '4800', '0', null, '2023-03-13 12:54:12', '1', null, '3', '1');
INSERT INTO `book` VALUES ('8', 'Trees', 'Trees Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, ', null, null, 'https://d28hgpri8am2if.cloudfront.net/book_images/onix/cvr9781534475175/trees-9781534475175_hr.jpg', null, null, null, null, '54889865', null, 'English', '500', '4.5', '6850', '8900', null, '2023-03-08 12:59:06', '1', null, '1', '1');
INSERT INTO `book` VALUES ('9', 'Master Guide Grade 11', 'Master Guide Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, ', null, null, 'https://bookstudio.lk/wp-content/uploads/2022/01/Master-Guide-Grade-11-Mathematics-2-English-Medium.jpg', null, null, null, null, '787545454', null, 'Sinhala', '1600', '2.5', '4250', '6100', null, '2023-03-20 13:00:05', '1', null, '1', '1');
INSERT INTO `book` VALUES ('10', 'Earth', 'Erath Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, ', null, null, 'https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/1dc22871045781.5ef7864ea0a89.jpg', null, null, null, null, '565877878', null, 'English ', '2880', '0', '5100', '6500', null, '2023-03-13 13:00:58', '1', null, '2', '1');
INSERT INTO `book` VALUES ('11', 'sdsdfsdf', 'dsvxvfew', '1681170546.epub', null, '1681170546.jpg', null, null, null, null, '123456', '10/08/1990', 'English', '963', '0', '500', '650', null, null, '2', null, '3', '1');
INSERT INTO `book` VALUES ('12', 'Test Book', 'test', '1681230535.epub', null, '1681230535.jpg', null, null, null, null, null, '10/08/1990', 'English', '850', '0', '500', '630', '0', '2023-04-11 21:58:55', '2', null, '3', '1');
INSERT INTO `book` VALUES ('13', 'I am Malala', 'One year ago I left my home for school and never returned. I was shot by a Taliban bullet and was flown out of Pakistan unconscious. Some people say I will never return home but I believe firmly in my heart that I will. To be torn from the country that you love is not something to wish on anyone.', 'book/books/1681277910.epub', null, 'images/book/cover_page/1681277910.png', null, null, null, null, '854213544', '10/08/1990', 'English', '850', '0', '1500', '2500', '0', '2023-04-12 11:08:30', '1', null, '2', '1');
INSERT INTO `book` VALUES ('14', 'Living in the Light', 'Not long ago, I revised and updated my first book, Creative Visualization, and ever since that time, I’ve been feeling that I’d like to do the same for Living in the Light. The basic message of the book seems to be as timely and relevant as ever. Over the years since I wrote it, however, my understanding has developed and (hopefully) deepened through my own life experience and my work 1', 'book/books/1681278210.epub', null, 'images/book/cover_page/1681278210.png', null, null, null, null, '54845484', '20/05/1999', 'English', '845', '2', '1985', '0', '0', '2023-04-12 11:13:30', '1', null, '3', '1');
INSERT INTO `book` VALUES ('15', 'Non Title Book', 'years ago, and happens to be one of the to include masturbation, coitus interrup-best documented. This is because the two tus, and sexual abuse in childhood. He doctors involved – a surgeon and a phys-was attracted to Fliess’s idea of nasal ician – corresponded at length about it, reflex neurosis, and curious about how and the physician’s letters have been pre-these might apply to mental disorders.', 'book/books/1688029757.epub', 'The-Thirty-Nine-Steps.epub', 'images/book/cover_page/1681278374.jpg', null, null, '', null, null, '0506', 'Tamil', '256', '0', '855', '0', '0', '2023-04-12 11:16:14', '1', '2023-06-29 14:39:17', '5', '1');
INSERT INTO `book` VALUES ('16', 'Test You Book', 'Test You Book Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting', 'book/books/1681278564.epub', null, 'images/book/cover_page/1681278564.jpg', null, null, null, null, '9421122', '09/07/2005', 'Tamil', '866', '2.5', '520', '0', '0', '2023-04-12 11:19:24', '1', null, '1', '1');
INSERT INTO `book` VALUES ('17', 'ප්‍රජාවක සෞඛ්‍යkය ඉහළ නැංවීමට ගොඩනැගුනු සෞඛ්‍යය ප්‍රවර්ධන මෙවලම් සහ සංකල්ප | Prajawaka Sukkiya', 'ප්‍රජාවක සෞඛ්‍යය ඉහළ නැංවීමට ගොඩනැගනු සෞඛ්‍යය ප්‍රවර්ධන මෙවලම් සහ සංකල්ප | Prajawaka Sukkiya', 'book/books/1688028612.epub', 'The-Thirty-Nine-Steps.epub', 'images/book/cover_page/1682238710.jpg', 'images/book/sample_book/1686243399.pdf', 'Batch-File-Programming.pdf', 'https://en.wikipedia.org/wiki/Book', null, '2131234324', '0806', 'Tamil', '963', '0', '875', '966', '0', '2023-04-23 14:01:50', '1', '2023-07-01 18:37:09', '3', '1');
INSERT INTO `book` VALUES ('18', 'tewer', 'saczceffd', 'book/books/1682660095.epub', null, 'images/book/cover_page/1682660095.png', null, null, 'www.', null, '23213213', '01/02/2005', 'English', '524', '0', '500', '650', '0', '2023-04-28 11:04:55', '2', null, '3', '1');
INSERT INTO `book` VALUES ('19', 'salsa Drama', 'sadsad', 'book/books/1682660207.epub', null, 'images/book/cover_page/1682660207.png', null, null, 'ssdsad', null, null, '01/01/2005', 'Sinhala', '22', '0', '322', '1112', '0', '2023-04-28 11:06:47', '1', '2023-05-07 22:05:24', '3', '1');
INSERT INTO `book` VALUES ('20', 'sdsad book add', 'asdsad weeks', 'book/books/1682833208.epub', null, 'images/book/cover_page/1682833208.png', null, null, 'wwww', null, '235656546', '01/01/2005', 'Tamil', '333', '0', '222', '1111', '0', '2023-04-28 11:31:15', '1', '2023-04-30 11:10:08', '2', '33');
INSERT INTO `book` VALUES ('21', 'ABG Grand one two', 'test data 11', 'book/books/1682833312.epub', null, 'images/book/cover_page/1682833312.jpg', 'book/sample_book/1686236379.pdf', 'Batch-File-Programming.pdf', 'http://your-domain.com/storage/filename', null, '847410011', '05/05/2019', 'Sinhala', '220', '0', '4000', '5500', '0', '2023-04-30 11:11:53', '1', '2023-06-08 20:29:39', '4', '1');
INSERT INTO `book` VALUES ('22', 'Test 44', 'test', 'book/books/1685071757.epub', null, 'images/book/cover_page/1685071757.jpg', 'images/book/sample_book/1686282202.pdf', 'i-am-malala-pdf-book-by-malala-downloaded-4m-pakistanifun.commalala-yousafzai-christina-lamb.pdf', 'https://www.google.com/search?q=book+cover+design&sxsrf=APwXEdeEH58W760N8C901UxhSiVU82X3Pw:1685070968125&source=lnms&tbm=isch&sa=X&ved=2ahUKEwilxOfDgpL_AhXu8DgGHRGoDucQ_AUoAXoECAEQAw&biw=1366&bih=671&dpr=1#imgrc=KP6beNfHDRloWM', null, '454545464', '15/12/2015', 'English', '255', '0', '2500', '2750', '0', '2023-05-26 08:59:17', '1', '2023-06-09 09:13:22', '2', '1');
INSERT INTO `book` VALUES ('23', 'මගේ පාසල|Mage pasala', 'sdsdsdsadsad', 'book/books/1686905086.epub', 'iammalla.epub', 'images/book/cover_page/1686905086.jpg', 'images/book/sample_book/1686905086.pdf', 'programm-language.pdf', 'https://www.google.com/search?sxsrf=APwXEddgxItzbLD098Yo9ANVcYQeucP70w:1686904483021&q=cover+page+design&tbm=isch&sa=X&ved=2ahUKEwjIyevzsMf_AhUb4jgGHSF7AGUQ0pQJegQIDBAB&biw=1366&bih=671&dpr=1#imgrc=ypTjlnqiDzJdkM', null, '', null, 'Sinhala', null, '0', '500', '800', '0', '2023-06-16 14:14:46', '1', '2023-06-22 13:58:30', '4', '1');
INSERT INTO `book` VALUES ('24', 'Book Story', 'sadasd', 'book/books/1687007386.epub', 'willett2008 (1).epub', 'images/book/cover_page/1687007386.jpg', 'images/book/sample_book/1687007386.pdf', 'Batch-File-Programming.pdf', '', null, '', '2000', 'English', null, '0', '560', '0', '0', '2023-06-17 18:39:46', '1', '2023-06-23 21:33:24', '2', '1');

-- ----------------------------
-- Table structure for `book_category`
-- ----------------------------
CREATE TABLE `book_category` (
  `category_id` int(11) NOT NULL,
  `book_id` int(11) NOT NULL,
  PRIMARY KEY (`category_id`,`book_id`),
  KEY `fk_book_category_book1_idx` (`book_id`),
  KEY `fk_book_category_category1_idx` (`category_id`),
  CONSTRAINT `fk_book_category_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_book_category_category1` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of book_category
-- ----------------------------
INSERT INTO `book_category` VALUES ('4', '1');
INSERT INTO `book_category` VALUES ('6', '1');
INSERT INTO `book_category` VALUES ('9', '1');
INSERT INTO `book_category` VALUES ('1', '2');
INSERT INTO `book_category` VALUES ('2', '2');
INSERT INTO `book_category` VALUES ('7', '2');
INSERT INTO `book_category` VALUES ('1', '3');
INSERT INTO `book_category` VALUES ('10', '3');
INSERT INTO `book_category` VALUES ('4', '4');
INSERT INTO `book_category` VALUES ('13', '4');
INSERT INTO `book_category` VALUES ('1', '5');
INSERT INTO `book_category` VALUES ('3', '5');
INSERT INTO `book_category` VALUES ('7', '5');
INSERT INTO `book_category` VALUES ('1', '6');
INSERT INTO `book_category` VALUES ('2', '6');
INSERT INTO `book_category` VALUES ('6', '6');
INSERT INTO `book_category` VALUES ('12', '6');
INSERT INTO `book_category` VALUES ('4', '7');
INSERT INTO `book_category` VALUES ('13', '7');
INSERT INTO `book_category` VALUES ('9', '8');
INSERT INTO `book_category` VALUES ('1', '9');
INSERT INTO `book_category` VALUES ('7', '9');
INSERT INTO `book_category` VALUES ('1', '10');
INSERT INTO `book_category` VALUES ('2', '11');
INSERT INTO `book_category` VALUES ('3', '12');
INSERT INTO `book_category` VALUES ('6', '12');
INSERT INTO `book_category` VALUES ('4', '13');
INSERT INTO `book_category` VALUES ('6', '13');
INSERT INTO `book_category` VALUES ('6', '14');
INSERT INTO `book_category` VALUES ('10', '14');
INSERT INTO `book_category` VALUES ('13', '14');
INSERT INTO `book_category` VALUES ('8', '15');
INSERT INTO `book_category` VALUES ('13', '15');
INSERT INTO `book_category` VALUES ('15', '15');
INSERT INTO `book_category` VALUES ('1', '16');
INSERT INTO `book_category` VALUES ('4', '16');
INSERT INTO `book_category` VALUES ('10', '16');
INSERT INTO `book_category` VALUES ('11', '16');
INSERT INTO `book_category` VALUES ('16', '16');
INSERT INTO `book_category` VALUES ('4', '17');
INSERT INTO `book_category` VALUES ('13', '17');
INSERT INTO `book_category` VALUES ('16', '17');
INSERT INTO `book_category` VALUES ('4', '18');
INSERT INTO `book_category` VALUES ('2', '19');
INSERT INTO `book_category` VALUES ('5', '20');
INSERT INTO `book_category` VALUES ('3', '21');
INSERT INTO `book_category` VALUES ('5', '21');
INSERT INTO `book_category` VALUES ('2', '22');
INSERT INTO `book_category` VALUES ('5', '22');
INSERT INTO `book_category` VALUES ('1', '23');
INSERT INTO `book_category` VALUES ('2', '23');
INSERT INTO `book_category` VALUES ('5', '24');

-- ----------------------------
-- Table structure for `book_clicks`
-- ----------------------------
CREATE TABLE `book_clicks` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `count` int(11) DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `book_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_book_clicks_book1_idx` (`book_id`),
  KEY `fk_book_clicks_user1_idx` (`user_id`),
  CONSTRAINT `fk_book_clicks_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_book_clicks_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of book_clicks
-- ----------------------------

-- ----------------------------
-- Table structure for `book_genre`
-- ----------------------------
CREATE TABLE `book_genre` (
  `book_id` int(11) NOT NULL,
  `genre_id` int(11) NOT NULL,
  PRIMARY KEY (`book_id`,`genre_id`),
  KEY `fk_book_genre_book1_idx` (`book_id`),
  KEY `fk_book_genre_genre1_idx` (`genre_id`),
  CONSTRAINT `fk_book_genre_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_book_genre_genre1` FOREIGN KEY (`genre_id`) REFERENCES `genre` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of book_genre
-- ----------------------------
INSERT INTO `book_genre` VALUES ('1', '2');
INSERT INTO `book_genre` VALUES ('1', '3');
INSERT INTO `book_genre` VALUES ('2', '5');
INSERT INTO `book_genre` VALUES ('3', '5');
INSERT INTO `book_genre` VALUES ('4', '1');
INSERT INTO `book_genre` VALUES ('4', '2');
INSERT INTO `book_genre` VALUES ('4', '12');
INSERT INTO `book_genre` VALUES ('5', '5');
INSERT INTO `book_genre` VALUES ('6', '5');
INSERT INTO `book_genre` VALUES ('7', '1');
INSERT INTO `book_genre` VALUES ('7', '13');
INSERT INTO `book_genre` VALUES ('7', '15');
INSERT INTO `book_genre` VALUES ('8', '5');
INSERT INTO `book_genre` VALUES ('8', '12');
INSERT INTO `book_genre` VALUES ('8', '18');
INSERT INTO `book_genre` VALUES ('10', '5');
INSERT INTO `book_genre` VALUES ('10', '9');
INSERT INTO `book_genre` VALUES ('15', '1');
INSERT INTO `book_genre` VALUES ('16', '3');
INSERT INTO `book_genre` VALUES ('17', '5');
INSERT INTO `book_genre` VALUES ('18', '2');
INSERT INTO `book_genre` VALUES ('19', '5');
INSERT INTO `book_genre` VALUES ('20', '2');
INSERT INTO `book_genre` VALUES ('21', '3');
INSERT INTO `book_genre` VALUES ('21', '5');
INSERT INTO `book_genre` VALUES ('22', '2');
INSERT INTO `book_genre` VALUES ('23', '5');
INSERT INTO `book_genre` VALUES ('24', '6');

-- ----------------------------
-- Table structure for `book_has_author`
-- ----------------------------
CREATE TABLE `book_has_author` (
  `book_id` int(11) NOT NULL,
  `author_id` int(11) NOT NULL,
  PRIMARY KEY (`book_id`,`author_id`),
  KEY `fk_book_has_author_book1_idx` (`book_id`),
  KEY `fk_book_has_author_author1_idx` (`author_id`),
  CONSTRAINT `fk_book_has_author_author1` FOREIGN KEY (`author_id`) REFERENCES `author` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_book_has_author_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of book_has_author
-- ----------------------------
INSERT INTO `book_has_author` VALUES ('1', '5');
INSERT INTO `book_has_author` VALUES ('2', '2');
INSERT INTO `book_has_author` VALUES ('2', '3');
INSERT INTO `book_has_author` VALUES ('3', '2');
INSERT INTO `book_has_author` VALUES ('3', '4');
INSERT INTO `book_has_author` VALUES ('4', '4');
INSERT INTO `book_has_author` VALUES ('5', '5');
INSERT INTO `book_has_author` VALUES ('6', '1');
INSERT INTO `book_has_author` VALUES ('7', '5');
INSERT INTO `book_has_author` VALUES ('11', '3');
INSERT INTO `book_has_author` VALUES ('12', '5');
INSERT INTO `book_has_author` VALUES ('13', '5');
INSERT INTO `book_has_author` VALUES ('14', '4');
INSERT INTO `book_has_author` VALUES ('14', '5');
INSERT INTO `book_has_author` VALUES ('15', '1');
INSERT INTO `book_has_author` VALUES ('16', '1');
INSERT INTO `book_has_author` VALUES ('17', '4');
INSERT INTO `book_has_author` VALUES ('17', '6');
INSERT INTO `book_has_author` VALUES ('18', '4');
INSERT INTO `book_has_author` VALUES ('19', '3');
INSERT INTO `book_has_author` VALUES ('20', '3');
INSERT INTO `book_has_author` VALUES ('21', '1');
INSERT INTO `book_has_author` VALUES ('21', '7');
INSERT INTO `book_has_author` VALUES ('22', '3');
INSERT INTO `book_has_author` VALUES ('23', '2');
INSERT INTO `book_has_author` VALUES ('24', '7');

-- ----------------------------
-- Table structure for `cart`
-- ----------------------------
CREATE TABLE `cart` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created` datetime DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `total` double DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_cart_user1_idx` (`user_id`),
  CONSTRAINT `fk_cart_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=237 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of cart
-- ----------------------------
INSERT INTO `cart` VALUES ('48', '2023-04-13 10:21:07', null, null, '3', '26');
INSERT INTO `cart` VALUES ('84', '2023-04-25 00:33:01', null, null, '3', '26');
INSERT INTO `cart` VALUES ('124', '2023-04-27 22:21:19', null, null, '3', '2');
INSERT INTO `cart` VALUES ('199', '2023-04-30 23:04:52', null, null, '3', '26');
INSERT INTO `cart` VALUES ('228', '2023-06-22 14:18:01', null, null, '1', '26');
INSERT INTO `cart` VALUES ('232', '2023-07-01 18:22:32', null, null, '3', '2');
INSERT INTO `cart` VALUES ('236', '2023-07-02 18:21:51', null, null, '1', '2');

-- ----------------------------
-- Table structure for `cart_items`
-- ----------------------------
CREATE TABLE `cart_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `book_id` int(11) NOT NULL,
  `cart_id` int(11) NOT NULL,
  `discounts_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_cart_items_cart1_idx` (`cart_id`),
  KEY `fk_cart_items_book1_idx` (`book_id`),
  KEY `fk_cart_items_discounts1_idx` (`discounts_id`),
  CONSTRAINT `fk_cart_items_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_cart_items_cart1` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_cart_items_discounts1` FOREIGN KEY (`discounts_id`) REFERENCES `discount` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=326 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of cart_items
-- ----------------------------
INSERT INTO `cart_items` VALUES ('92', '2023-04-25 00:33:01', '3', '17', '84', null);
INSERT INTO `cart_items` VALUES ('111', '2023-04-27 22:21:19', '3', '15', '124', null);
INSERT INTO `cart_items` VALUES ('282', '2023-04-30 23:04:52', '3', '2', '199', null);
INSERT INTO `cart_items` VALUES ('283', '2023-04-30 23:04:52', '3', '3', '199', null);
INSERT INTO `cart_items` VALUES ('284', '2023-04-30 23:04:52', '3', '5', '199', null);
INSERT INTO `cart_items` VALUES ('285', '2023-04-30 23:04:52', '3', '10', '199', null);
INSERT INTO `cart_items` VALUES ('316', '2023-06-22 14:18:01', '1', '16', '228', null);
INSERT INTO `cart_items` VALUES ('317', '2023-06-22 14:18:01', '1', '6', '228', null);
INSERT INTO `cart_items` VALUES ('322', '2023-07-01 18:22:32', '3', '17', '232', null);
INSERT INTO `cart_items` VALUES ('323', '2023-07-01 18:22:32', '3', '23', '232', null);
INSERT INTO `cart_items` VALUES ('325', '2023-07-02 18:21:51', '1', '16', '236', null);

-- ----------------------------
-- Table structure for `category`
-- ----------------------------
CREATE TABLE `category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(500) DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_category_user1_idx` (`user_id`),
  CONSTRAINT `fk_category_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of category
-- ----------------------------
INSERT INTO `category` VALUES ('1', 'Educational', '1', null, '0');
INSERT INTO `category` VALUES ('2', 'Teachers Guide', '1', null, '0');
INSERT INTO `category` VALUES ('3', 'Medical Books', '1', null, '0');
INSERT INTO `category` VALUES ('4', 'Novels', '1', null, '0');
INSERT INTO `category` VALUES ('5', 'Travel', '1', null, '0');
INSERT INTO `category` VALUES ('6', 'Megazine', '1', null, '0');
INSERT INTO `category` VALUES ('7', 'Work Book', '1', null, '0');
INSERT INTO `category` VALUES ('8', 'Experiment', '1', null, '0');
INSERT INTO `category` VALUES ('9', 'News', '1', null, '0');
INSERT INTO `category` VALUES ('10', 'Arts', '1', null, '0');
INSERT INTO `category` VALUES ('11', 'Design', '1', null, '0');
INSERT INTO `category` VALUES ('12', 'Technology', '1', null, '0');
INSERT INTO `category` VALUES ('13', 'Short Stories', '1', null, '0');
INSERT INTO `category` VALUES ('14', 'test', '1', null, '0');
INSERT INTO `category` VALUES ('15', 'Gaming', '1', null, '0');
INSERT INTO `category` VALUES ('16', '18+', '1', null, '0');
INSERT INTO `category` VALUES ('17', 'Leesa1', '1', '2023-06-19 13:07:57', '1');
INSERT INTO `category` VALUES ('18', 'Ghost 1', '2', '2023-04-29 23:36:46', '1');
INSERT INTO `category` VALUES ('19', 'aab', '2', '2023-05-01 17:36:36', '1');
INSERT INTO `category` VALUES ('20', 'aass', '2', '2023-05-02 10:14:28', '35');

-- ----------------------------
-- Table structure for `discount`
-- ----------------------------
CREATE TABLE `discount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `value` double DEFAULT NULL COMMENT 'discount from %',
  `status` varchar(5) DEFAULT NULL,
  `discount_reg_id` int(11) NOT NULL,
  `book_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_discounts_discount_reg1_idx` (`discount_reg_id`),
  KEY `fk_discounts_book1_idx` (`book_id`),
  CONSTRAINT `fk_discounts_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_discounts_discount_reg1` FOREIGN KEY (`discount_reg_id`) REFERENCES `discount_reg` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of discount
-- ----------------------------

-- ----------------------------
-- Table structure for `discount_reg`
-- ----------------------------
CREATE TABLE `discount_reg` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `create` datetime DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_discount_reg_user1_idx` (`user_id`),
  CONSTRAINT `fk_discount_reg_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of discount_reg
-- ----------------------------

-- ----------------------------
-- Table structure for `events`
-- ----------------------------
CREATE TABLE `events` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` mediumtext,
  `web_link` longtext,
  `description` longtext,
  `url` longtext,
  `create` datetime DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_events_user1_idx` (`user_id`),
  CONSTRAINT `fk_events_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of events
-- ----------------------------
INSERT INTO `events` VALUES ('1', 'Test event', 'https://search.brave.com/search?q=abc&source=desktop', 'test decrpitn', 'images/events/1680761110.jpg', '2023-04-06 11:35:10', '2023-04-06 11:35:10', '1', '1');
INSERT INTO `events` VALUES ('2', 'test', 'sdsad', 'sdasdasd', 'images/events/1681082910.jpg', '2023-04-10 04:58:30', '2023-04-10 04:58:30', '2', '1');
INSERT INTO `events` VALUES ('3', 'welcome 1 ae', 'https://search.brave.com/search?q=abc&source=desktop', 'zdzdvcv', 'images/events/1681170290.jpg', '2023-04-11 05:14:50', '2023-04-11 05:14:50', '2', '1');
INSERT INTO `events` VALUES ('4', 'Test event 1', 'https://search.brave.com/search?q=abc&source=desktop', 'asdas', 'images/events/1681231663.jpg', '2023-04-11 05:20:31', '2023-04-11 22:17:43', '1', '1');
INSERT INTO `events` VALUES ('5', 'hgfhgfjg', 'https://search.brave.com/search?q=abc&source=desktop', 'nvjhgkjbkj', 'images/events/1681231275.jpg', '2023-04-11 22:11:15', '2023-04-11 22:11:15', '2', '1');
INSERT INTO `events` VALUES ('6', 'Event Kurunegala', 'https://search.brave.com/search?q=abc&source=desktop', 'jhgygy', 'images/events/1681231348.jpg', '2023-04-11 22:12:28', '2023-04-12 08:33:58', '2', '1');
INSERT INTO `events` VALUES ('7', 'Event 3', 'https://search.brave.com/search?q=abc&source=desktop', 'asdasdascxvxv', 'images/events/1682094490.png', '2023-04-21 21:58:10', '2023-04-21 21:58:10', '2', '1');
INSERT INTO `events` VALUES ('8', 'sassa faf111', 'wwwwfff111', 'asdadww sadadc asd 11', 'images/events/1683002799.jpg', '2023-05-02 10:16:20', '2023-05-02 10:16:39', '1', '35');

-- ----------------------------
-- Table structure for `f_a_q`
-- ----------------------------
CREATE TABLE `f_a_q` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `quiz` longtext,
  `answer` longtext,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of f_a_q
-- ----------------------------
INSERT INTO `f_a_q` VALUES ('1', 'What is the payment method?', 'Card/Carsh payemnt add');
INSERT INTO `f_a_q` VALUES ('2', 'Can i read books using this app?', 'Yes, you can read a book using this app');
INSERT INTO `f_a_q` VALUES ('3', 'What are FAQ questions?', 'A frequently asked questions (FAQ) list is often used in articles, websites, email lists, and online forums where common questions tend to recur, for example through posts or queries by new users related to common knowledge gaps. The purpose of a FAQ is generally to provide information on frequent questions or concerns; however, the format is a useful means of organizing information, and text consisting of questions and their answers may thus be called a FAQ regardless of whether the questions are actually frequently asked');

-- ----------------------------
-- Table structure for `genre`
-- ----------------------------
CREATE TABLE `genre` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(500) DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_genre_user1_idx` (`user_id`),
  CONSTRAINT `fk_genre_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of genre
-- ----------------------------
INSERT INTO `genre` VALUES ('1', 'Action', null, '1', '0');
INSERT INTO `genre` VALUES ('2', 'Drama', null, '1', '0');
INSERT INTO `genre` VALUES ('3', 'Adult', null, '1', '0');
INSERT INTO `genre` VALUES ('4', 'Horror', null, '1', '0');
INSERT INTO `genre` VALUES ('5', 'Documentry', null, '1', '0');
INSERT INTO `genre` VALUES ('6', 'Romance', null, '1', '0');
INSERT INTO `genre` VALUES ('7', 'War', null, '1', '0');
INSERT INTO `genre` VALUES ('8', 'Comedy', null, '1', '0');
INSERT INTO `genre` VALUES ('9', 'Sci-Fi', null, '1', '0');
INSERT INTO `genre` VALUES ('10', 'Musical', null, '1', '0');
INSERT INTO `genre` VALUES ('11', 'Crime', null, '1', '0');
INSERT INTO `genre` VALUES ('12', 'Western', null, '2', '0');
INSERT INTO `genre` VALUES ('13', 'Mystery', null, '1', '0');
INSERT INTO `genre` VALUES ('14', 'Fantacy', null, '1', '0');
INSERT INTO `genre` VALUES ('15', 'Thriller', null, '1', '0');
INSERT INTO `genre` VALUES ('16', 'Adventure', null, '1', '0');
INSERT INTO `genre` VALUES ('17', 'Sport', null, '1', '0');
INSERT INTO `genre` VALUES ('18', 'Folk', '2023-06-19 13:08:21', '1', '1');
INSERT INTO `genre` VALUES ('19', 'YEs 1', '2023-04-29 23:37:12', '2', '1');
INSERT INTO `genre` VALUES ('20', 'aww', '2023-05-02 10:14:52', '2', '35');

-- ----------------------------
-- Table structure for `home_page`
-- ----------------------------
CREATE TABLE `home_page` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) DEFAULT NULL,
  `type` varchar(45) DEFAULT NULL,
  `order_num` int(11) DEFAULT NULL COMMENT 'order num - there is 5 sections that is 1,2,3,4,5 order num set field',
  `lastlog` datetime DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_home_page_user1_idx` (`user_id`),
  CONSTRAINT `fk_home_page_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of home_page
-- ----------------------------
INSERT INTO `home_page` VALUES ('1', 'Educational', 'Category', '1', '2023-04-21 21:35:56', '1');
INSERT INTO `home_page` VALUES ('2', 'Arts', 'Category', '2', '2023-06-18 21:51:47', '1');
INSERT INTO `home_page` VALUES ('3', 'Novels', 'Category', '3', '2023-06-13 15:29:19', '1');
INSERT INTO `home_page` VALUES ('4', 'Teachers Guide', 'Category', '4', '2023-04-22 13:16:35', '1');
INSERT INTO `home_page` VALUES ('5', 'Megazine', 'Category', '5', '2023-06-18 21:51:33', '1');

-- ----------------------------
-- Table structure for `home_page_books`
-- ----------------------------
CREATE TABLE `home_page_books` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `home_page_id` int(11) NOT NULL,
  `book_id` int(11) NOT NULL,
  `status` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_home_page_books_book1_idx` (`book_id`),
  KEY `fk_home_page_books_home_page1_idx` (`home_page_id`),
  CONSTRAINT `fk_home_page_books_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_home_page_books_home_page1` FOREIGN KEY (`home_page_id`) REFERENCES `home_page` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of home_page_books
-- ----------------------------
INSERT INTO `home_page_books` VALUES ('5', '5', '19', null);
INSERT INTO `home_page_books` VALUES ('6', '5', '17', null);
INSERT INTO `home_page_books` VALUES ('7', '5', '1', null);
INSERT INTO `home_page_books` VALUES ('9', '5', '16', null);

-- ----------------------------
-- Table structure for `migrations`
-- ----------------------------
CREATE TABLE `migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- ----------------------------
-- Records of migrations
-- ----------------------------
INSERT INTO `migrations` VALUES ('1', '2019_12_14_000001_create_personal_access_tokens_table', '1');

-- ----------------------------
-- Table structure for `pages`
-- ----------------------------
CREATE TABLE `pages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` varchar(45) DEFAULT NULL COMMENT 'web or mobile page',
  `name` varchar(45) DEFAULT NULL,
  `link` longtext,
  `status` varchar(5) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of pages
-- ----------------------------
INSERT INTO `pages` VALUES ('1', 'WEB', 'Dashboard', null, '1');
INSERT INTO `pages` VALUES ('2', 'WEB', 'Banner', null, '1');
INSERT INTO `pages` VALUES ('3', 'WEB', 'Welcome Page', null, '1');
INSERT INTO `pages` VALUES ('4', 'WEB', 'Home Page', null, '1');
INSERT INTO `pages` VALUES ('5', 'WEB', 'Category', null, '1');
INSERT INTO `pages` VALUES ('6', 'WEB', 'Genre', null, '1');
INSERT INTO `pages` VALUES ('7', 'WEB', 'Authors', null, '1');
INSERT INTO `pages` VALUES ('8', 'WEB', 'Publisher', null, '1');
INSERT INTO `pages` VALUES ('9', 'WEB', 'Events', null, '1');
INSERT INTO `pages` VALUES ('10', 'WEB', 'Book', null, '1');
INSERT INTO `pages` VALUES ('11', 'WEB', 'Reports', null, '1');
INSERT INTO `pages` VALUES ('12', 'WEB', 'User', null, '1');
INSERT INTO `pages` VALUES ('13', 'WEB', 'FAQ', null, '1');
INSERT INTO `pages` VALUES ('14', 'WEB', 'Book - Review', null, '1');
INSERT INTO `pages` VALUES ('15', 'WEB', 'User - Access', null, '1');

-- ----------------------------
-- Table structure for `payment`
-- ----------------------------
CREATE TABLE `payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cardtype` varchar(45) DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `cart_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_payment_cart1_idx` (`cart_id`),
  CONSTRAINT `fk_payment_cart1` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of payment
-- ----------------------------

-- ----------------------------
-- Table structure for `personal_access_tokens`
-- ----------------------------
CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint(20) unsigned NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- ----------------------------
-- Records of personal_access_tokens
-- ----------------------------
INSERT INTO `personal_access_tokens` VALUES ('1', 'App\\Models\\User', '4', 'API TOKEN', '2b700a0b6f5cbb63929b355923d525eb915a08fce8af851295b411c93ea1c6e1', '[\"*\"]', null, null, '2023-03-11 04:14:22', '2023-03-11 04:14:22');
INSERT INTO `personal_access_tokens` VALUES ('2', 'App\\Models\\User', '4', 'API TOKEN', '1760d4616319837b2ced9b9056e74ac32cfded8478034eff8f95e4a94014b8a5', '[\"*\"]', null, null, '2023-03-11 04:14:28', '2023-03-11 04:14:28');
INSERT INTO `personal_access_tokens` VALUES ('3', 'App\\Models\\User', '4', 'API TOKEN', 'aac91c0c896bc2e00f96e4fb8f1b64955fedaa3e5a7346a376a5a7c6ea05c31f', '[\"*\"]', null, null, '2023-03-11 04:14:59', '2023-03-11 04:14:59');
INSERT INTO `personal_access_tokens` VALUES ('4', 'App\\Models\\User', '4', 'API TOKEN', 'ceafb5abcf3687ece593a6e8288b524534c39a303d8e2fec2cb4c6be3873eedb', '[\"*\"]', null, null, '2023-03-11 04:21:52', '2023-03-11 04:21:52');
INSERT INTO `personal_access_tokens` VALUES ('5', 'App\\Models\\User', '4', 'API TOKEN', 'ca1c3d7a3aca20b44bc23926adfefe846100acd21581f72757283c47a23146fd', '[\"*\"]', null, null, '2023-03-11 04:25:15', '2023-03-11 04:25:15');
INSERT INTO `personal_access_tokens` VALUES ('6', 'App\\Models\\User', '4', 'API TOKEN', '4c23eb88dc59a19d71643d4c6e9149ee7529f2844933b9a0bc5f0ca7a43c5d8c', '[\"*\"]', null, null, '2023-03-11 04:47:50', '2023-03-11 04:47:50');
INSERT INTO `personal_access_tokens` VALUES ('7', 'App\\Models\\User', '4', 'API TOKEN', '1ab0083cbcd76946e3a7c27d25b205200068ffc35049d40b5e1c50aed7249b6a', '[\"*\"]', null, null, '2023-03-11 04:51:25', '2023-03-11 04:51:25');
INSERT INTO `personal_access_tokens` VALUES ('8', 'App\\Models\\User', '4', 'API TOKEN', '7691e54dec8afa4861c74cb91a3f251191511e56e6a557e98aa4378ecee3860a', '[\"*\"]', null, null, '2023-03-11 04:53:55', '2023-03-11 04:53:55');
INSERT INTO `personal_access_tokens` VALUES ('9', 'App\\Models\\User', '4', 'API TOKEN', 'c4976fb130e24b58b5fc618823bd6f61ee36a9081081c62ecd87da4844fa582a', '[\"*\"]', null, null, '2023-03-11 05:01:14', '2023-03-11 05:01:14');
INSERT INTO `personal_access_tokens` VALUES ('10', 'App\\Models\\User', '4', 'API TOKEN', 'efac9964be0f8bba7676cb42b339464caedfb6fe51c615199c7e044c02068f3e', '[\"*\"]', null, null, '2023-03-11 05:04:52', '2023-03-11 05:04:52');
INSERT INTO `personal_access_tokens` VALUES ('11', 'App\\Models\\User', '9', 'API TOKEN', '4d2b3cafe1f0f6ffcddf8571dc532b479b16e51912a068787763ec57a393897d', '[\"*\"]', null, null, '2023-03-11 10:29:26', '2023-03-11 10:29:26');
INSERT INTO `personal_access_tokens` VALUES ('12', 'App\\Models\\User', '10', 'API TOKEN', 'efdda95a8c10af9e5ce777b43a3f3c7393f203e2bc9f4d06f1634e9585986574', '[\"*\"]', null, null, '2023-03-11 10:42:30', '2023-03-11 10:42:30');
INSERT INTO `personal_access_tokens` VALUES ('13', 'App\\Models\\User', '11', 'API TOKEN', 'de164c503b7e4f92a4fb770407ba72778fc9c45659c3b9bb719a9fe84505271f', '[\"*\"]', null, null, '2023-03-11 10:44:56', '2023-03-11 10:44:56');
INSERT INTO `personal_access_tokens` VALUES ('14', 'App\\Models\\User', '12', 'API TOKEN', '56525e793c97ece546e246a89dc96aa3cc7d025664867771b9ae0777016981f6', '[\"*\"]', null, null, '2023-03-11 10:53:04', '2023-03-11 10:53:04');
INSERT INTO `personal_access_tokens` VALUES ('15', 'App\\Models\\User', '12', 'API TOKEN', '33a03eb7ad6e30b4cff71e40ffc3aab944cd0a91efc9cd15b8eceee02aa445b0', '[\"*\"]', null, null, '2023-03-11 10:55:12', '2023-03-11 10:55:12');
INSERT INTO `personal_access_tokens` VALUES ('16', 'App\\Models\\User', '13', 'API TOKEN', '6eeec5836465792ee9fe6d503ac2e1d37bc92a467e81deac40cd12766c7d796a', '[\"*\"]', null, null, '2023-03-11 11:12:18', '2023-03-11 11:12:18');
INSERT INTO `personal_access_tokens` VALUES ('17', 'App\\Models\\User', '13', 'API TOKEN', '647617b67101d39d41c0b30d4cc11b4f1679cfcbdab020a79eb903d731d4ebe0', '[\"*\"]', null, null, '2023-03-11 11:13:12', '2023-03-11 11:13:12');
INSERT INTO `personal_access_tokens` VALUES ('18', 'App\\Models\\User', '13', 'API TOKEN', '5b136a7ad3c27e28657b6bb47d567cd3079b2e05fc15ce7e053d2e45ebdd9325', '[\"*\"]', null, null, '2023-03-11 11:13:24', '2023-03-11 11:13:24');
INSERT INTO `personal_access_tokens` VALUES ('19', 'App\\Models\\User', '14', 'API TOKEN', 'ea18c099b29927ac722b1fe340c04ee65ca0194ab4b006c44e5a0c2cc99686ea', '[\"*\"]', null, null, '2023-03-11 11:20:43', '2023-03-11 11:20:43');
INSERT INTO `personal_access_tokens` VALUES ('20', 'App\\Models\\User', '17', 'API TOKEN', '3b5cc8c6194d2c9301521f70ea00e5b76a98bf97c31a897a6f3ef6be2c9c9f1e', '[\"*\"]', null, null, '2023-03-11 15:07:55', '2023-03-11 15:07:55');
INSERT INTO `personal_access_tokens` VALUES ('21', 'App\\Models\\User', '17', 'API TOKEN', 'c1e53fa41a3838480bbbb85fcd0555b41fb1f817cd7eda446caee7ebb627f853', '[\"*\"]', null, null, '2023-03-11 15:08:15', '2023-03-11 15:08:15');
INSERT INTO `personal_access_tokens` VALUES ('22', 'App\\Models\\User', '17', 'API TOKEN', '0a4bf70f09770fc8672d78993f40453a66fdfd78c3a27947ab7d46a78948a028', '[\"*\"]', null, null, '2023-03-11 15:08:17', '2023-03-11 15:08:17');
INSERT INTO `personal_access_tokens` VALUES ('23', 'App\\Models\\User', '18', 'API TOKEN', 'a14508f0929d5c16cf4c6786329bdb2f5d098222c43f1223178e82bd209e6c31', '[\"*\"]', null, null, '2023-03-11 15:10:16', '2023-03-11 15:10:16');
INSERT INTO `personal_access_tokens` VALUES ('24', 'App\\Models\\User', '20', 'API TOKEN', '2cb3caa87e77c8287997585de5e6d5a25f7cbaeba3ace5d7f353b9b4be1fa817', '[\"*\"]', null, null, '2023-03-11 15:42:36', '2023-03-11 15:42:36');
INSERT INTO `personal_access_tokens` VALUES ('25', 'App\\Models\\User', '20', 'API TOKEN', 'c5bec2672f33a861ff53811f37c2fc0b2fd1273b2d4df46b4ee61ea80659e610', '[\"*\"]', null, null, '2023-03-11 15:44:41', '2023-03-11 15:44:41');
INSERT INTO `personal_access_tokens` VALUES ('26', 'App\\Models\\User', '20', 'API TOKEN', 'f2f5b40b19ba6e543491a80563c2db49edc5ceb772194740d5a1a96dd8f894b7', '[\"*\"]', null, null, '2023-03-11 15:49:38', '2023-03-11 15:49:38');
INSERT INTO `personal_access_tokens` VALUES ('27', 'App\\Models\\User', '20', 'API TOKEN', '199ee33a1dfd9c244b63785ef23ace846263f2266c00e76d06030d691ff6d9ce', '[\"*\"]', null, null, '2023-03-11 16:00:01', '2023-03-11 16:00:01');
INSERT INTO `personal_access_tokens` VALUES ('28', 'App\\Models\\User', '20', 'API TOKEN', 'a4be16a08ecbfb3302cc1e1bc9d07ce0e3910e7a82809b2cabae8cfe04714654', '[\"*\"]', null, null, '2023-03-12 05:57:17', '2023-03-12 05:57:17');
INSERT INTO `personal_access_tokens` VALUES ('29', 'App\\Models\\User', '21', 'API TOKEN', 'e3def2a9680fe1218995033a750d7a0a0e7f71fd784c84c5f31bd9b8d083b73d', '[\"*\"]', null, null, '2023-03-12 05:59:46', '2023-03-12 05:59:46');
INSERT INTO `personal_access_tokens` VALUES ('30', 'App\\Models\\User', '20', 'API TOKEN', 'eb05e5fcd0464b37b612356798c9c0dbd78939123cbfc843a8a67c45bd6d98b3', '[\"*\"]', null, null, '2023-03-13 23:40:32', '2023-03-13 23:40:32');
INSERT INTO `personal_access_tokens` VALUES ('31', 'App\\Models\\User', '1', 'API TOKEN', 'f7bbcb9ebb7b48847a8c17f7d5aced7ab13059df9c5684e0cee243687cd3a65a', '[\"*\"]', null, null, '2023-03-16 05:56:17', '2023-03-16 05:56:17');
INSERT INTO `personal_access_tokens` VALUES ('32', 'App\\Models\\User', '1', 'API TOKEN', '2c08366b4110aa6483fac8c009f197140e071944dcc4867be8d1748135beda08', '[\"*\"]', null, null, '2023-03-16 06:03:46', '2023-03-16 06:03:46');
INSERT INTO `personal_access_tokens` VALUES ('33', 'App\\Models\\User', '1', 'API TOKEN', 'aeaa288a46e1796cf8bdd56becdda1641113db2c3ba935def8b87ada42c9c23b', '[\"*\"]', null, null, '2023-03-16 06:32:11', '2023-03-16 06:32:11');
INSERT INTO `personal_access_tokens` VALUES ('34', 'App\\Models\\User', '1', 'API TOKEN', '491c37db08ed7a1f41c79181c31f1367dd6425a904a9faba21ef44470a89e82b', '[\"*\"]', null, null, '2023-03-16 06:34:46', '2023-03-16 06:34:46');
INSERT INTO `personal_access_tokens` VALUES ('35', 'App\\Models\\User', '1', 'API TOKEN', 'e1b46f30553a72f84ebb55dbbfa4c26e231ab867470bd55e1616956ea109d37b', '[\"*\"]', null, null, '2023-03-16 06:35:43', '2023-03-16 06:35:43');
INSERT INTO `personal_access_tokens` VALUES ('36', 'App\\Models\\User', '1', 'API TOKEN', '964b1f18c00b375b2bf3741393b23412edced5cb6eda4f82a0308bfb969a29f9', '[\"*\"]', null, null, '2023-03-16 06:44:35', '2023-03-16 06:44:35');
INSERT INTO `personal_access_tokens` VALUES ('37', 'App\\Models\\User', '1', 'API TOKEN', 'cde5f1825165fdc0d15972f2e28a6ceee52a7198de7482302bceb67a21941e6e', '[\"*\"]', null, null, '2023-03-16 06:55:41', '2023-03-16 06:55:41');
INSERT INTO `personal_access_tokens` VALUES ('38', 'App\\Models\\User', '1', 'API TOKEN', 'bff371adf319b936855d7b64858781e37d7ed57d4a26bebd6a69ca58957d5afb', '[\"*\"]', null, null, '2023-03-16 07:13:03', '2023-03-16 07:13:03');
INSERT INTO `personal_access_tokens` VALUES ('39', 'App\\Models\\User', '1', 'API TOKEN', 'e865cc7b06b71c5fddc315c6dccfc336e36f80eead487b9c183b5143829df3c2', '[\"*\"]', null, null, '2023-03-16 07:17:54', '2023-03-16 07:17:54');
INSERT INTO `personal_access_tokens` VALUES ('40', 'App\\Models\\User', '1', 'API TOKEN', '8d14ce3988d710004a90ff24f038b87adb8749dadf2718157be15ce468c7e5f2', '[\"*\"]', null, null, '2023-03-16 07:19:16', '2023-03-16 07:19:16');
INSERT INTO `personal_access_tokens` VALUES ('41', 'App\\Models\\User', '1', 'API TOKEN', '584a901db143d9d7dd40fda5accea08149a653e68d382357949ad4c4e6cedd10', '[\"*\"]', null, null, '2023-03-16 07:21:23', '2023-03-16 07:21:23');
INSERT INTO `personal_access_tokens` VALUES ('42', 'App\\Models\\User', '1', 'API TOKEN', '03eb510801f01a0793ff9fef02a2cb6493e39d5fca8c9adf0159416c3df8ee41', '[\"*\"]', null, null, '2023-03-16 07:22:52', '2023-03-16 07:22:52');
INSERT INTO `personal_access_tokens` VALUES ('43', 'App\\Models\\User', '1', 'API TOKEN', '2969591f6d851002df05d3a95ef825f1566969d99ad2626d90697fefa4a61396', '[\"*\"]', null, null, '2023-03-16 07:25:43', '2023-03-16 07:25:43');
INSERT INTO `personal_access_tokens` VALUES ('44', 'App\\Models\\User', '22', 'API TOKEN', '945abb25571267a19aa8a64deb5d80d7abf188f87bccdcd707f6e184dcd781ad', '[\"*\"]', null, null, '2023-03-16 07:44:45', '2023-03-16 07:44:45');
INSERT INTO `personal_access_tokens` VALUES ('45', 'App\\Models\\User', '23', 'API TOKEN', '5bdf9d6bdeeea0af053bb505ef0b7038a937350cf78356b07d2a5ef218062b91', '[\"*\"]', null, null, '2023-03-16 11:47:59', '2023-03-16 11:47:59');
INSERT INTO `personal_access_tokens` VALUES ('46', 'App\\Models\\User', '24', 'API TOKEN', '47557156df5412eba05ade0470d9f4de2840d786503e20515febee14d4dff8cb', '[\"*\"]', null, null, '2023-03-16 12:00:20', '2023-03-16 12:00:20');
INSERT INTO `personal_access_tokens` VALUES ('47', 'App\\Models\\User', '25', 'API TOKEN', '7b5baa3713cbc955f6f847dd5faf3bbec372f8544e29630bf530935699ece480', '[\"*\"]', null, null, '2023-03-16 12:15:20', '2023-03-16 12:15:20');
INSERT INTO `personal_access_tokens` VALUES ('48', 'App\\Models\\User', '25', 'API TOKEN', 'fec4d93a87aee75a2ee403d37ae35709dc27d6c52e4ee6864889c8e1ae5beefa', '[\"*\"]', null, null, '2023-03-16 12:16:41', '2023-03-16 12:16:41');
INSERT INTO `personal_access_tokens` VALUES ('49', 'App\\Models\\User', '25', 'API TOKEN', '402617b0fe9e7c109fe8e017fbf992520c0cad7c447b0b2e9400521245053592', '[\"*\"]', null, null, '2023-03-16 12:17:12', '2023-03-16 12:17:12');
INSERT INTO `personal_access_tokens` VALUES ('50', 'App\\Models\\User', '25', 'API TOKEN', 'fae533c6e09f73e872c5ba922285617c3021fb2f12fcda30ec8979e454b40eb5', '[\"*\"]', null, null, '2023-03-16 12:18:45', '2023-03-16 12:18:45');
INSERT INTO `personal_access_tokens` VALUES ('51', 'App\\Models\\User', '26', 'API TOKEN', 'cc44001efe450bcf2b0bad63e74ae6858d343ec79708fc0e1072e9cbfd49b47f', '[\"*\"]', null, null, '2023-03-16 15:06:51', '2023-03-16 15:06:51');
INSERT INTO `personal_access_tokens` VALUES ('52', 'App\\Models\\User', '26', 'API TOKEN', '0311e8676a60950ea13f4763ded3705c2bbbd2cabbdce10ca10595f8bad923d2', '[\"*\"]', null, null, '2023-03-16 15:08:50', '2023-03-16 15:08:50');
INSERT INTO `personal_access_tokens` VALUES ('53', 'App\\Models\\User', '26', 'API TOKEN', '507e956f7fd204d3046bd5eb2d7bdbec9441a43154d15ee004af364cb3a939c6', '[\"*\"]', null, null, '2023-03-16 15:09:37', '2023-03-16 15:09:37');
INSERT INTO `personal_access_tokens` VALUES ('54', 'App\\Models\\User', '26', 'API TOKEN', '1a41a56a94ee059cb3d22202369ad569878dab2d97e7a8b1f5291d06eda8289b', '[\"*\"]', null, null, '2023-03-16 15:12:51', '2023-03-16 15:12:51');
INSERT INTO `personal_access_tokens` VALUES ('55', 'App\\Models\\User', '26', 'API TOKEN', '6c6808195a9bbf1d1286d503b3ce35755ac09a322516bad48d2972381bd4d75f', '[\"*\"]', null, null, '2023-03-16 15:17:21', '2023-03-16 15:17:21');
INSERT INTO `personal_access_tokens` VALUES ('56', 'App\\Models\\User', '26', 'API TOKEN', '3468926ac4ab493142a0416e258de16c29a01eb44084845f4930e02669e28025', '[\"*\"]', null, null, '2023-03-16 15:32:53', '2023-03-16 15:32:53');
INSERT INTO `personal_access_tokens` VALUES ('57', 'App\\Models\\User', '26', 'API TOKEN', '325e582fc9a1eccde46b85b04c3a0d93e9f02d58302244f6fe502c82c612d0c4', '[\"*\"]', null, null, '2023-03-16 15:36:40', '2023-03-16 15:36:40');
INSERT INTO `personal_access_tokens` VALUES ('58', 'App\\Models\\User', '26', 'API TOKEN', '38d5c99e977fa0520ca05e48e3d67bdfde23a667521401aadba902597b442ccc', '[\"*\"]', null, null, '2023-03-16 15:39:36', '2023-03-16 15:39:36');
INSERT INTO `personal_access_tokens` VALUES ('59', 'App\\Models\\User', '26', 'API TOKEN', '7d58ca70957f7dc740e375df9c849321b4185443e697cbbc6da903a1a24a8d4a', '[\"*\"]', null, null, '2023-03-16 15:40:33', '2023-03-16 15:40:33');
INSERT INTO `personal_access_tokens` VALUES ('60', 'App\\Models\\User', '26', 'API TOKEN', '3c808bdab721efb682272c97cf107157affdad4157e2e842b793682734d6abfb', '[\"*\"]', null, null, '2023-03-16 15:46:03', '2023-03-16 15:46:03');
INSERT INTO `personal_access_tokens` VALUES ('61', 'App\\Models\\User', '26', 'API TOKEN', '6c41acbb261abb13e18489f2a438b9de92d2138331fbbaec9c1b8b906147b5d8', '[\"*\"]', null, null, '2023-03-16 16:04:22', '2023-03-16 16:04:22');
INSERT INTO `personal_access_tokens` VALUES ('62', 'App\\Models\\User', '26', 'API TOKEN', 'bc96b56a61f865615a1e69da9bbd023bc50c3f3b2b43f103db5484d19c6660b6', '[\"*\"]', null, null, '2023-03-16 16:05:05', '2023-03-16 16:05:05');
INSERT INTO `personal_access_tokens` VALUES ('63', 'App\\Models\\User', '27', 'API TOKEN', 'f4136dd0cf85aa51684f2f9703b8d04059f3a3eb91f78542430039efedcf347a', '[\"*\"]', null, null, '2023-03-16 16:06:05', '2023-03-16 16:06:05');
INSERT INTO `personal_access_tokens` VALUES ('64', 'App\\Models\\User', '1', 'API TOKEN', '9af81d784ee89076f192b66ee93f116329a40b993669eba23b7fdefcc51ff764', '[\"*\"]', null, null, '2023-03-16 16:07:12', '2023-03-16 16:07:12');
INSERT INTO `personal_access_tokens` VALUES ('65', 'App\\Models\\User', '26', 'API TOKEN', '850333d1e6e475ed8b975b71d5d1a106e14c51d99bf0f09ef465c1edd98917bd', '[\"*\"]', null, null, '2023-04-10 10:09:06', '2023-04-10 10:09:06');
INSERT INTO `personal_access_tokens` VALUES ('66', 'App\\Models\\User', '26', 'API TOKEN', '190c0ade7dabce9f8618dd42cfcaf8281e088f4697db03478533fb069f99cf92', '[\"*\"]', null, null, '2023-04-10 10:12:51', '2023-04-10 10:12:51');
INSERT INTO `personal_access_tokens` VALUES ('67', 'App\\Models\\User', '26', 'API TOKEN', 'd59ae4dca0ac3943e5ee71fa985e37543356378fd25e7c8b19fc1a31071e027f', '[\"*\"]', null, null, '2023-04-20 15:41:11', '2023-04-20 15:41:11');
INSERT INTO `personal_access_tokens` VALUES ('68', 'App\\Models\\User', '26', 'API TOKEN', '27f8b13d455aeb4ebccb47f3b6225068a177d21b71614244446cfadd97b78539', '[\"*\"]', null, null, '2023-04-20 16:33:59', '2023-04-20 16:33:59');
INSERT INTO `personal_access_tokens` VALUES ('69', 'App\\Models\\User', '26', 'API TOKEN', '502f5f186785a77f14d2e980dfbcc434a248863414fbeefb099a1f86c7841692', '[\"*\"]', null, null, '2023-04-21 09:59:12', '2023-04-21 09:59:12');
INSERT INTO `personal_access_tokens` VALUES ('70', 'App\\Models\\User', '26', 'API TOKEN', '75259877b513fbacba1117f9f344204431b244cdeefc787b1df32eff6e6aeeba', '[\"*\"]', null, null, '2023-04-24 22:18:09', '2023-04-24 22:18:09');
INSERT INTO `personal_access_tokens` VALUES ('71', 'App\\Models\\User', '26', 'API TOKEN', '1b466e38f882a5100df66f05fc5d8bc745e0d48c5a57e2adc414666dd2fd0893', '[\"*\"]', null, null, '2023-04-26 10:09:51', '2023-04-26 10:09:51');
INSERT INTO `personal_access_tokens` VALUES ('72', 'App\\Models\\User', '2', 'API TOKEN', '5e236bdb63d4583391bb4a9027e6cb6a79a5790c189837b26645e90325858f22', '[\"*\"]', null, null, '2023-04-26 10:11:14', '2023-04-26 10:11:14');
INSERT INTO `personal_access_tokens` VALUES ('73', 'App\\Models\\User', '2', 'API TOKEN', '9d4046682ee0ee3cab096ee97cf75bb06a8bf2e6755f65fd56f2061f697e063b', '[\"*\"]', null, null, '2023-04-27 22:19:17', '2023-04-27 22:19:17');
INSERT INTO `personal_access_tokens` VALUES ('74', 'App\\Models\\User', '2', 'API TOKEN', '1be62acaa6b853b30c46c6083b3ee4c9db720a74aebf58ec753f5c0dcade61dc', '[\"*\"]', null, null, '2023-04-27 22:20:57', '2023-04-27 22:20:57');
INSERT INTO `personal_access_tokens` VALUES ('75', 'App\\Models\\User', '26', 'API TOKEN', '6b426f3529fcd77db9ae9cd6dc094e301626545d42b734c6aa78b1c95090d33d', '[\"*\"]', null, null, '2023-04-27 22:22:40', '2023-04-27 22:22:40');
INSERT INTO `personal_access_tokens` VALUES ('76', 'App\\Models\\User', '26', 'API TOKEN', '818314004d35f4d3c0c11b29c4e63d85efab9a8fbe1d9ec3f8aeeeddf14aae24', '[\"*\"]', null, null, '2023-04-27 22:49:05', '2023-04-27 22:49:05');
INSERT INTO `personal_access_tokens` VALUES ('77', 'App\\Models\\User', '26', 'API TOKEN', '701dac006cc5fcbc738968084d75575bd2d449ebcc93eea8bba7f28235be080b', '[\"*\"]', null, null, '2023-04-27 22:58:43', '2023-04-27 22:58:43');
INSERT INTO `personal_access_tokens` VALUES ('78', 'App\\Models\\User', '26', 'API TOKEN', 'fdac7410961773400e71ed209f83e77303e169c0ed30e6e92baff7b633c7b325', '[\"*\"]', null, null, '2023-04-27 23:00:45', '2023-04-27 23:00:45');
INSERT INTO `personal_access_tokens` VALUES ('79', 'App\\Models\\User', '26', 'API TOKEN', 'c563fb48c771eac1c397baff09cce156ea9ca45c9dd63a56ca449ca14e87bbf9', '[\"*\"]', null, null, '2023-04-27 23:48:50', '2023-04-27 23:48:50');
INSERT INTO `personal_access_tokens` VALUES ('80', 'App\\Models\\User', '26', 'API TOKEN', '4bc93009eac7e633fa449b089ff990f3936be4b4296b7855bc4c38d814d74e01', '[\"*\"]', null, null, '2023-04-28 01:37:02', '2023-04-28 01:37:02');
INSERT INTO `personal_access_tokens` VALUES ('81', 'App\\Models\\User', '26', 'API TOKEN', 'ffb1f947ddc228a829f141329db29dbde6358244c23b6b78537b94c2c1628547', '[\"*\"]', null, null, '2023-04-29 14:06:39', '2023-04-29 14:06:39');
INSERT INTO `personal_access_tokens` VALUES ('82', 'App\\Models\\User', '26', 'API TOKEN', '46b27c508db8c6ee9f86e4fb4cf1dc188da1813f2c8fb24ab0197faa0ee984ed', '[\"*\"]', null, null, '2023-04-29 14:35:40', '2023-04-29 14:35:40');
INSERT INTO `personal_access_tokens` VALUES ('83', 'App\\Models\\User', '26', 'API TOKEN', 'fb81e17a54df6103469a105115c338fc4b3b88491a0613c41b316c0f3b4a5ba3', '[\"*\"]', null, null, '2023-04-29 14:50:48', '2023-04-29 14:50:48');
INSERT INTO `personal_access_tokens` VALUES ('84', 'App\\Models\\User', '26', 'API TOKEN', '22253f6809741d652c4fa8bab1d08c726057cfff35201e2b62dc4e8a47e7cd75', '[\"*\"]', null, null, '2023-05-01 02:32:44', '2023-05-01 02:32:44');
INSERT INTO `personal_access_tokens` VALUES ('85', 'App\\Models\\User', '26', 'API TOKEN', '8f560b92ff03d02a9be8dc57f7dc6ec25d86e0770a51155cda8116d4f64f4283', '[\"*\"]', null, null, '2023-05-02 13:57:46', '2023-05-02 13:57:46');
INSERT INTO `personal_access_tokens` VALUES ('86', 'App\\Models\\User', '26', 'API TOKEN', '748f58120744908afc9806b8fc2e076c8cfcdab63545a2184a56cc437b1b716c', '[\"*\"]', null, null, '2023-05-02 19:22:14', '2023-05-02 19:22:14');
INSERT INTO `personal_access_tokens` VALUES ('87', 'App\\Models\\User', '2', 'API TOKEN', 'c5c31bdc1a2956dd9898c6e844829bf58ad9cb187913e53b58e2ddbf8149c96c', '[\"*\"]', null, null, '2023-05-19 19:37:01', '2023-05-19 19:37:01');
INSERT INTO `personal_access_tokens` VALUES ('88', 'App\\Models\\User', '26', 'API TOKEN', '15d40b6e82e946fa3c2a9256291d32c0250440130e99c0f77ebe8fbe6fe11260', '[\"*\"]', null, null, '2023-05-24 11:00:10', '2023-05-24 11:00:10');
INSERT INTO `personal_access_tokens` VALUES ('89', 'App\\Models\\User', '27', 'API TOKEN', 'edf4eeb633990fb0008d7cb21588627c6fbe0298d24fbfc19d1dbb4190895a14', '[\"*\"]', null, null, '2023-05-24 13:49:40', '2023-05-24 13:49:40');
INSERT INTO `personal_access_tokens` VALUES ('90', 'App\\Models\\User', '26', 'API TOKEN', '325febd4a73291925f016109b6257bfbacfe1f5ddb6fee12306c0a796c9ae5dd', '[\"*\"]', null, null, '2023-05-25 17:07:13', '2023-05-25 17:07:13');
INSERT INTO `personal_access_tokens` VALUES ('91', 'App\\Models\\User', '26', 'API TOKEN', 'e28eb3a9265634cf4b732a45d5ebd31f54686ae42a3c6af9f4653a0df66ebd8d', '[\"*\"]', null, null, '2023-06-02 20:35:22', '2023-06-02 20:35:22');
INSERT INTO `personal_access_tokens` VALUES ('92', 'App\\Models\\User', '26', 'API TOKEN', '88dbe9cf02ddb45ef380e1e9feb09d36df30066b3ac6642973c67c7ec00c8241', '[\"*\"]', null, null, '2023-06-03 11:17:39', '2023-06-03 11:17:39');
INSERT INTO `personal_access_tokens` VALUES ('93', 'App\\Models\\User', '26', 'API TOKEN', '69e40fb976172f971c442fdaab7a08d39d181e57190fc50f45fa9b6f921494e0', '[\"*\"]', null, null, '2023-06-03 11:43:09', '2023-06-03 11:43:09');
INSERT INTO `personal_access_tokens` VALUES ('94', 'App\\Models\\User', '26', 'API TOKEN', '1246c7f2466714a4143145d99462aed0c4f516e7cdc46f090968f6a3ad7187f6', '[\"*\"]', null, null, '2023-06-08 16:43:21', '2023-06-08 16:43:21');
INSERT INTO `personal_access_tokens` VALUES ('95', 'App\\Models\\User', '26', 'API TOKEN', '55bb1de3d8b6e11a2fa49e38c900df5b69c2fe57a98ef355ce0bddc1714c41b5', '[\"*\"]', null, null, '2023-06-23 21:09:59', '2023-06-23 21:09:59');
INSERT INTO `personal_access_tokens` VALUES ('96', 'App\\Models\\User', '2', 'API TOKEN', 'cfd6692a19fd0a130bfb005fd93157115db8c49740794e43e886a565a0ae5766', '[\"*\"]', null, null, '2023-06-29 14:38:14', '2023-06-29 14:38:14');

-- ----------------------------
-- Table structure for `previllage`
-- ----------------------------
CREATE TABLE `previllage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ability` int(11) DEFAULT NULL,
  `add` int(11) DEFAULT NULL,
  `update` int(11) DEFAULT NULL,
  `delete` int(11) DEFAULT NULL,
  `search` int(11) DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `pages_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `usertype_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_previllage_pages1_idx` (`pages_id`),
  KEY `fk_previllage_usertype1_idx` (`usertype_id`),
  KEY `fk_previllage_user1_idx` (`user_id`),
  CONSTRAINT `fk_previllage_pages1` FOREIGN KEY (`pages_id`) REFERENCES `pages` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_previllage_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_previllage_usertype1` FOREIGN KEY (`usertype_id`) REFERENCES `usertype` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=1400 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of previllage
-- ----------------------------
INSERT INTO `previllage` VALUES ('365', '1', '0', '0', '0', '0', '1', '1', null, '4');
INSERT INTO `previllage` VALUES ('366', '1', '1', '1', '1', '1', '1', '2', null, '4');
INSERT INTO `previllage` VALUES ('367', '1', '1', '1', '1', '1', '1', '3', null, '4');
INSERT INTO `previllage` VALUES ('368', '1', '1', '1', '1', '1', '1', '4', null, '4');
INSERT INTO `previllage` VALUES ('369', '1', '1', '1', '1', '1', '1', '5', null, '4');
INSERT INTO `previllage` VALUES ('370', '1', '1', '1', '1', '1', '1', '6', null, '4');
INSERT INTO `previllage` VALUES ('371', '1', '1', '1', '1', '1', '1', '7', null, '4');
INSERT INTO `previllage` VALUES ('372', '1', '1', '1', '1', '1', '1', '8', null, '4');
INSERT INTO `previllage` VALUES ('373', '1', '1', '1', '1', '1', '1', '9', null, '4');
INSERT INTO `previllage` VALUES ('374', '1', '1', '1', '1', '1', '1', '10', null, '4');
INSERT INTO `previllage` VALUES ('375', '1', '1', '1', '1', '1', '1', '11', null, '4');
INSERT INTO `previllage` VALUES ('376', '1', '1', '1', '1', '1', '1', '12', null, '4');
INSERT INTO `previllage` VALUES ('377', '1', '1', '1', '1', '1', '1', '13', null, '4');
INSERT INTO `previllage` VALUES ('378', '1', '0', '0', '1', '0', '1', '14', null, '4');
INSERT INTO `previllage` VALUES ('379', '1', '0', '0', '1', '0', '1', '15', null, '4');
INSERT INTO `previllage` VALUES ('1295', '0', '0', '0', '0', '0', '1', '1', null, '2');
INSERT INTO `previllage` VALUES ('1296', '1', '1', '1', '1', '0', '1', '2', null, '2');
INSERT INTO `previllage` VALUES ('1297', '1', '1', '1', '1', '0', '1', '3', null, '2');
INSERT INTO `previllage` VALUES ('1298', '1', '1', '1', '1', '0', '1', '4', null, '2');
INSERT INTO `previllage` VALUES ('1299', '1', '1', '0', '1', '0', '1', '5', null, '2');
INSERT INTO `previllage` VALUES ('1300', '1', '1', '1', '1', '0', '1', '6', null, '2');
INSERT INTO `previllage` VALUES ('1301', '1', '0', '0', '0', '0', '1', '7', null, '2');
INSERT INTO `previllage` VALUES ('1302', '1', '1', '1', '1', '0', '1', '8', null, '2');
INSERT INTO `previllage` VALUES ('1303', '1', '1', '1', '1', '0', '1', '9', null, '2');
INSERT INTO `previllage` VALUES ('1304', '1', '1', '1', '1', '1', '1', '10', null, '2');
INSERT INTO `previllage` VALUES ('1305', '1', '0', '0', '0', '1', '1', '11', null, '2');
INSERT INTO `previllage` VALUES ('1306', '1', '1', '1', '1', '1', '1', '12', null, '2');
INSERT INTO `previllage` VALUES ('1307', '1', '1', '1', '1', '0', '1', '13', null, '2');
INSERT INTO `previllage` VALUES ('1308', '1', '0', '0', '1', '1', '1', '14', null, '2');
INSERT INTO `previllage` VALUES ('1309', '1', '0', '0', '1', '0', '1', '15', null, '2');
INSERT INTO `previllage` VALUES ('1355', '1', '0', '0', '0', '0', '1', '1', null, '3');
INSERT INTO `previllage` VALUES ('1356', '0', '0', '0', '0', '0', '1', '2', null, '3');
INSERT INTO `previllage` VALUES ('1357', '0', '0', '0', '0', '0', '1', '3', null, '3');
INSERT INTO `previllage` VALUES ('1358', '0', '0', '0', '0', '0', '1', '4', null, '3');
INSERT INTO `previllage` VALUES ('1359', '0', '0', '0', '0', '0', '1', '5', null, '3');
INSERT INTO `previllage` VALUES ('1360', '0', '0', '0', '0', '0', '1', '6', null, '3');
INSERT INTO `previllage` VALUES ('1361', '0', '0', '0', '0', '0', '1', '7', null, '3');
INSERT INTO `previllage` VALUES ('1362', '0', '0', '0', '0', '0', '1', '8', null, '3');
INSERT INTO `previllage` VALUES ('1363', '0', '0', '0', '0', '0', '1', '9', null, '3');
INSERT INTO `previllage` VALUES ('1364', '1', '0', '0', '0', '1', '1', '10', null, '3');
INSERT INTO `previllage` VALUES ('1365', '1', '0', '0', '0', '1', '1', '11', null, '3');
INSERT INTO `previllage` VALUES ('1366', '0', '0', '0', '0', '0', '1', '12', null, '3');
INSERT INTO `previllage` VALUES ('1367', '0', '0', '0', '0', '0', '1', '13', null, '3');
INSERT INTO `previllage` VALUES ('1368', '1', '0', '0', '0', '1', '1', '14', null, '3');
INSERT INTO `previllage` VALUES ('1369', '0', '0', '0', '0', '0', '1', '15', null, '3');
INSERT INTO `previllage` VALUES ('1385', '1', '0', '0', '0', '0', '1', '1', null, '1');
INSERT INTO `previllage` VALUES ('1386', '1', '1', '1', '1', '0', '1', '2', null, '1');
INSERT INTO `previllage` VALUES ('1387', '1', '1', '1', '1', '0', '1', '3', null, '1');
INSERT INTO `previllage` VALUES ('1388', '1', '1', '1', '1', '0', '1', '4', null, '1');
INSERT INTO `previllage` VALUES ('1389', '1', '1', '1', '1', '0', '1', '5', null, '1');
INSERT INTO `previllage` VALUES ('1390', '1', '1', '1', '1', '0', '1', '6', null, '1');
INSERT INTO `previllage` VALUES ('1391', '1', '0', '0', '0', '0', '1', '7', null, '1');
INSERT INTO `previllage` VALUES ('1392', '1', '1', '1', '1', '0', '1', '8', null, '1');
INSERT INTO `previllage` VALUES ('1393', '1', '1', '1', '1', '0', '1', '9', null, '1');
INSERT INTO `previllage` VALUES ('1394', '1', '1', '1', '1', '1', '1', '10', null, '1');
INSERT INTO `previllage` VALUES ('1395', '1', '0', '0', '0', '1', '1', '11', null, '1');
INSERT INTO `previllage` VALUES ('1396', '1', '1', '1', '1', '1', '1', '12', null, '1');
INSERT INTO `previllage` VALUES ('1397', '1', '1', '1', '1', '0', '1', '13', null, '1');
INSERT INTO `previllage` VALUES ('1398', '1', '0', '0', '1', '1', '1', '14', null, '1');
INSERT INTO `previllage` VALUES ('1399', '1', '0', '0', '1', '0', '1', '15', null, '1');

-- ----------------------------
-- Table structure for `publisher`
-- ----------------------------
CREATE TABLE `publisher` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(500) DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_publisher_user1_idx` (`user_id`),
  CONSTRAINT `fk_publisher_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of publisher
-- ----------------------------
INSERT INTO `publisher` VALUES ('1', 'Samudra Publications', '1', null, '0');
INSERT INTO `publisher` VALUES ('2', 'Gunasena Publications', '1', null, '0');
INSERT INTO `publisher` VALUES ('3', 'ABCD Publications', '1', null, '0');
INSERT INTO `publisher` VALUES ('4', 'Srasavi Publications', '1', null, '0');
INSERT INTO `publisher` VALUES ('5', 'Wasana Publications', '1', '2023-06-19 13:08:48', '1');
INSERT INTO `publisher` VALUES ('6', 'eeeett', '2', '2023-04-29 23:37:53', '1');
INSERT INTO `publisher` VALUES ('7', 'sass ba11', '2', '2023-05-02 10:15:58', '35');

-- ----------------------------
-- Table structure for `purchase`
-- ----------------------------
CREATE TABLE `purchase` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `cart_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_purchase_cart1_idx` (`cart_id`),
  CONSTRAINT `fk_purchase_cart1` FOREIGN KEY (`cart_id`) REFERENCES `cart` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of purchase
-- ----------------------------
INSERT INTO `purchase` VALUES ('10', '2023-04-13 10:21:10', '1', '48');
INSERT INTO `purchase` VALUES ('11', '2023-04-25 00:33:08', '1', '84');
INSERT INTO `purchase` VALUES ('12', '2023-04-27 22:21:38', '1', '124');
INSERT INTO `purchase` VALUES ('14', '2023-04-30 23:06:29', '1', '199');
INSERT INTO `purchase` VALUES ('15', '2023-07-01 18:23:37', '1', '232');

-- ----------------------------
-- Table structure for `purchase_details`
-- ----------------------------
CREATE TABLE `purchase_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `status` varchar(5) DEFAULT NULL,
  `purchase_id` int(11) NOT NULL,
  `book_id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_purchase_details_purchase1_idx` (`purchase_id`),
  KEY `fk_purchase_details_book1_idx` (`book_id`),
  KEY `fk_purchase_details_user1_idx` (`user_id`),
  CONSTRAINT `fk_purchase_details_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_purchase_details_purchase1` FOREIGN KEY (`purchase_id`) REFERENCES `purchase` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_purchase_details_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of purchase_details
-- ----------------------------
INSERT INTO `purchase_details` VALUES ('10', '1', '10', '13', '26');
INSERT INTO `purchase_details` VALUES ('11', '1', '10', '14', '26');
INSERT INTO `purchase_details` VALUES ('12', '1', '11', '17', '26');
INSERT INTO `purchase_details` VALUES ('13', '1', '12', '15', '2');
INSERT INTO `purchase_details` VALUES ('17', '1', '14', '3', '26');
INSERT INTO `purchase_details` VALUES ('18', '1', '14', '2', '26');
INSERT INTO `purchase_details` VALUES ('19', '1', '15', '23', '2');
INSERT INTO `purchase_details` VALUES ('20', '1', '15', '17', '2');

-- ----------------------------
-- Table structure for `review`
-- ----------------------------
CREATE TABLE `review` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `description` longtext,
  `rating` double DEFAULT NULL,
  `face_comment` varchar(2) DEFAULT NULL,
  `created` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `actionuser` varchar(45) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `book_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_review_user1_idx` (`user_id`),
  KEY `fk_review_book1_idx` (`book_id`),
  CONSTRAINT `fk_review_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_review_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of review
-- ----------------------------
INSERT INTO `review` VALUES ('1', 'Nice book to read', '4', '1', '2023-03-29 19:56:04', '1', null, '26', '1');
INSERT INTO `review` VALUES ('2', 'good', '2', '2', '2023-03-28 19:56:57', '1', null, '27', '1');
INSERT INTO `review` VALUES ('3', 'no not good', '0', null, '2023-03-27 19:57:30', '1', null, '2', '1');
INSERT INTO `review` VALUES ('4', 'ok', '1', '1', '2023-03-20 05:49:36', '1', null, '5', '2');
INSERT INTO `review` VALUES ('5', 'bad test', '2', '2', '2023-03-30 19:24:50', '1', null, '26', '1');
INSERT INTO `review` VALUES ('8', 'tes', '4', '1', '2023-03-31 04:28:48', '1', null, '26', '1');
INSERT INTO `review` VALUES ('9', 'Good for Students', '2', '1', '2023-03-31 04:57:01', '1', null, '26', '9');
INSERT INTO `review` VALUES ('10', 'Good book', '3', '1', '2023-04-01 07:59:57', '1', null, '26', '5');
INSERT INTO `review` VALUES ('11', 'good', '2', '1', '2023-04-11 19:41:59', '1', null, '26', '3');
INSERT INTO `review` VALUES ('12', 'no', '0', '2', '2023-04-11 19:43:18', '1', null, '26', '3');
INSERT INTO `review` VALUES ('13', 'Good', '2', '1', '2023-04-20 19:19:57', '1', null, '26', '14');
INSERT INTO `review` VALUES ('15', null, '2', null, '2023-05-10 11:57:31', '1', null, '26', '16');
INSERT INTO `review` VALUES ('16', 'yes good', '3', null, '2023-05-10 12:00:38', '2', '1', '1', '16');
INSERT INTO `review` VALUES ('17', null, '3', null, '2023-05-10 12:02:21', '1', null, '26', '9');

-- ----------------------------
-- Table structure for `user`
-- ----------------------------
CREATE TABLE `user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(300) DEFAULT NULL,
  `username` mediumtext,
  `email` mediumtext,
  `contact` varchar(15) DEFAULT NULL,
  `pw` longtext,
  `created` datetime DEFAULT NULL,
  `platform` varchar(11) DEFAULT NULL,
  `logtype` varchar(45) DEFAULT NULL,
  `actionuser` varchar(45) DEFAULT NULL,
  `lastupdate` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `usertype_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_user_usertype_idx` (`usertype_id`),
  CONSTRAINT `fk_user_usertype` FOREIGN KEY (`usertype_id`) REFERENCES `usertype` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'Admin', 'Admin', 'bandara@gmail.com', '', '$2a$12$3ENeBqQpNd1h0rIbU6Nf6uHnCrzQhTe0YGOv9wg12qrzwTXoeVa2K', '2023-03-05 21:12:08', 'WEB', 'gen', null, null, '1', '1');
INSERT INTO `user` VALUES ('2', 'Amal', '0719030387', 'abc@gmail.com', '0778626262', '$2y$10$xwa0eKNzohr86G9PVKCGfuZ32YOIjfAys7EnTGjLL1K5uLMuVriDy', '2023-03-05 21:19:50', 'MOBILE', 'gen', null, null, '1', '4');
INSERT INTO `user` VALUES ('3', 'abc', '0719030389', null, '0716292027', '$2y$10$WMq2CULRJfN7GZqYdYLb8eBL.MoSC/Cx/WchjQiKuWIgWGWSEVoyi', '2023-03-05 23:05:37', 'MOBILE', 'gen', null, null, '1', '4');
INSERT INTO `user` VALUES ('4', 'kasun', 'sudarakarash@gmail.com', null, '0722406635', '$2y$10$rVI8v7lSRn7v5qv4tja9q.755PkROEHCKMTh5lE73jC0ZqaGSxPO2', '2023-03-06 06:57:47', 'MOBILE', 'gen', null, null, '1', '4');
INSERT INTO `user` VALUES ('5', 'kamal', 'kamal@gmail.com', 'kamal@gmail.com', null, '$2y$10$X3IvmY4aXUQyi8LkDdd7qeZsRwYi0aXcpy1gZuUpmc51kommhEYJK', '2023-03-06 07:02:00', 'MOBILE', 'gen', null, null, '2', '4');
INSERT INTO `user` VALUES ('6', 'Chaminda Perera', '0712898989', null, '0712898989', '$2y$10$2d28HlWxul09sN47VIhN3OgsIRENQTTDtxcFKC/8Qgm9k1LxbOuTq', '2023-03-06 21:28:54', 'MOBILE', 'gen', null, null, '1', '4');
INSERT INTO `user` VALUES ('7', 'Bandara', 'bandara@gmail.com', 'bandara@gmail.com', '0777', '$2y$10$0MEygaXDccR48XOwox633u/BaBJPxRrpsKr.3oe/IG70en.77msbm', '2023-03-07 09:54:12', 'MOBILE', 'gen', null, null, '1', '4');
INSERT INTO `user` VALUES ('22', 'Sunimal Perera', '0712233666', null, '0712233666', '$2y$10$18.zTD9nVJFVHKFfdEhZ/ukTQKwSnRTPh0wdkETf9/sO.WJ766V1S', '2023-03-16 13:14:24', 'MOBILE', 'gen', null, null, '1', '4');
INSERT INTO `user` VALUES ('26', 'Sudaraka Ranasinghe', '6537611412917650', 'acc45@gmail.com', '0771122222', '$2y$10$cHf72OMIa6pFM6hf11.rIuHsu7WdLhr7GYPpbCPbX2DYMr5VsVpXW', '2023-03-16 20:36:51', 'MOBILE', 'fb', null, null, '1', '4');
INSERT INTO `user` VALUES ('27', 'Sudaraka Ranasinghe', '117751443512673148017', 'sudarakarash@gmail.com', null, '$2y$10$C05Kzpq.qtu.94gKzp4hleGkAgx/M7/XKwiiIrSaJydNYqDOm/d7a', '2023-03-16 21:36:05', 'MOBILE', 'goo', null, null, '1', '4');
INSERT INTO `user` VALUES ('28', 'Asanka Bandara', '0713366999', null, '0713678899', '$2y$10$3HECniaTfA/HFMCgOJH6BOGaAEXP.UHc1.x8.NS1eb2QM8qnkDcB.', '2023-04-10 06:22:09', 'MOBILE', 'gen', null, null, '1', '4');
INSERT INTO `user` VALUES ('31', 'Nihal Perera', 'nihal', 'n@gmail.com', '0715444555', '$2y$10$ig04GVMS8c3QdFckxnH0fu9PmNEBbXRebxIjGKSCtMBXQg8qr5KFW', '2023-04-22 11:28:39', 'WEB', null, null, null, '1', '2');
INSERT INTO `user` VALUES ('32', 'abctest', 'acc', 'ac@gmail.com', '0711454878', '$2y$10$WXsdlx48bonWb1LXNY8fHuXNhA///gAYqR0wRMmr7t8OA/MNnarOa', '2023-04-28 06:17:24', 'WEB', null, null, null, '1', '2');
INSERT INTO `user` VALUES ('33', 'tests', 's', 'sudarakarash@gmail.com', '0719060354', '$2a$12$3ENeBqQpNd1h0rIbU6Nf6uHnCrzQhTe0YGOv9wg12qrzwTXoeVa2K', '2023-04-28 09:37:39', 'WEB', null, null, null, '1', '2');
INSERT INTO `user` VALUES ('34', 'test 12', 't12', 't12@gmail.com', '0711114444', '$2y$10$0GI7cu6sa3a7Nww/0NFWN.okZFCLdaIepS8VcvCsXbll7B8APHL/.', '2023-04-30 11:02:03', 'WEB', null, null, '2023-04-30 11:04:26', '2', '2');
INSERT INTO `user` VALUES ('35', 'Test User authur', 'a', 't3@gmail.com', '0781454154', '$2a$12$3ENeBqQpNd1h0rIbU6Nf6uHnCrzQhTe0YGOv9wg12qrzwTXoeVa2K', '2023-04-30 11:04:54', 'WEB', null, '1', '2023-06-07 19:46:54', '2', '3');
INSERT INTO `user` VALUES ('36', 'Test Auth', 'auth1', 'au1@gmail.com', '0711154455', '$2y$10$L3VKdflCg0W1Qrxqj7mRFeCMkjdFsfCsm3xWzK9F/UCyM8MGVoezu', '2023-06-06 20:17:28', 'WEB', 'gen', '1', '2023-06-07 19:46:13', '2', '3');

-- ----------------------------
-- Table structure for `usertype`
-- ----------------------------
CREATE TABLE `usertype` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(45) DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of usertype
-- ----------------------------
INSERT INTO `usertype` VALUES ('1', 'Admin', '1');
INSERT INTO `usertype` VALUES ('2', 'Moderator', '1');
INSERT INTO `usertype` VALUES ('3', 'Author', '1');
INSERT INTO `usertype` VALUES ('4', 'Customer', '1');

-- ----------------------------
-- Table structure for `verify_code`
-- ----------------------------
CREATE TABLE `verify_code` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `datetime` datetime DEFAULT NULL,
  `code` mediumtext,
  `type` varchar(45) DEFAULT 'email or sms',
  `section` varchar(100) DEFAULT 'login or childmode forgot pw',
  `status` varchar(45) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_verify_code_user1_idx` (`user_id`),
  CONSTRAINT `fk_verify_code_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of verify_code
-- ----------------------------
INSERT INTO `verify_code` VALUES ('5', '2023-05-19 12:30:02', '904032', 'contact', 'loginmode', '1', '3');
INSERT INTO `verify_code` VALUES ('11', '2023-05-19 19:43:02', '633979', 'Email', 'loginmode', '1', '4');
INSERT INTO `verify_code` VALUES ('18', '2023-05-26 18:20:08', '869012', 'contact', 'loginmode', '1', '2');
INSERT INTO `verify_code` VALUES ('25', '2023-05-26 18:54:37', '432031', 'Email', 'childmode', '1', '26');
INSERT INTO `verify_code` VALUES ('26', '2023-05-26 20:00:16', '432920', 'Email', 'loginmode', '1', null);

-- ----------------------------
-- Table structure for `welcome_page`
-- ----------------------------
CREATE TABLE `welcome_page` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `img_num` int(11) DEFAULT NULL,
  `create` datetime DEFAULT NULL,
  `name` mediumtext,
  `url` longtext,
  `status` varchar(5) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_banners_user1_idx` (`user_id`),
  CONSTRAINT `fk_banners_user10` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of welcome_page
-- ----------------------------
INSERT INTO `welcome_page` VALUES ('1', '1', '2023-04-06 11:27:01', 'welcome 1', 'images/welcome_page/1680760621.png', '2', '1');
INSERT INTO `welcome_page` VALUES ('2', '1', '2023-04-06 11:31:20', 'welcome 1', 'images/welcome_page/1681231520.png', '2', '1');
INSERT INTO `welcome_page` VALUES ('3', '2', '2023-04-11 21:29:36', 'welcome 2', 'images/welcome_page/1681228776.png', '1', '1');
INSERT INTO `welcome_page` VALUES ('4', '1', '2023-04-21 21:39:39', 'Arts', 'images/welcome_page/1682093379.jpg', '1', '1');
INSERT INTO `welcome_page` VALUES ('5', '3', '2023-05-02 10:12:58', 'dv', 'images/welcome_page/1683002578.jpg', '2', '1');
INSERT INTO `welcome_page` VALUES ('6', '3', '2023-06-06 21:29:41', 'ttes', 'images/welcome_page/1686067181.png', '1', '33');

-- ----------------------------
-- Table structure for `wishlist`
-- ----------------------------
CREATE TABLE `wishlist` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created` datetime DEFAULT NULL,
  `status` varchar(5) DEFAULT NULL,
  `book_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_wishlist_book1_idx` (`book_id`),
  KEY `fk_wishlist_user1_idx` (`user_id`),
  CONSTRAINT `fk_wishlist_book1` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `fk_wishlist_user1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of wishlist
-- ----------------------------
INSERT INTO `wishlist` VALUES ('1', '2023-04-03 10:27:45', '3', '2', '26');
INSERT INTO `wishlist` VALUES ('2', '2023-04-01 10:27:57', '3', '1', '26');
INSERT INTO `wishlist` VALUES ('6', '2023-04-03 13:40:38', '3', '5', '26');
INSERT INTO `wishlist` VALUES ('8', '2023-04-03 16:00:16', '3', '10', '26');
INSERT INTO `wishlist` VALUES ('9', '2023-04-03 18:48:49', '3', '3', '26');
INSERT INTO `wishlist` VALUES ('10', '2023-04-03 21:23:31', '3', '5', '26');
INSERT INTO `wishlist` VALUES ('11', '2023-04-03 21:24:37', '3', '9', '26');
INSERT INTO `wishlist` VALUES ('12', '2023-04-03 21:24:47', '3', '6', '26');
INSERT INTO `wishlist` VALUES ('13', '2023-04-03 21:29:50', '3', '5', '26');
INSERT INTO `wishlist` VALUES ('14', '2023-04-03 21:31:05', '3', '2', '26');
INSERT INTO `wishlist` VALUES ('15', '2023-04-03 21:40:04', '3', '3', '26');
INSERT INTO `wishlist` VALUES ('16', '2023-04-03 21:41:31', '3', '10', '26');
INSERT INTO `wishlist` VALUES ('17', '2023-04-03 21:42:31', '3', '1', '26');
INSERT INTO `wishlist` VALUES ('18', '2023-04-06 06:46:04', '3', '9', '26');
INSERT INTO `wishlist` VALUES ('19', '2023-04-13 07:17:55', '3', '6', '26');
INSERT INTO `wishlist` VALUES ('20', '2023-04-13 10:20:39', '3', '13', '26');
INSERT INTO `wishlist` VALUES ('21', '2023-04-13 10:20:52', '3', '14', '26');
INSERT INTO `wishlist` VALUES ('22', '2023-04-23 00:50:52', '3', '10', '26');
INSERT INTO `wishlist` VALUES ('23', '2023-04-25 14:57:52', '3', '9', '26');
INSERT INTO `wishlist` VALUES ('24', '2023-04-30 13:23:59', '3', '9', '26');
INSERT INTO `wishlist` VALUES ('25', '2023-04-30 13:27:50', '3', '10', '26');
INSERT INTO `wishlist` VALUES ('26', '2023-04-30 13:28:31', '3', '16', '26');
INSERT INTO `wishlist` VALUES ('27', '2023-04-30 13:29:55', '3', '9', '26');
INSERT INTO `wishlist` VALUES ('28', '2023-04-30 13:30:04', '3', '16', '26');
INSERT INTO `wishlist` VALUES ('29', '2023-04-30 13:31:04', '3', '5', '26');
INSERT INTO `wishlist` VALUES ('30', '2023-04-30 13:31:47', '3', '10', '26');
INSERT INTO `wishlist` VALUES ('31', '2023-04-30 13:32:02', '3', '1', '26');
INSERT INTO `wishlist` VALUES ('32', '2023-04-30 20:06:45', '3', '10', '26');
INSERT INTO `wishlist` VALUES ('33', '2023-04-30 20:07:00', '3', '5', '26');
INSERT INTO `wishlist` VALUES ('34', '2023-04-30 20:07:50', '3', '3', '26');
INSERT INTO `wishlist` VALUES ('35', '2023-04-30 20:09:37', '3', '2', '26');
INSERT INTO `wishlist` VALUES ('36', '2023-05-02 21:30:52', '1', '6', '26');
INSERT INTO `wishlist` VALUES ('37', '2023-05-24 15:05:08', '1', '16', '27');
INSERT INTO `wishlist` VALUES ('38', '2023-06-19 13:41:01', '1', '16', '26');
INSERT INTO `wishlist` VALUES ('39', '2023-07-01 16:31:15', '3', '23', '2');
INSERT INTO `wishlist` VALUES ('40', '2023-07-01 17:27:21', '3', '17', '2');
INSERT INTO `wishlist` VALUES ('41', '2023-07-01 18:29:10', '1', '16', '2');
