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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$UVWxy/Ohi58zJVsRkzhZRRua6LjWrjMb55AH6lkRvjLGI/4NAnbtk','user','ak_43bb94fd28145c15','2023-05-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$PErVKugT89bfIGo7o0CzF8JPEDLtLVhHhkGAEil1hwFJ9nIDxHKCM','user','ak_b4fcfe1aad776f02','2023-05-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$ITxK6Om6TS9F7ZAd8oaYa0vfegh./mfp.zSELJoRSHZGltE/3y5Y/','admin','ak_8cf511dd96ba65df','2023-11-23 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$cwqlbT3RDAg6vs1eOP3DkKrUVVZMkAvUT5dcfai8lyY2xrxVYao8n','user','ak_23471e9f716d869c','2023-11-17 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$cgJMQ4w/ajKorsdNSEZYet1MjZp484cI0gO1MWcCdjk1L/5QnwQTO','user','ak_eb25da9795afe889','2023-07-15 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$KlKnAgfiV9/XbqwqxV3GP3cWVhrmid6KVGkXl.umERdISyoEVknV4','user','ak_6f73e422d5f8e2e5','2023-12-14 10:12:00',NULL);

