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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$H8ImDtXLGkYR6q5uEEQeuR/xPZw.e4BzLhCrUEGUvVs9D6XhqFcZs','user','ak_0c094ab77c3e7c16','2023-05-09 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$R5ZHdcUoR3m8j8feNvYFWVL0NKa/8v1voEYS0S0c8tJbkpDVN7jxG','user','ak_6b36c43a3963c35c','2023-08-14 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$WgnqMOXTNZdshZafWrE4fUOnMoIQv/DfzwhZxRXNjyPEKoellQGnV','user','ak_14357012e84d0de6','2023-08-11 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$sAt7vLzewHWneNV5wzCk5iuvhlDa8jju8rOwuMsK1ao5A6O/PqWR1','user','ak_a5ac07415f6f8a1f','2023-02-04 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$6aeL5S3nAQpC8kN104fOO0KnYaItS.qMVDz3KpbwXC/6qMsUFpw8V','user','ak_5040ee0b2dc910a9','2023-10-26 10:19:00',NULL);

