-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$ZSxIG1cUz1tp3f67EUzzL5xysFtWFYDhJfITN.8/s21kB19t7V6lC','user','ak_bdabd025b2de4469','2023-01-13 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$m1j9qRmmru1E0k7CKGrwoZ2wRTzqkYWV4wnuVOoGa0kZIKqfIhllJ','user','ak_02463361142dc63b','2023-08-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$D.oJlktONoahnGf01i9dtuj/kgZS8Wd9s6sHy32qngetSwB3uRv6Z','user','ak_a6663811615f4937','2023-10-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$hRst87uj24i19HiA4X4f.hU0G0AqJih5r5/gJl87Br1BF24vZvsUC','user','ak_3dc3128f31717019','2023-11-11 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$0MCnBgJS/QCVdM6HkhXx8GCR7i1UzDvJopt.6KH86nghsIUUrh3Bs','user','ak_fb6122d03c1777c0','2023-01-25 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$qW49yJXzGASa7Cbsv.2WbbviRQ6suSkVO2SFuCnT1wRNcHP2OiMfF','user','ak_6d845af4aca27b05','2023-08-28 10:14: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=48067;

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


