-- Host: db-master-0.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=25735;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$8fE3KkIb4/9RC5ffokZbKfOYTUdTFPEXbryZ9g7u8SjAsyU6xNSgH','user','ak_2a8e04f80456cb5f','2023-12-08 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$crPKQlcAENLkTQFfHlgYA7j.t3mfDsvIBxmH31wEYFYrPLnubTHJw','user','ak_6c056f3f164b7ca7','2023-11-21 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$k0nDCDEvVYmnG4hQG.ZzxFhFBO/5EKKz02deWQExw6hqzEnkGVlwc','user','ak_dd52c0052f5a438a','2023-10-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$lr8WRPjSJKqRE.uZN0D3KvcDW/s2H9.2amQKIn2Dh7Zm4ZR7ROuX.','user','ak_4dc5d808abbc18b2','2023-09-28 10:07:00',NULL);

