-- Host: db-master-3.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=3763;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$PjJ1VCdECWMa2dUVPtK5/qZetkqPfOsNaX.jm2iBPStqwJ6wsOXxm','user','ak_0744189072bfd269','2023-04-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$9.lgZq8Sk2WCW9qMqD5Y36aGu1EMniazKo421DM1XA1gVrUelhr2/','user','ak_c43febc2e6926a56','2023-01-24 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$GkiAT053PLurvYcHdvSEugbELpbjsuA9QmwGwnOYRe53gaB0gcJQh','admin','ak_641b9d684155f161','2023-09-05 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$eIW8PiKcVka6tD8FZ4FSMETA82G66B.zrJVw3N3UmYUQmOQpZzr9E','admin','ak_cfe0b45d9170d23f','2023-12-14 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$gWNU6YGH7f7Vd8ImOwJ0GNNhrCZhnkZelbdRFKW7BGzVC4qXpzK0T','admin','ak_df44817764639fba','2023-04-22 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$YXYOVdMORGN4uONLWNiMjqskb8r1mq/BRStiCSAm1W1DBSJ5QeXFR','user','ak_ab809502baeaa36a','2023-08-16 10:20:00',NULL);

