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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$449P.Sref6Yck7aajYkTxyKiEqBZLxe/KnVFnkZFA7sLUCVSMgq1o','user','ak_923f033eb85b3153','2023-12-18 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$M/4gT1RGMhBbUbRtWRW2swVW/gXoTBm.ZRoqtfOqPvby/9c7OLu4I','user','ak_e8721ce7d8bbdc65','2023-01-05 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$5g9zEj/9.1TqivDPVGdNsNcjf1llsMdi9D/VdtQbTsoErABPnVdEh','admin','ak_0c771b5c4f518363','2023-09-03 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$jalTS7GmeGz0.OkdBUqRTyvORFPPVwOPEipnyeT.VKe3EQIgtGSOS','user','ak_561696964323ba26','2023-05-07 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$.SpmS4WSdr0mBOgSzP7pLmNefZpaHx5gRh//.1VheKyz7lk0Vnvgn','admin','ak_1d0c4b66b9210c72','2023-07-12 10:00:00',NULL);

