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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$KoohB4SXqn70gPXQKPt9ADKxCaalHbivOoK1Lhu.AuZ3ZmKkO9ooz','user','ak_a0b98e2addb4ca94','2023-06-19 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$4cDTV9uCHo4X6tN0DTiJCWy.cfd8LlUc1CoxWzjd9yj87B77X6ggO','user','ak_f6cc1e2f1dfc9762','2023-09-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$TzZ3CbNrAGsfQsxsdQ9W73Ks5zREA11nAGliRZFSyiiH5tkaNwkQI','admin','ak_40024372a3a264a0','2023-10-19 10:21: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=39220;

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


