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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$VaQPwGXNzYoIk..OeN1u2QXBq0uqU8Zu6RhqhqgnFp2VhUXyOviOP','admin','ak_c93d955f49253798','2023-08-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$.Dpum7O4G10dHrrb2oKZpLkFlkkYhzr/jucmFRsxVXyWNhsO4BZWR','user','ak_582fa69b8318d89b','2023-09-07 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$99bDTy7z.jb6ufOtW.5O4Juc5NAUitUHbxwJoKzpG070f0/z9qz46','user','ak_24c71328fd696017','2023-05-22 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$2EgKk3mAUhqUIR4OIxLAIcFIPGikohH/oXiXT3qasLUTa.55GynI1','user','ak_94878d1e1289ec80','2023-04-19 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$coSVyMqg0yYDBgeQ/4Q/PzHcdCFeF7mSlvE6tFdOOW/CCWmdL3b0M','admin','ak_7708281d5f62ef70','2023-08-14 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$K08GSCK7Y72AEq5gGzFjMMVq844OJSOaz9niIv0iOmcpELVrTIcoQ','admin','ak_6a632002fd09efa1','2023-02-09 10:19:00',NULL);

