-- Host: db-master-5.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=25750;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$NUwSqtJNsIpP7glMVl1PfAZcm6kwXU2QnQuHZEMmYwbXYQY9d7QKy','user','ak_f800037fe25e9755','2023-02-07 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$EQjfi7wV/1A3K7lgZ99.D874quHgKvszbZrOeDKXLHcYiLOTZq2Wi','user','ak_6d995ddbb5120c6c','2023-05-20 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$fx.2xVkHBye0ehzuagvjO0pPG6w6j6e5TXX00dh92Hxao5fsaO7OP','user','ak_0544b3302873e6dc','2023-11-08 10:05:00',NULL);

