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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$h7ncm8i7NjZDIqW7w3Q.f31PYMWGLWZtQqNE494MsXKly.b9fy.n3','user','ak_c315a2d1ca5c5d01','2023-01-02 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$v0YXwR8Venb78MsUj.Iz8hs8PY86UpYKZ57UJPu1sMJDUFXgjNoNN','user','ak_d51b0a380cf5c0a7','2023-05-05 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$lFEFdyX9gpQX6A78x0e1Uw3pTb9nCaJXRkDfiLVuCFkU3zIyOQyQj','user','ak_6140cf08c293730f','2023-07-24 10:16: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=30676;

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


