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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$ZCU2Nn0UZk9NCquFUg5YvuLfVRsyyVE/N9lZPIWjdJYWHXx3SUVb3','admin','ak_eae3b35c0fca764d','2023-03-05 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$74z5Al88c04K2f9Gsbw9qbxkLVKX.iHOem7vFo1H8JQ7TDg9SDsiF','admin','ak_7218da85a2ec860c','2023-07-06 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$Ehhj3.yGbkWdtg47TQGYlIaFd9TgMi1HhevAAIuhPkVRr2drkcWL8','admin','ak_37a5099fc0484434','2023-12-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$CeOk72PseZUhg9lGEWSJO4LVEtWBR.0Eq5YHBF95eLnh04ekdhs1d','user','ak_cf98838f2e4a2a8e','2023-11-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$pJaKEoysT8w4eG2zw5JusBaZXElkxER8NC0skcKAKwlfj8QtEOL3f','user','ak_0a92d494e9e152e1','2023-05-02 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$mnVeBijsG6BrmMQj6HPC0CdpguXiAYhljMsEM1Qg.NVzWFf8oFbh7','user','ak_d0f7c4b07960e053','2023-07-15 10:06:00',NULL);

