-- Host: db-master-9.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=26244;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$QPykSB7whrfzyUZ9Di2ivbIw3bgRgNh5J/Jq6RXH2VzeEfLgh4H3H','user','ak_6f6f35e5f9b4e0c5','2023-06-01 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$215uuJCrQdNL1cIN6a27HlH2IqDDP0.Ge1d65G0kYhN.Bgo/lePh9','user','ak_440ebaae519d2d0b','2023-11-11 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$hxjKYbvkdst9oT7HAGR1WGtKnAc1wqgwer0lEq1jUfp/0gUumcAHP','admin','ak_1dce7bfd8e46bad3','2023-01-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$WJititU9ZBezJsFX55gFqo94gD2XSl21YCtW8pR/vq412I94ZByzq','user','ak_d730debd446aa9f3','2023-02-10 10:20: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=3907;

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


