-- Host: db-master-2.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=21437;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$AcQrhsf51XZ/HwcRjXTdEsP13hIY0IUQcOIpHyYxgRLggCxMRgAwS','user','ak_b006c64aceba0c64','2023-11-20 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$N/mVxuxVvuL.0K9n4bJ0WzNgxSQbq3zRMKRkJGwXarrXqccPmgtAt','user','ak_2b1332d63119e5c9','2023-06-06 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$LeBxv6ZaZi965IcT7RlH.sAR40j1El0.A6YDrpcB8p1uHLqQ11aeJ','user','ak_1b3a5692ab7425a7','2023-10-12 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$sw1TcoiZR.D/8FOlSgPtR2Kujz2UtB4XOJXsp/OXdQGwwAYurKRas','admin','ak_7281ee1b6217db53','2023-05-22 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$X4JcvSlQp9Ge91.tL3K4CM5ToKzxFd/j7aFm5.Yt2RDYtTk/RInDx','admin','ak_73ab7584a6c1dd84','2023-11-04 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=41405;

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


