-- Host: db-master-2.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$mUGDsifrwGLTozcllfEzkzcxjfYvljkfuZ5mc7s8SxF5Wto9NCJjC','user','ak_80329f581548f743','2023-10-18 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$el.MPV7lObNwvShy5AyhgxXYC6q5pvdxCgcoZHYqIIB4QYQuRsk8g','admin','ak_6c2ce4956ed0f81a','2023-07-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$q9UUifIbdbLyu53PuxdYkWptsur7azXAPsovHzxWAirD7T8/na9tJ','user','ak_f7ee45306d220b29','2023-03-08 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Nko4usnRB22VksZNXoGF1shn0OzGut4Goqc4KLuh2gbk9.nsmqzPA','user','ak_c39db4a0a8835aa2','2023-03-26 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$w7qTk.Xi/ULbkx4F7UmOWDPqhYAA4d4SvZN9LI8e9wkAUKdOXFKgJ','user','ak_3d7489fd325a6d76','2023-01-19 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$hSihEwOeOm.kVvEG26In9QLYmOlLhHkiDb2d0fkVO96WbzdN3FnQK','user','ak_d895208f14e65040','2023-09-13 10:09:00',NULL);

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

--
-- Dumping data for table `sessions`
--


