-- Host: db-master-8.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=41086;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$fgVTybOPAhfJ/i05iy3J/SwP/7GY2xavuPvYmzhDNyTDVQP0oGAjo','user','ak_5de1846b5b0725fb','2023-08-28 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$GqvA7rQ9r/6C9HbrsIdyDCsWzwafxRWVDddqYO7cbpI5fyHXayAxN','user','ak_5f85f78046ddf72e','2023-04-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$gzzO4yYxQkrp6zhOLZcuWzdMwkqj/S1I60DI.0HC4dHYFKkQwqkm/','user','ak_e1dbe46dccc02309','2023-09-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$1RtHUkq6BXR/h1hwxj.gA0szpCt3dsnwr.PCnm63ppXwmmfHI4mxa','user','ak_12a12389d822a173','2023-11-14 10:22: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=3158;

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


