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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$u4GCMNlXk3Az0vkvMJh./u4zEC.luVa6c0GdqIAFIF2t52pzXRip7','admin','ak_1ea121dde28eecb7','2023-03-24 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$gj4wecZdOySpWatXCv2r4BqAnJDoOf21cKyRqkXQHzky03W/KcLlK','user','ak_06305a3fcf04254f','2023-08-14 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ZEvlWJxV3WWSzQR6O/q58W3HfRpzyUffJtMkjVi/l8B6Sfe0pYSls','user','ak_9f66d20e4cd790a9','2023-11-02 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$q0MuEyfnqaRK/YKMaNJeHHud1/GBfePIug2i70/h1Netg7N4QwW3F','admin','ak_313824425da7b363','2023-03-27 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$hl/UDkRg1FCfMz6wGeXL1X1z23MqbjrkudmnruT2eDws0E599BwUh','user','ak_62a8a0070ab638c4','2023-03-12 10:04:00',NULL);

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

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


