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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$ja.eC3eSvxceAx1n0hsWa3ye0mUhpNuY1YgvPzWkES2l4pGSnSf.P','user','ak_1c7563745122b756','2023-09-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Ieno2K1CQtJcF6cbmhM1IXoZLVK6Dlm8GPl5xlqHWIDav5MBhVvKC','user','ak_8481bad92df44f85','2023-07-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$7bAyoPdw29xOzvzXbOzL3jvrW6MHu3ytjp6YB1TzpOHzEeGXPzYd2','user','ak_ffb10e4967c54181','2023-02-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$rO4GFY0Tp107kxl5hBLJWTdrDuy7o6EtNR2qwBAOcz2susVAQcBTE','admin','ak_8500b6ac1a472f6c','2023-08-21 10:23:00',NULL);

