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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$IZaff/PqNs2BUDOmpJG502T5J3j9gWeKnTwCOH5MCb7gm0/tI0zlA','admin','ak_6481c5b2ba51b30a','2023-08-17 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$YYg6VkpKoR.SNRbiMLgl6WpocczB2Vp8GY5tC8r1WiIcxmR0vviIe','admin','ak_d57bda9806357e9a','2023-05-19 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$58F5oKgzbu9AcWtBAtGCHwHYVAOrKN56rayDNyRTN9V1uA0dkM/zI','user','ak_bd1a023b4548ccd5','2023-03-20 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$rf5CykddHCB/0Hl.msQ7LQI9WDMJcVxfmQkQYaIgoluH.I9of/rvf','user','ak_0414a5ab14968175','2023-09-01 10:13:00',NULL);

