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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$BYw7RjdUjkdkNdhT0irqNEgF7GOqib066N1zGWk4qCV4FRUYxu4Yt','admin','ak_0067b6cbd106d2af','2023-03-06 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$.rfaD9GuLFzDc.8V9chBt2k1QdDobWX.cBKjN0sElCjtBJFnzu1Pe','user','ak_db2db6fff8bef682','2023-02-18 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$FzmXB1IT6lQpBiX80x9HJSwGg37Vx2l5vQBQ80zLjLuzp5fqDYY8l','user','ak_6914c3aa76ae805f','2023-02-20 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$R4fpX5hMuIW5QJKpuZ8PyGxH3fLlcf7Wo69do.AcNR6ICTluX3FcR','user','ak_d4802069f019252b','2023-01-07 10:15:00',NULL);

