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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$T.SGzqc.qM2exdXxlwUB53ovgQj3gLXS.dHBiBKTa2hprm0KL74G5','admin','ak_1182c5234218138f','2023-02-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$vRz5M1uWiuEgbJSmDt9rXSgUNOMbYRWnVdFiO98aM2W2WRFasPG7x','user','ak_ce121e9fd6359438','2023-10-25 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$jv8qh/3NrVpKUlnN.WTqe1x1oLS4y0/hsyEHicn1UbggD4OS0GDIy','user','ak_8dc5dbb8e0eeb4bb','2023-05-13 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$uVhzY47oPecpASf3VEvsGstyI3aveoid2eSJR2MiFMXWxiF9Ys2qT','admin','ak_088c74bbfa545189','2023-07-04 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$ENHAA4EgrW.jAcFwnh7N2PjrC.IUfb5L706p6Kd1PLvKdeZ3Whelj','user','ak_328d02f44eeed45d','2023-06-08 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$Um5vAZkNNyuOtxnyB.dJbYZP0yHiWDS9Vwb3HOsjy85kAZf5L8gWS','user','ak_d033dd53178558aa','2023-02-21 10:15:00',NULL);

