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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$N9Z6ZIQ9MTqmsyqMo8FE7LcIIoHE7d7WsjLk8t0FlQcc.fqnX8ovV','user','ak_69fec261462d37ac','2023-12-14 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$fY8xzG2.GCeWcg7JzdaCREkCJwVGuVpA5EvfAXZEd46jZft4i3Clh','user','ak_8da1fc9fa88e6f63','2023-12-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$.Ut.czyLaQdCVSmUUQowAcNhwTLrPnmHuvqs9IMfq1bFXHBiLaNIZ','admin','ak_02071db465417853','2023-04-03 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$yB5MEm4myzt8My34m7/E60OokG18QoW9Ev8FB3yXiHmlu9CH6kkkP','admin','ak_840e85e97cbed3d1','2023-04-07 10:20:00',NULL);

