-- Host: db-master-2.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=12649;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=40707;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Ct5EwSHSPql2EgQ9dEMdNtvZjXD5vetStBSyPxsZ/tHCWFOVpsph6','user','ak_0905ba22c86bd748','2023-01-16 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$xAxxZEoDGsXVbi8F/XH93TLmHnYpVGWqrg/v3jZiJht7/6ydG02gA','admin','ak_39d023e13fc5eb8a','2023-01-26 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$umqhIMlv1RNPCmq0ifRtobtrlHC5275aHRFJTSnohCWPF3Qg4wpf3','user','ak_80f86a718c1c4b3d','2023-03-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$2H37S2FtU0iHlK9aKE5jDOD738tr.MB.ir.Z3j80TtHLF2.ofrFQu','admin','ak_f3d7985e696ae40f','2023-01-23 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$vmmED52jqz9OnX4iLxe4.AUjMBklKYrUoas2jY8Zv.E3o13JGUaeD','user','ak_a2f292355c896f2c','2023-11-18 10:22:00',NULL);

