-- Host: db-master-2.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$ODrv3wK9/HFD1vUBix/A6rQMPKgY9RbsRGrrzQ0ADLOcTpxmTgwmV','admin','ak_e62575dc63155ae4','2023-10-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Bau/FTO7DJAfVZrxdMI.1.scdQlqks3Ic9kwSRrxoBCW586NvLgYM','user','ak_3ad818f7c984698b','2023-03-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$VQCuLL3z1F1k//A63tX1/HBETF9fyLpZVyZr8t573Kjd99Q99nxlW','user','ak_678ce1e0c64be2f9','2023-09-07 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$Kz0C5TpUv.cow.MTtgSaAo9f2IbmRlhxVfPrgHGBYS9gX5ZzCa8aj','admin','ak_d33b63813bc345f7','2023-02-16 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$n56ModjPYafxsMV6HhIbXI/PD9215YhTV9p2Z9d9qZlh0VZm9ee17','admin','ak_65501865a446072c','2023-07-18 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$j/2/Xf3gP8Jkxcv8Gl./1BnOuIa7T6zr.x8zyAv6YxvWtf6pX2VOy','user','ak_ce47f501e274266c','2023-10-22 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@internal.io','$2b$12$XfInJsa0/a.f4Wjx6.sThpYvWWLvnbuERDT/vnoR5no/0aWUuZQ8j','user','ak_a5312a0b5f211956','2023-11-05 10:12:00',NULL);

