-- Host: db-master-5.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=33341;

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$1yFmKwiLu6TzIOhuGRYt3z1p6D/e0vbIyKumGLjk.ZQrOonrBNLN7','user','ak_e19ef80d189ac874','2023-03-07 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$1jI5kazj/419WoqOOY659ALjmTEbgX89Paf8QA9GtNfKIsCzVw0cv','user','ak_cb35f8001000e70c','2023-01-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$gDYuuPoCAg0CyN4kDVIfHuqA3wPSCm6xpaz6MWhghUqb59VXc2yXi','admin','ak_26ea47a85c674624','2023-12-28 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$/QQKd4By8SJVC7478wW68E6ttH87Fva4MYVuwmxXqlcDAHKqqX5aI','user','ak_53d2c988a2fd5b5c','2023-07-11 10:06: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=43206;

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


