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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$Js7xPl2GldWsRjPeaKXRvmDcZhNPTUW5gmpHg77hjHRck7TGlMn.q','user','ak_502140c77e4523a2','2023-07-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$T2tDZCS3usCR2JidjaEivDxUagQfrnHbnMGS5ki9O0l07CjfVK28T','admin','ak_761b01dca58c4141','2023-05-28 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$GxzFBlXpZmTa.8K47yWv5mjXUa8Aj1lee4C9ooKqXiab95jP8qT5l','admin','ak_a60a649b86eb74b9','2023-08-12 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$wfYKZNSIPea36ll3RBTnv3.WtnSAWEf7Vj4UpUbt.T9pYrPWkj.0g','user','ak_219b04c29d9aba56','2023-02-02 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$YVM0kF13CJ/cBmeDOtblboUnJTMrjSSZ8mpfBfae.QGnbZ1WrwjN/','admin','ak_92b782245796ce00','2023-08-17 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$CMKu8XnzcXbQOdF.4EiAN/zAS.wDUeaEJgPAUDpkj/kAkrvEwLvgk','user','ak_0b19d0d342eea627','2023-11-14 10:04:00',NULL);

