-- Host: db-master-5.internal    Database: analytics


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

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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$n3Mjnbm5jaVeCf9VCBaYxfwSC.77Wrlnms.b2sb2GCn0vcLjIaso0','user','ak_3bd8a87dc19b7b24','2023-07-03 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$R6ZdtYp1ycAFsLNabOjsfFqsJjHF97j0MC9yQSG2fppkw3X1FrOhF','user','ak_0a2aaf9cec6dee9e','2023-12-26 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$qcvk/2cF0ud7h8uLQK9TwVAUKDJQcTY99CQgXgoTL7XzAcve5uuTq','user','ak_2cb7e0e12b5dfb1c','2023-01-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$IFESwIouWf6pT91Sxav93fXzM.5f3Jt/ZUdMMcJRNZcTwS/l8/eUH','user','ak_85d687d9710ff31c','2023-02-18 10:15:00',NULL);

