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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$m2V5PUVmj66FKwOWTc1rzRUAAWk26nfzGIkdG1nt/rjtRlLOFypLu','admin','ak_ff2ba7298872c35d','2023-09-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$gYCRLABNL12SuYOH1M5.f8Tcq7gXDhx5xQjf0Q8kHIya9N8aa8B6c','user','ak_f4b964d0c3bdc0eb','2023-03-07 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$BKO47ZeaSnW83NDrCvLhhXMsBkSuwBy.QtgbQ4FPdPTSqT1U4fIkB','user','ak_8a5b77bc8a5f7479','2023-03-16 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$YRvsEMbuBg5OfVCQTrxYsCSDYxqlxEMrbuoFkC0oNKo7jjJoImKg/','admin','ak_b7884e29a6ed643d','2023-02-13 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$NdVId10WwAu737xAtpBVhNqkotcOJIJpwoH6FZBjRxKepbEmlfiQb','user','ak_d96ec3992a74b463','2023-12-02 10:23:00',NULL);

