-- Host: db-master-1.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$Vbj.POgXwRACQ3f0zfd8mkTBINk0Dzy/ukyGmPAuxIcpeYfyPMhSD','admin','ak_3104593f3fb2b6b4','2023-09-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$BaIx1654ltI0j5ldvtagucQku8roK2rlOqw7N7PoVfc4ywnLCUegX','user','ak_7d15d7afefdd54bd','2023-09-28 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$cHbWyqYCdUj/JvTlo7HHz51Z5UlCHu52ewqWhgL.wg.HI3e9ol6p3','user','ak_0df5f817a225e3d1','2023-10-26 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$DrYOzc5WVnNW1W97Uf4kzcrO0.NHNHrNAov60hQLLTpUH9BNDgdWZ','user','ak_2754d708ce6131f2','2023-12-11 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$GXgxZ2XWoHmKXaVTYR7kY7iiwzJD3KlbBhhLmd3eqZfT6j2bP9SU.','user','ak_1cb1f972055e764c','2023-04-19 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$5QVZaRzFCyWdfpg/Nortpx4Gh.adMXhhTMsYSAslgEXyTdlEVsI2T','user','ak_19a1bbc5e0d8df13','2023-06-26 10:17: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=15041;

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


