-- Host: db-master-6.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=32682;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$/JP6MRb8a4375RI81An0.DL7FpL53EeoGg6LwUfCVcOMZZ2a/j0bu','admin','ak_29c432c6c2c55fb3','2023-08-17 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$jSvojacFBO6PZeAy4NQh1/mNEZdI7b2qZM.XGf7Zmzv9FZ49WSYON','user','ak_2fcb3165f148fb22','2023-10-24 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$JDrNwsnUVe.lbNDtBvhkH6H5GrrzkQbZjObQDbBMngY69wAP9X0Dw','user','ak_fd1ec8b256bc5c30','2023-10-04 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$VqVQDlEWFx26.4mXXMZaWDOH2YIExu1nzYp1n7Ed2vlP7GH.Gr7FL','admin','ak_86c740c71bbe9504','2023-01-23 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$VNvK.Hns4JfvP4Z7FhDykc0D6rzxndW3je.2E9B6Jb1syNytDNKOI','user','ak_e274a4ef22bcc913','2023-05-21 10:00: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=20523;

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


