-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$C/sbRrIFepre/FDqMv5n4GwI/hY5fNIy9NdKf0qBavYBeB8acFp40','admin','ak_0de39e43a13c1540','2023-12-07 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Iw5.GW3SC2sp..go7rdPuRKMlfuO5.iJfQEm9GjkOTxmFPod25rLy','user','ak_44502fb6c2963e30','2023-05-20 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$DeLw55uvZPEi1NGEJ.5ZOp39ybzO7X0h4W7a/B.fSH5eT.wsjrVgz','admin','ak_ffa2d320b52ce53a','2023-10-03 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$mWiJnAQhwxS3vdA8jqsrGW9dMmdDOD4/e.fmGCpXy9oMtHVX8zpnF','admin','ak_6a24b6fae8f82153','2023-10-26 10:21: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=6946;

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


