-- Host: db-master-9.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=22236;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$cXN0vP.dHamWxU62cNEN83Xhr2yU5/uK2krQjs/gs7HAIq10gsuZ6','admin','ak_5a116af0d9ff47b1','2023-02-12 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$.vGsBd/dLZEaWaJ2w5h8KHmOTilwiz2F76tk7M6gliV/JVPJFFg5L','user','ak_e877154b4493ae91','2023-05-27 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$.S7nYvK1pPpiV2OgUgvGbnq.Frfs7ErQMbaDN0AV2udJpK8V0IH/8','user','ak_df24ae0e3c023dbe','2023-01-26 10:13: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=25200;

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


