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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$rmSez4ptXG2uWs.gOJV5Aw5f2A/NUPlDAhUhsQBaVgoudbzbcRDhP','user','ak_1be5b9f302ac8e03','2023-08-24 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$jpWS7pMigfQGE1Qjkm9lAviLppp8MN8lBaOFX2iq2popzJSXVEjsf','user','ak_9371fe07569f01ce','2023-10-23 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$3LvtfhpfoElNjBUxuv4mSYzWhjGZMTJrTyXBCOu9cnqW4hokLePhx','user','ak_cf1973eb5bb68c04','2023-07-22 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$RQCXVgCLeqSbC8.R0jgZ8BNRu/GCwMXWUsmdskLKeQnF1Tv0GoUfv','user','ak_27eeeabfd29a362b','2023-08-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$NP4SM3F21W/0KiKOO6s26qVt9POGWjpYmcEFDpgCW0BPXuUzjSApl','user','ak_32e53cc32ae3e2aa','2023-04-09 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$h4Khv0FyWvGIdZT5TGh2SdAfZnZKhYvcCZJhgrqZEdWWdzS5D5zcm','admin','ak_d01ed2791c455915','2023-04-23 10:17:00',NULL);

