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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$TSRXH8fl0ZDuFJ7BiGMyM3jTE6W2ZAz/RWsl2PgXGkPDLNbGMEFfD','user','ak_eb1e6c5123e1dfde','2023-12-25 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$pAPuALVx7M7eKqYwdb6Stg2ppSZrtCM/S0oSAOZYB2ycmSRWT60OA','user','ak_1357b46c331a58ff','2023-08-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$rPdlYpDJ.wolrzRlSDYYPRYC5M98.RKlQecKarwCFPogzdFPuZ3NB','user','ak_f5dc856615425303','2023-07-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$9ugEo5nC1wL5tm1t9gdXFVOHf70.Zp4Bz5e7Vr9b/XqgIf4QKXegT','user','ak_b4d2aff94680e825','2023-02-04 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$TpkU66VXtROyDkQFqg5Qbp2r35DhEpias8KYeH4ErgCRt1DT8Rl/Q','admin','ak_1ae96990851ea3ce','2023-12-13 10:13:00',NULL);

