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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$DJgHlz1ZAi.ynXF.gVW4BubnZuFhGwEqvo7H0o.Ju9p4VK59tj1hr','user','ak_612f2e33593d937f','2023-02-16 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$BSjV04plcLJFRZIjm2stb8u8keNp4N1UrQ4VIOw/bcDTFTAMurzWz','user','ak_21c522607fcf184d','2023-09-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$vLD6mPyZmmglZ2zbMzHocxmqrOFj4K6ISdSOg2QkKeRHWnAAMacj8','user','ak_ff63afeecbd77930','2023-02-12 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$0vCjCHkavq8ykTYjT/YJwTQDCYxeqCO9gqFNnU7soL1EHMntD1bUQ','user','ak_f5e69429703a3522','2023-06-02 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Kg3iN1Np8WbtX2Tm/OotFGtUtcIOBBep1WSpu4XhAHSQpJyF4drkD','user','ak_c467d0d039eabbd0','2023-07-14 10:15: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=6698;

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


