-- Host: db-master-1.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=2787;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Acxh8kNOn0zASSoqfczd9J0uJgboIks7Mx/z0F7OuVsz7.nGnZcDv','user','ak_77b5b538f45ce1c0','2023-04-26 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$oO61.RKuSt9e64esk0oOj0Ln1k3dP01GrkBsCdEBjTo/wnA8qSfoX','user','ak_589bd1f4c8f5d1a0','2023-03-22 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Idxaco86L2uE09F8qpb5APtOZ/MKfdxJqG7qXipc8ZlipFA8fpIyT','user','ak_49109dc3a3b73cb3','2023-09-21 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$NSV4cpyDqvo5QeDLde.OI3Xi039bdMJkKyomsYrFJ.YHkhx.nh4X8','user','ak_fd02ffe095701b1b','2023-06-03 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$4.UhdqBueL9fnKlkQSpLhs28.ZyRZhgCAYC2px9cetpcSBBVdysXM','admin','ak_1638a5db6ad9488d','2023-06-26 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$0IZZkHZcf/85RJsCSLGqSx8GOk8ANKpZezqEEHtPgoKrh4jHRJv4g','user','ak_5591a8a092726cdd','2023-08-27 10:19:00',NULL);

