-- Host: db-master-9.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$nfbjHWPDe6AAPqteEogp3rQjpXG0HGmj3l7jsvASYgTtIKzad2KnS','admin','ak_b39e1a354e2d1144','2023-05-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$sb3dzW4C15VNYX6MeVNLqmGC/3yvhdGSdOUfS1vElb1o0Px9CNIPg','user','ak_ddadae8b0182806b','2023-11-03 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$9qOFx701kvDUV5I1LSK3gRMwX4MNOrUvt3p7sU2CgMLywvFEsA.AA','user','ak_1a7e796d529c3c1f','2023-11-15 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$58hAag7OHn46dRZzHz0xsbqgpvMKZS7azbIvHw1q5IB0fnPRisd1r','admin','ak_483158511a946c50','2023-08-13 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$ngPFpNFw.163JoADao3JRMVgVxDsD.zDEQZ7ePoZod8K2/9bnn8SC','admin','ak_33049840c26abed2','2023-01-01 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$abkUTc5s8DOMd7QfE2bF.J6eonPejslVp42QD7excPURDX8Y7tGC8','admin','ak_38a0202a7bd43f95','2023-12-12 10:23: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=29845;

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


