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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$fp6Iu5TEnv3H.yn7v99OI/DJ8Sc8J8z5HgKxukc3SyJKtkzkpNuKI','user','ak_e748c6de3d50c3bb','2023-06-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$V/DdWL2nDrJpyWN1Mezr0U6BGPzoHxthaBfNn6oS6zUytXhbToYf8','user','ak_584a92c325879521','2023-03-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$EfJKLkYNawihDZ0mS/Lkh04lXSvW5QoTsVn.ysoTvbdGykSjGlcgS','admin','ak_3ed9ab2ac0f18615','2023-05-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$WpG0Gumncihgh/aDALyivzhHcwx6r5uZ6XRZnNRvRLLSL4b0e2x35','admin','ak_b041cc41060dfcf4','2023-06-13 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$lsEqRfi3iq4SlrdbSFTNkVzHYA8C.52OmxI/iPdz9w6DV9gowtKVW','user','ak_0b614a301252d6a4','2023-11-03 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$dXHJrzqKlA3fQXKLljV9nAcYPbVcgsNva2niEd3OoSbrO2XkYaqft','user','ak_55fec63981c5df30','2023-11-04 10:22: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=30996;

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


