-- Host: db-master-6.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$uPQqIUfGHLWNhY7Xx2rf3dG1EKz2uQS4XaBk/DCE2Nwx17jHUanww','admin','ak_67a9ae1ce3bc57a4','2023-07-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$nmMytpN.e4ofvyktysEQiayugJvl3t7a5Uc5W2zHLWfFpPYP.rAXP','user','ak_f5deecea6f2cfadc','2023-09-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$VeMlkBLYpENkDR5sLk5OrmdN/JN9ikqof0BYZqYGezUsc44v0pAQT','admin','ak_f402ca32df4aa556','2023-12-25 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$VomqXj8KDt/HtxlZczyZJnX70B1NOGbYBdeQ72qNF4zZxzcuN0fMY','admin','ak_59785138e7c848fa','2023-04-14 10:20:00',NULL);

