-- Host: db-master-4.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=38893;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$XQxGpLOC03qJ/zQ3oE0cVBuZE2itju5fgYzTP8wu0WjXHxeSYutAZ','admin','ak_bf20ae7d504c13b4','2023-06-28 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$tMb42Xe0sf36wl2JBFZtXmuoeB4PB/s2Qwch8BZUvWsSAz5lkDyuT','user','ak_95752f192928b133','2023-08-20 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Fgk/7cAOqJo2KrYOTrQddbSXiI.7EzjtJhO2c2c3ZUE9qsUmn/M/q','user','ak_02f745e18b3b4e66','2023-08-09 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$QlTulRRlQPVvYUaiEXelQaaYNYg/OlI4Klsb7HJNKePn64vLBgtDV','user','ak_03c07825e00eee18','2023-12-17 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$olB8ngVvpfOsawAWsFkfWjvwS4aQfQT5vLy5iynUWN44tuNkTkB.Q','user','ak_0b09c42a61ea5460','2023-01-23 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$IFNdwE7NXOj./vV7WD6hKb4/Ob09kC7WMzsMJSX3YLO6u94dPsEGT','admin','ak_9ee90710b49eaac4','2023-08-16 10:17:00',NULL);

