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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$IsEubzpDj0QDZx8uEUrrzcmGWBNrVau4otLZanWem09gUNZcDP7jD','user','ak_5bdd6453612fc6b5','2023-11-24 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$of9vGmFhBQ9MvaRSM0FweRhuFrl8QMTgf9KKKJT/gGPUPntMNSoDD','user','ak_7024f833c3240d16','2023-04-15 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$5hnCFDU7r6Dup182q2qw8NHNqUc9r3M9iUB.UHTV5vB6rl6GXjg/Q','admin','ak_6a6e4a41953a245a','2023-12-24 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$hoEXgoDt81.WpqSxgOLBic6ADM9BYz0klUFcaHAq60kOtiOZEaI82','admin','ak_0e53469e0befbaaa','2023-02-03 10:17:00',NULL);

