-- Host: db-master-8.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$X2ImXau53wAcMpE/J5mxg0kX4YSeG69cs.SFtCFOxaLE9CPHBjtgP','admin','ak_988e585d638f208b','2023-07-17 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$XEz3.6rk3HOze9i5vcWjwcNR2UV6XC/y2b8NXaC5Zl/w/.Qrs2H0D','user','ak_9fd86198d02b7107','2023-03-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$DslLn7/eszJaWZp4OqEv8bi3Oqcp/iIGMqammuaHPAC4pW7o92ulj','user','ak_a44630b6488cf943','2023-11-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$eJfZuohmRqh/P4s3u4d8qZUiQyGzjeOCTn4VvDJjv2/doE0Wuf3Vz','user','ak_358387a3da237dd5','2023-05-01 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$oUZ305aVhFRFrtwteN3Q7b0tsjM9ww01mMlk0r6GGPEZkqBb9DKr7','user','ak_f1faab9645e591bb','2023-07-25 10:02:00',NULL);

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

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


