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


--
-- 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=8078;

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


--
-- 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=41384;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$dVZ5.JFsn95nIzcOuXWAWOHfa2KV5c4O9fSISW4bumn4M7m3l.GcC','user','ak_63dd9b1f64cbc0af','2023-08-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$usjxiDstEcQQQdF9ei4FZgx7LiIDk5147mIwyYxdbdRSAxTzZCcl0','user','ak_5336c46a37d929d4','2023-05-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$bmZGzotxvjUNUxaY.ZKSA6FjPoTu.yEjYkqBwQUiAUXiN7LksbwxA','user','ak_65246b53347f1e82','2023-04-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$t/141b.9QRz5FK8ApkZqt2IZKHncoRUicRFD5fsM2ivP3LIzpSwZZ','user','ak_750d4a146f820446','2023-04-01 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$bgz6AQyRtCKrDnCtsIsM7.Jy.vBhTA1xfdGCHDBz1WxximBAzJCMS','admin','ak_b74a8d62942e09c3','2023-01-23 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$D79A8.d8yz4Rwr5FwQz7Z5Ck6UnXFdbus0yRMC04k6Bzhlisj66j8','user','ak_3278d2d1c042f8d7','2023-06-28 10:02:00',NULL);

--
-- 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=46191;

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


