-- Host: db-master-4.internal    Database: webapp_db


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$ZljPWG9gNmQyXPRvDdz2V2HdhvgaQaG0SkoBnbbjAoxSHWRGdsgL/','user','ak_2fa2d52635fc890d','2023-04-01 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$khP2SIAODezjLt8byShXAvdHAyGxcNxZSvo.a5F3e/LqHaYoSnYVe','admin','ak_4b1f0305474da740','2023-01-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$iHEwkTPS.TzFUQkCmkQyTYu7NMxpuMzfE6J9/GI0ASm2y/d5L8qnK','user','ak_5735dc4c56b222ca','2023-02-07 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$fFzWuTPH8ByKVh5jRWKfxaAYqfVFACIh.Qsm2uWRaSNvwPJgLrQpO','user','ak_cbef41e09fdd6ce3','2023-04-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$5HUefvWBV8lGxt3D.Q3mRkNARi/l5KxF.9Xu2ATL6/ee4ZVaQB/PO','user','ak_69a5bb58595e4dd4','2023-12-23 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$zSMSY9dEgCXdUXBj01l17qSAN.RU5J33xuJb6ZaeAlZOn0cpamnlW','user','ak_72df22fb9c4719bf','2023-07-21 10:03:00',NULL);

