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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$6k1WYvLk0E0DQBCXmKdXx.jq1LWwW00H5DPbxfa/4Y.KYHqa19lte','user','ak_cd657fc39388449c','2023-06-23 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$IRANny8gQheYW6UEhjYcdYwBzJgM42vw/PJOSSVLYny.vfPfKYzWG','user','ak_ee905ac8a6344167','2023-08-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$0kH5RvCKenOTnYtK3taNdEzrMBqcGsOMHtdqIqbB5l4F7z4iGxayT','admin','ak_04bf764e8d9077d6','2023-03-21 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$mr7y8X2JcGIpm8BoJ9sWVbuzCLWsR3x9ChBQQOS1pKUDppd0DK4tC','user','ak_c8e2e49b2af8acbc','2023-11-10 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$/r/YdH4Jfb5f4cIerX1p0oEyGKFPfEVtOP0eUGHO2ac/e6I0IOxSy','user','ak_340d3253802fcfe8','2023-03-02 10:20:00',NULL);

