-- Host: db-master-4.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=27455;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$M8CMSCAUwbB/rKXxsH0Ol1/oxrKLmFanzI8q0ouHybjFkeRH7mPOe','user','ak_f3b9b624ce9504f8','2023-04-13 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$jgzWOVk2oDSEtosVObFHAunM7ObzDOh2DdICnb2/h70BG/lJHqvgZ','user','ak_fb880985aefefcdb','2023-05-11 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$IRE3XGnpbqu7SsZQx3lddOgOMhGZa.lqnO6ffWp6ga1ozfiT1Ks7a','user','ak_8a3164b86a4f9e87','2023-08-19 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$ZPvJwzfHFryAd3fF8wfc2V3.XPe9w/X6AJli/vZ0tYI/PyhQy5FA8','admin','ak_a8dbd8d1819bc760','2023-08-09 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$dNq7FsVHN7J4ARZKSiRLNd7/O6osS3aBviKXHDY2zZO.tFZxOu/6n','user','ak_a22f9d21e409b358','2023-12-10 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=29929;

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


