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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=5697;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$1Obn9/sxrIgonNDxSe0VSln8VsU.F6dV1408qMuY9um96f8bOcUBq','user','ak_d949248568950f63','2023-12-19 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Us0xOb9R2lZLKiMMetMR0Hl21ll3eML5Dg.B9WIIweN5dtGjUUVu4','user','ak_2b0da1a3a5889c05','2023-04-19 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$dr/lI8zThll8KiC/GblGz1JN4cPah7GUbc07hqpd/h7cAI4dQWHbZ','user','ak_11ad452060146664','2023-01-24 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$86C.tM1UWjoYt8aQr5..RsQwyv3UIuGIqR/A60zPih/mYJwFiwUOP','user','ak_d284396846bf24c9','2023-01-16 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$Mb5zYR6SXFV4G1olNwtwmV0t7zCCdqihxm3yZBGccl9rf0PO5Umn3','user','ak_4618b770176f0bba','2023-03-10 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$MWATZHq9H6RMQTFO4XBRgIg2NGXmdQTr6Ro0J9ggUFv2PBUvLjwcq','user','ak_d0b08e7aa87bad3c','2023-03-26 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$HmFx7bcGEMV8UJTN4k4RgAg3ih0aiQyWoFYZrMMF308KnV8Ugve5o','admin','ak_ea147e621c583d04','2023-07-02 10:17:00',NULL);

