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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$oUv7GJDgLcNQfElL6DFLRtnML1nBkVticqzHDRsl7LRKhklDu7RAl','admin','ak_0da7ae82455d552e','2023-11-11 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$SOULwV1P.wH6OHDSU8nd9.hP06F6w1gSaTpgaanyTOOusyNYeE6p2','user','ak_e143a95cf26328ed','2023-08-12 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$sC6VfIl4SnaI.wMOiNx4D0EiJvoyyp9mRN3dLawuzMCaTL2H4sWNz','user','ak_4964d5e72de891aa','2023-03-27 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$jGlsWqjrOoO86mseBbSlAcNMkB0Hi7PI3ttyiTfOnsgXe4WNHKoyp','user','ak_218c8b20e303afac','2023-10-26 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$ZsLfJzqwji/c0b.4q8SEw.oOq.ocSetEVo94mVXcxXvkO9ztknDb0','user','ak_f35a323769c5d204','2023-12-10 10:23: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=7572;

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


