-- Host: db-master-9.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=15162;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$QICzAHDSk3fouhi2uqEw.omNOkHoVL5WDPfLPvoTKLMeGN.NZA7QX','user','ak_9fa4cc95ec6ab1ec','2023-03-06 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$uPHNH6qt5YJmGxvtquaqv/YSsWDsXqaezoHgXn2/TN0XHd30YVYXh','user','ak_2e4976466fe8d788','2023-07-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$KzBQpwt1nOWikvhqTfkOWrWpd.DUb29N98spZSfzeHcLkG6Nn8jkG','user','ak_cb57b16a712b9f46','2023-08-02 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$V3RIO5mDW6P6JplhCV5hFIdVTSwpi3KQRAPQfJj0vhWB0wk4VCxv2','user','ak_7d5f355a0a34f4a4','2023-08-28 10:15:00',NULL);

