-- Host: db-master-9.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=41335;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$isPuqcZjRZN40kHxLJsmhjQRR.273IGLUGqwZGG6xU9CxHdY6RbfB','user','ak_8ce0869818ee7850','2023-10-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$oLrkxVKohsWymWLtr2DvSJij/7uEMzPEJtHTNmSpPOnhTwAF1F9kV','admin','ak_1b43554e7a0701e5','2023-08-01 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$WGkvQKjOKQrLOr.7m/2ATnhzHmwY8vIr6bYY5wVUc1C1c0znxqrWO','user','ak_cc7661c17f0f553d','2023-12-25 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$rZPjf6E9p7XmnHcMiBbILr6x6aNViddHxjSDZBjqGD8hgKQH.i.jq','user','ak_e66c9fa4f779b8c8','2023-04-23 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$/AZ2dHJCKF.eUaJVtPcAyzeFCosZm02Kz9G53t2/PCWDnnPZXnzum','admin','ak_e20782f8f5db35b7','2023-06-09 10:15: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=34598;

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


