-- Host: db-master-8.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=9121;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$ftITNoHaHdTlwDHoLhR54g2rn0dPH5AOwsLhscv82YkUtU24lgAAh','admin','ak_b91e920026776972','2023-02-02 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$WrG0zZJhC5WI.YhXcKF4HQnGbTRjEqQCBVLfH3aR.NzwKd9Kru6i7','admin','ak_a2ed1eab05505a2b','2023-07-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Zpgn0mTLpy5x7dS9KRjbbZvx3IkDw.0FdaA6J5dJTSsczXH7hSpxf','user','ak_5f73bb9bd0ba6157','2023-04-08 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$nOl1yFXF9PE.Ka5uyfAVjKnVCExU0C02pXM4BK2rCHCVdDaOTHyP9','user','ak_bb00b924ef2f9b9b','2023-08-09 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$TyTb68onjJBs.1U29xNdZ5eXYemvcp1lWRZ7eJ/mVDUcVXY8wWmv/','user','ak_5a54dc571faad5c4','2023-03-14 10:21:00',NULL);

