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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$ERl5lg5brBVOAvPFRlUq.MB3Ew3KMZL5OzoFH0cuADy.SPSLzAQcu','user','ak_f059926a32273909','2023-10-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$YW.BjbJMUak47RxXbiJt8MtQBhM0M/Xlk.GNhavomQy6VPyADJ41P','user','ak_032d69671ab97259','2023-07-16 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$peJu43.Kxh/CLFaCqBdFSlQBA/gJ5WPZ23tWKrhUlv3xO4eTsrLFE','admin','ak_f43d3979f6fab8a6','2023-11-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$57arw1kmoUrBg/81ZnC1sFim9ahXNTLduWF4BN5HPgvSnFOnhfsan','admin','ak_1e9a10acd541c16a','2023-05-04 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Fi9eQcE35l4MePq6zdrS24dQogAQ/ib3ao1BoHZzRSGb9ZX4ec8Nu','admin','ak_94f51f30d7725beb','2023-11-06 10:07:00',NULL);

