-- Host: db-master-0.internal    Database: webapp_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=24315;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$OQpmD0mBDSUifmHNSGkknfB2.rKsr5gNfmZpf768Nf4j4FECZgBqq','user','ak_6694ea61f82ab7b3','2023-06-26 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$zQcvEec2I3KpiitbnKXCVk28SYR7oeDBQ8IHfSZDo08xeq4J8.FAF','admin','ak_965b18931edbcb5f','2023-10-07 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$atFeC.KNmJ/f9janBZ9zfTjExAs0kJe25WY78UTbBRzLDuyGyjMpm','user','ak_22cdc4993c14d0a6','2023-07-08 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$2eevFvLISfZ/bVdiKfczOIIx9H9AkK84SiAj8Ys.G4A9JVFDzwEeF','admin','ak_f8c8c43e4b5cae64','2023-11-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$D91M3lPZa5YSkZsnVIAjUt/MRJNRlJlgRD.WxHqJWkfVQXzv.E4GG','user','ak_2881f50d5de979f4','2023-09-05 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$8TT6TLmbqXX1hHLfCudKicC0wLdnQM6xaUfBOVIQOcK5RkY0CWqsq','user','ak_fdda4da46af17feb','2023-07-11 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$5RQaTexQA6FM9PmTp/tmWf7AU/RxSY81kMTqqWlUClXv5wqlekBzW','user','ak_334639e52931101a','2023-04-28 10:03: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=24682;

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


