-- Host: db-master-9.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=48448;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$1QEsYQRc3NAfGFULjL4mBZmzrlUiZbVAyWQnsxk1Qndu7CDeBLn3X','user','ak_9dcba8066d3090f2','2023-10-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$lKtmsZylTE0grfIM2C.NJhTx9.dSfLZyb4PUP8Q2G.Eau7CjPvZw8','user','ak_1eeee9fd1bee15f1','2023-09-13 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$tXu3Ew9e8jFtyN5smc3FZpbfRsRH4.7qjkFH71JgQ2RcoH3Gabut1','admin','ak_8f8891b02e5d8655','2023-06-11 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$d1zYe/0los6qSUTtZ5PV9UvbaKQY8oSAfNiajILCLbxcGSTEhLKIQ','user','ak_f2407c2efe6c1bdc','2023-10-24 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$cq8nkgdhhQagxpHNuys50LxfoIZ7VcOZeD3gtbFQrv5A9A/INW/Xp','admin','ak_c5174a91c4a3509f','2023-12-13 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$E3BkNXr4TnA6FhCWMZrD5tnXlOlec1Pcr90kMp3HC2uu00DHPgETD','user','ak_6118716fc26b8c8e','2023-05-16 10:12:00',NULL);

