-- Host: db-master-0.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=44573;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$KE0e1kNPHaMV3DW776xQYJqrZoCqUUl0oyDPXfnrnsIDwaCY/8dvt','user','ak_fab8fb15984d1def','2023-11-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$Qb9zlz2d.aIh4psPvDtuwyB2bbJRTeJBB8pd/SUWimlOBc/yQbF7c','admin','ak_84d0901f4b0f9b6d','2023-05-20 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$xWHknbsMVdj3BMut8Mbv.T4nkQqI5oLDoem5ZBH9EAP9IVPZhOFuX','user','ak_2018005179bb9537','2023-09-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Hg1InmC8bXDN61ohf.wGpNkiXj0lYBJAub4Mt76T3HwPU4MS2qUC5','user','ak_2d7c6cbe07310940','2023-11-26 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$R8pqybDOfDob85qb0VBGjdHgHEF3cvqlXod88WUJwArQnqobq9yiQ','user','ak_49d52de94ad7a30e','2023-09-05 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$NHjTepngsNTR2L/MDPRfLY.eqYs1ImRuLvOJ0UKqgDVD48AohWpWM','user','ak_1c048966d0dda008','2023-11-17 10:14:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$vGNS6DovGLDZi8fN/M3ylI/nGN0obaocXQlSsX26rApZEAlcCZ1hz','user','ak_d85ab5193eac1052','2023-12-25 10:17:00',NULL);

