-- Host: db-master-1.internal    Database: webapp_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=33156;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$YcjdGYQgQYBMcjA9sTClSQAdUdRvpq0jeBV1Y4e.VXQ13OwpkK6F6','user','ak_aea6f5d2cb5bcdc0','2023-04-09 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$gnhRVhO2JBviGSQD45lwmJUV/OT3vWuyA/MylvXzJAho3yBuyURTm','user','ak_c76d420b91926d96','2023-11-04 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$3h6zPPHfDtGZmyCfbWuXQJokfwC8aWEv8IOe71y.6xmXTGeAslAJg','admin','ak_378acfdaa1854a82','2023-08-25 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$qPHmYe.aTr8HV7NY9wbr2MS/WIFPnk.fgbSAxCdZA8RBtvL9xodfu','user','ak_0a60daf85f63204c','2023-12-01 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$NPlC7aIlbQGHgICRMAm18hLq.oOeng7HuBhIswxoeP2I3RWfU1FPa','admin','ak_4f9a32bc4d2e39ce','2023-07-09 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$ZvOxcLVmNi6382TWWjgvaozMEq5tQsTb.f5QVwKb7IQDsQNyQpNo7','user','ak_42e5861f10d7271e','2023-01-09 10:23:00',NULL);

