-- Host: db-master-5.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=31380;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$PCaBlBMu6pxXmBYRQ/IhwsXzozbl2NZzHQUPaOCJG3yek.V/ImMEo','user','ak_feabf892ee566473','2023-11-12 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$KSm7vuXiYZGq74rfMCP4ljib2hgRK4QbCGdN8fPqS2iD9nHIQ2w6O','user','ak_64815f87006a87d3','2023-06-17 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$JpWen9nw4Yfv/EuiOVIuCYwG51Rt7vTxpiTW3ssaGV69vH3k3vvk2','admin','ak_74cc0122de1ef4a4','2023-08-10 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$7g2ArfhXfWU7VuxURN5I555ridX6MgCh/w2BSJrNdR.NoOm9hh8ll','user','ak_c4fe3c47e8eea018','2023-11-17 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$GfrSRpJyDDT7B51Qu29ku15Exd4vaqy2OirFdVgXD2YRum4.ODpxh','user','ak_30495c3892ae5c2a','2023-07-27 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$fx.dNmR7wxBeiQ.P7icMimWM9z.Va0lufzPLSqEthOZDENcLiG78l','admin','ak_dc9c9e4c7a4ff885','2023-08-18 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$0rVf0HEiDgWj9AOOmf1i8L9X6CwGPHZjKeSSy8Omquqdk/YWlZGWs','user','ak_83c252610d47882f','2023-04-23 10:05:00',NULL);

