-- Host: db-master-9.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=36554;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$5rg8RAbi97QqmCsDiedmTghMYLIJ6015bg7hNm32vBp4ztcodb63d','admin','ak_da2101519b057244','2023-10-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$fpoQ4CPQOy1YU8PgmIDhQk3P8Gn1GWNIThRr33EsBmq0qUFoB42E/','user','ak_bc26a9aa80ee58ad','2023-06-19 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$05M9x09iQxFZKdHVpg.5zPtlQ8FwXjJwR9fohihjEvo79YzfnEgKi','admin','ak_ffd04f661a09dc72','2023-06-20 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$ayAFd7WOc00nDTZ3K6uxMXkNA3c/VLuNNkJHf9n9krlJJFlqo3fHI','user','ak_de07706692cbd47b','2023-11-03 10:12: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=42116;

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


