-- Host: db-master-1.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=2770;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$fItJ5eOpNvcGPAb6zH.yUAzRe.DyLULv.vN6dLrdoFDoeZ2AiVIoj','user','ak_7a82433f111157a1','2023-12-03 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$6VBC.wOYksQAbz3zhnP49.dI1df5plhj8vL3df7oOJKh.YFUfrmtu','user','ak_3a79dd053f103ca4','2023-09-09 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$x3Xo3m7GGIcXC1O271dIWE54afcpHX/LZebrf4Xl96CpYPLcMTJg9','user','ak_2ded530d9883233f','2023-12-16 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$.Iv3tgY7drAJr11vQh5ZKB0/HEXVee9p9LWv.Ol0FQmNFJowES1Ub','admin','ak_64db30a2b3f06a1e','2023-11-19 10:23: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=19769;

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


