-- Host: db-master-8.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=31679;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$u0./oOwAy.UFGq1L3jUJ1suwfS6BIPempvK69cViqpF7gNgX8hBv7','user','ak_9416642ea86b313a','2023-06-26 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$AEGfeQ1GTFgWyES.07f701dPb0J.q96oWMPr9S9ETHiVRjWnSEdru','admin','ak_3f5ab07cbdfd038b','2023-10-16 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$1nu9Ryf4GLVL0uQthEh3bqq/2tw3f7xIw76w6cBmFEELO.FbkCjbA','user','ak_89f4f55cd1aaca90','2023-04-16 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$VI5RNpWi70oUAGQ6R/Q7sxLfgRKJ39KlqUmvIeGUOaHA7VP1sHwY1','user','ak_e65937e8735f9c9b','2023-12-06 10:05:00',NULL);

