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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$1QDnaHdUOR4Mfxbuwnqznz.qnbweWJx17KUbAlA0CY8aNiujSKzwi','user','ak_33326b2fcc0a9994','2023-08-17 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Zybk0NzKtqb9WXKJOiPSfFgJCr9JXQ.VIf3vMRfh6QCDykSrAMMYL','user','ak_7afecd306dea7597','2023-11-10 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Qqg6yHD0T2Yc8bSPwjZsuVRaHwFBiCct.e0Lr1mZ2CJLO8SMVBV7c','user','ak_d3e15bd1aae6f63f','2023-07-18 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$o1qegPDddEU7T5gJZ31ErgKZ/BU1qzvMGRO82ZZzkEwYa78gj87Qe','user','ak_bda05e55e115cb37','2023-06-10 10:00:00',NULL);

