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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Dg5MJUSuYGTbjprtqQcKnIiE5Ln597r.LBwxDeZQNaPINleJSZEJa','user','ak_b5c06deb5f3f8647','2023-09-02 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$Jh96.07YX6RXQOD9mZvJ5Eohr4fIkJwZi2nXHaa4TYW4bcvKibUxq','user','ak_b39e15db22097e21','2023-03-25 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$ZQK2B9Nnvf3tCrLif0qTFyWMBGMgKr6LhbYnOZ1dZWcMqjUNy5RHr','user','ak_eb5d38e91227dfd5','2023-07-03 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$xZCYA2.vxkC8Ew7WuB2ITSFDwfdklqg/BCx0WQY7609F0RDQSznuc','user','ak_0efbebe8253d9645','2023-11-03 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$78WfhFWO24Tq9bJEAd74YXkEPrzlvEv5NQ7tYJppVx31Sw2skBXPj','user','ak_6171cb034b435919','2023-04-27 10:23: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=34371;

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


