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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$pDxMT/CKjyboeS.Dsg.K0BCL4pqJPTmktDtpl590eljJFh9z.lusO','user','ak_ae9eef00cfa58132','2023-05-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$ieEMQqNCF3BisAizH6z.ofYf5pSurNoeBx9UIEdSwOZvXFSIu5PXp','user','ak_73e11d0964877774','2023-05-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$o.Cw1QLtXCpSaj34A63tA8ss6T8GexWO3ve07aSX4yvaFUPZsZrhP','user','ak_f6d47c37c42ef2cb','2023-12-22 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$a8Gix2NM/aCVdQKufkQ0sHvzV1Z1Nbg6w/4SoIbWFItcJqIaODliq','admin','ak_a5013c2ebe11415f','2023-07-24 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$/6xA4/5BpB93A2wPKCdMlW5GVLxKkJ.tzlN5fi92ayiL24C2MYy/I','user','ak_bb151e40f66ad850','2023-03-09 10:09:00',NULL);

