-- Host: db-master-0.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=36834;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$68gpfcLZTUbX1tMkDlqSX17QnwNvAsRfR693.fIJtpN00611X4Fs6','admin','ak_437f0961191e2a94','2023-06-10 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$njxm8cDOArXkYEbD5Rh9kIZAPwUnvRw..UIGo1RpcwueVYv9tNkzl','admin','ak_40ca4d8e0fb0a80f','2023-05-28 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$18cAcShKqdMYkZWeldUDG5tHvyCjhIwgT73.mMx1vhTVNihZ1oV/3','user','ak_01be836d8624e49e','2023-09-09 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$VoeRPrQpUwCQeUv5fnvRWxgKNdk3KjP9QlppOXMB76NYMlAKsN8O8','user','ak_3ea6dd2f520ff94a','2023-07-16 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$vP7yOVq2b/9y7s.O6iSUgrBlTLcawk3A5Pgk8UrKlcRToedKx3fRl','user','ak_fae1c22d567ccc4d','2023-12-14 10:17:00',NULL);

