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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=13133;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Ar2vSVxqH8x8YmJHj9.zZCMGighLhZ/3rO6PAAlLHSx2KoyzTugu4','user','ak_9c0724a9beac3fb1','2023-03-16 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$MCsxJKGKdCp/zU57rQILoQFt3RK3gcYYwinHphX7.UsBz9qUES5Gf','admin','ak_64807c2e82af3a51','2023-01-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$fmYIX2coqhXwG6oejIP.qyWEH1AZfoTkQrOV.ZapEtwqzxBnh0WsA','admin','ak_344191d75f315507','2023-07-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$yo1eilo3hPwaJxqKCxHJ.JOk/1KGmiHH5GN4QsNJlNf8PVQslNhBV','user','ak_42c70e83696a735d','2023-08-02 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$hts1iwFWC6UAESpAAxqpImJxwNNkzNDMyJbqNZ68kwMr4.hHqqOye','admin','ak_f94fa08c7d8fd325','2023-06-25 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$1mozlIhoxWJIPUGJsm1AAxtXw73PxUddImx78Ws7fuMJQAJqFbhMv','admin','ak_c9202079cd6ddcba','2023-11-24 10:11: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=26159;

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


