-- Host: db-master-0.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=27527;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$AAcyBsnwxMn5nEv5/Z1ffbJ2CBcXvcgyAZeXCoc6UHMNhk2m2ygri','admin','ak_5cdd1a3f18c2d23b','2023-12-11 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$zBxhJ1IEwu8rmaqeUQbjW7XtHxwAHzGPV47IWY9y34d0akfrsc/FS','admin','ak_a9a09885010e84aa','2023-12-14 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$nETyBmpd3vDcKYsEaqrU5Iyy0FVcmRtZejSDM7N3vltAzxzWmRvee','admin','ak_b5100a6740d80156','2023-07-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$/ny19FcoWVCTcsFUx2JWAhfMNT4MuTVHdFy8EXu0vdPjEIbhEngeF','admin','ak_ffe2541c3ef80974','2023-11-21 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Nu6tEQzPqQQECL3v0nmzCoIcm9O7uPVqNRqxbnagcIKvg/ATPxX3l','user','ak_944db118ccd9fa76','2023-01-04 10:20:00',NULL);

