-- 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=50156;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$B0zu1vRkkVIFgAKZU8zYhXTTvRzY4FTXxrUhMQ4bMvIaLNfy8tmjP','user','ak_8e87704afda89df6','2023-07-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$u/lq4rNFZQ5eBx.n3J5jDM4k3dEihKdqOQDO5dqpP0Mv8w89038JY','admin','ak_1b025933070cc701','2023-01-27 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$xKu5btnSvHcH1gQK3fOlnqPxVzHACgKpt7B7ULqH6zfQ22leC7hBt','user','ak_5c61b913576fcd2f','2023-06-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$33AjRjctWHNCh3ua/AYW9fa8YqW70ELIR5vWxGE84tr62nY1vKMMF','user','ak_d87da9001a7d66f6','2023-06-04 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$bKHvAYe3pbvdOcSvuVsh8/LsmwAr27Hc5bQ44/WAn5nQ4qZZLpdUv','user','ak_556c757379295000','2023-06-05 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$fmn7We1UIWpwNC9.5GW1YSGOw.RR6BIketO3eGjAz4kXuiyN3G9Ou','admin','ak_9f14d2ee6c7abc6a','2023-02-04 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$19vtbNnHmUaGZTmz5qGLRUUGuSJHyf0WwKv.YiPddyRADBH61H/yl','user','ak_74797695f4bef327','2023-07-17 10:03: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=6161;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=13689;

--
-- Dumping data for table `sessions`
--


