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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$dh7XIi4Ln461EwusSTJqVclGqHOsag/htnIaJb4oJJ3j0kUOE/4a/','user','ak_79a9999073e6ad99','2023-04-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$xwyK7XIHeqh7XdnEfowoXt6zoSpiDxO0o.bIWysAhvy9CW47KT.aj','user','ak_75e41e6ba804e984','2023-03-19 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$4w/vghr4.LSEcMA6SJNBHuzwpJ2MdDfGWJVAMCVzJgao.uzSdTxj6','admin','ak_02439fd21528f46c','2023-10-19 10:02: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=8245;

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


