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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$93njJmKZbtw1PrwI.gUZeR.LHioLVwU3mQkO9a/RDpwz7FnTPt9pi','user','ak_7544c12fbd44bb12','2023-04-04 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$K1k4yLhgL5OeqlqZgml9kXsVVM4AgntO7tq4c02IshO0K6qFPkM6f','admin','ak_22c7f963264909be','2023-02-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$JvheNtytWEHwjooOM7Ejrmg6HE6DIC1GrWjy4IlDHg09q8y50ruZ5','user','ak_c8ec2105c2ad4f7b','2023-05-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$9hGD9Uv.Zp5x3Zg1MmooiSzQJ83ddJ5hORUVc.iUDbazx8h7tSSSS','user','ak_4fc488bbd0b1ebac','2023-09-22 10:19: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=27815;

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


