-- Host: db-master-5.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=28207;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$qh882YDnunxcRey/vHCKQeKjJ60yHN5/SqGIHQOZs9VMkC2idPUhS','user','ak_9db895d7c4698bba','2023-05-07 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$mwd49fR7w4IC99Bhk2TdJPRba2cGX32ZqE6RRHb3j9cQJR42Bpa6J','admin','ak_3613e42bab75fdb9','2023-08-19 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$rFkzEJP/anjabheZgkpYEKnBSNxXq//6X8ws1i0ARXLPdYkZZ7fJ/','admin','ak_209447300e302924','2023-04-05 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$8s8QRKCFuXCflNZPciBHrVzFwPq1FKZRS7ljfjkpDQUzv70RkoZeZ','user','ak_e9eaf7a0d06d1598','2023-03-27 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$X1UOYtpjLeSMjPJLk2arM5sdLC9e1fgQ1cTOERx/eWQudR7hOXrh8','user','ak_fe49abaeb2ddc555','2023-11-13 10:16: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=42840;

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


