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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$u9PYCDG8lnMVSQV75EvnNpCLyRoLyezfxEN9WXuJpziMygtG04Kon','admin','ak_5ab8f874de1312d4','2023-09-24 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$tO125vo4BxRQtXdDPn6tO8Qvz2GKYlURId6Up1KjPt9jt/soSZjBK','user','ak_389368f6ce48d042','2023-04-18 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$8fNhx79seicUsbR2xBVLvEvFW9enyasjCp.X8BJw503xv2Rpdidm9','user','ak_0aba55f05db77d8d','2023-05-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$41OPWyANWEbtUC9CYFXdBatEDRCaxH9qfwZs4Sul/4AmGObLx5Pvw','admin','ak_0d1c548af7b73ae2','2023-07-13 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$FTVKwrKaDZN82z666tTrxovWe9sCvnqTnMS5SQPq28tAL7ZpARnZE','user','ak_00e0d9c1f83ccc6b','2023-12-11 10:21:00',NULL);

