-- Host: db-master-2.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$CgNeKCZBXdLyEv3UpU/rJLcGNptSO.SIksjLBGJqrD6s4weu4OfeI','admin','ak_4ea585f876e36e40','2023-10-19 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$.bxyOWilQdhbEUBAACvSw.AqwiNOxJLN0juORy3cvyr1.Gpqmf1iX','user','ak_2c3af2ae2a2e73f1','2023-11-26 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$KYo3avgpSy9dlBk8qg2/Sl9Is9XzzrTaKlAxB4kHvP8X6ANadFWVb','user','ak_c4baa718a58dc065','2023-01-20 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$m3DFXFdJgzxF9hdch/QJEfQ6Fe8QviaAcWdVJVmKAdFgFv.LqTWC9','user','ak_3841d59a42777daa','2023-11-04 10:02:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


