-- Host: db-master-1.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=8771;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$cKoP4UyYDw/FjX4CuAS0XPkpUK6a1okipcy0z02DlapXDXQumyO75','user','ak_dda7e93a7286759f','2023-11-11 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$kWSnX86L72jhu2E1tSG2eT7/xpBiWVVLuH3goJ7bywFn/TGlh8owl','user','ak_3010787c80e3c994','2023-10-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$wDUdqB/8R4/GG3P4PN59ptFoMMGXoo4/z44TrGAJlWR6Y5tBdK1tI','admin','ak_4d884696c4749a7d','2023-10-17 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$.xg2WdW0r2HHqXkPQszVAoi.CPfCI8Ho3L37lw75tjCVBVbwR413Y','user','ak_ded5b6a09c05ebca','2023-04-27 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$5vrsn71CcWC.eDmEfro.WxyHG9w9aIacKGRAP4Lr7k8678u0LGKuN','user','ak_52a5e52948584b69','2023-12-10 10:23:00',NULL);

