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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$IYL0UFc3s66rYNNx53/aMbe.Kj7Eljfu1IlV9BiixKo7zQI43linJ','admin','ak_54ff64e334213194','2023-04-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$aCFhqPHCgPVshCsgFS5XPulcd4tHur9i6JJ9Ea4mXMtIAPxQP6oJR','user','ak_417280bac71d8a48','2023-01-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$OoJMGB730UgLrvLNXff3DmkS2eNy9WmbP8AluLQUbGffA3cgfGhY7','user','ak_a3d43fe6898f2dd7','2023-03-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$paCa2dOnYQh5aP/.6mcxlvGf7Y6u/4GTSOzLOLGXZXaePJFUsEKqn','admin','ak_d86adcf054011e02','2023-06-04 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$RToRwF2paX7J2kmJqiTJvYE.z9pBRUMOKGC1aMT3x/tmMD44bO.Dr','user','ak_fbd18cbc647606b8','2023-11-07 10:01:00',NULL);

