-- Host: db-master-2.internal    Database: webapp_db


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=10062;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=49354;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$j4XPSqsorScL4DWDNK1Tij/6hs096xJAlHFy8TbdXCvZJajyV6SBQ','user','ak_a820b76efe04a65f','2023-11-19 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$Bz.R3r0r1z6lyqHHZ/Akn2e4nhXmBMsEds0bhFFmJ8C6TfRJ18Nzp','user','ak_af581d838e0bc368','2023-02-07 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$85vG56lPbwkoUiBj48IHXMoH/dz.pymJTINAXQ3owxGRVk1RByCq8','user','ak_26cd91e4aa61b689','2023-01-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$bUdLK/e/0bBE.hR3p59CwKGaw/oPJGEZ.P3YpnJDm3aO/o5kqXevD','user','ak_b47b6985a0571366','2023-08-09 10:08:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=2265;

--
-- Dumping data for table `products`
--


