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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$oFuTZetnVhsVT2KQUVT7sW37Gb.dKjBDLu2b23WCM8cgdWt3Mk6Kp','admin','ak_0e4d16e2e7d76bfb','2023-10-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Bv9I0M1g2FFVh1gZeCj5OxWJZ2rwn3qF1lKCMqj0CHDr6snBLAIHy','user','ak_e13ee9a144c99b19','2023-12-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$YO0bOpFnrJhAqJCEBMbLvRIUp8ynz11/Qb8H6G78Ba8ykd7iLQFXy','admin','ak_7704379068db0451','2023-03-03 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$dcJ0/ZUxAU3ALY.eEbz/zPmZrO/URnON1HpbpgcGpGAPZxlldA6wK','user','ak_becb8147754bae13','2023-06-11 10:14:00',NULL);

