-- Host: db-master-6.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=47794;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$RXUNKMIw0JsySQSyVgYTQZwq6ZUQMaxPD11FC8JRJPYRYVeBi3vzP','user','ak_3a3d6ec5b95ff6cb','2023-02-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Hrmu8h3/Nk0xdwT/h/NIMOQffEVHH3663KIe2wX6wb.eJvjURzAeV','user','ak_31992b743186944f','2023-07-03 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$hFbtuCGw9sbPbmeaLusWbLskO77I/N9HQeXhA2J1kRIjVLqmW3rYB','user','ak_d68d90227eb5a689','2023-09-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$XMZiUpIoMev6SKVr0GuBnRjqx0mxruXKjbAHYlEgbQ7vce3tSG9uV','admin','ak_9f0c259e4cc57f3d','2023-08-03 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$9DKqeTcxay8msset9TPGEudnC8qSwf4Cb3JXo3qyyZ.RVK4JH5ZI4','user','ak_46f3185b70e0f219','2023-11-13 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$IjYuwvK9jDNSWvf1caj8d0f5gMpb/wMYmvN957JZxC68clIIPqg8b','user','ak_3094ebae55a75026','2023-05-21 10:05: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=8520;

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


