-- Host: db-master-6.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=8116;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$k32qFqwVsY3e3lx440RiHz6iLIXLGVS3oYfhVf182U8O84ygytobG','user','ak_8fad082863c477c6','2023-02-14 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$mfwbMRONdKlJI5ZYpzGR94UvllUA8f.A4cyiKF5ypujCNJvljyMmJ','admin','ak_14561d6a8fc6b939','2023-10-06 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$kWRlxwgl2GqwzSYJY/AbEUgrCc.2CNRM4VPRdIiVQwYwegrY/nSbN','user','ak_8addf3a66f60d4a1','2023-09-09 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$OL6K7Sadh605LR30HY7joSgbU7aitovoQRE5AepIYETqLVBgvKQl3','user','ak_243e09b4f8213a64','2023-03-14 10:06:00',NULL);

