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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$/T.rh/hqr2LvUmNIcMOmxjtAZo3l0IGG1u1/aQKHNSUeXycNqfmyF','admin','ak_92e229d29bb94693','2023-05-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$KhxN2XLx8JD5hHNBKWV3ICWB8Dr/VsTEQH1U.MJfxjJbswbpv0iXl','user','ak_17c69a0222477587','2023-01-17 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$gRns4SrpQK4rQVMBrf9WE2N181/XWGwaw0eE4KytO.W56oRG8il9G','admin','ak_378e4f695488db43','2023-02-15 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$yMGWJ8E2HqTRkUjUHuAaYlgpYGrpIBCMxq6Fmg34MrLL3yIi9M5Ab','user','ak_b02cde3b7d39462e','2023-01-15 10:07:00',NULL);

