-- Host: db-master-4.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=27189;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$u5u4zbWwamkjarsUyn2.bHluRcALDNtO/gJjm5jE8.VmtpDLlSCTu','user','ak_51c20f32238c0d75','2023-09-07 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$aLNyuR3ryE4Q3x9tkbZZ0mthRK3Yxxd1yEKvyvZ8BjfYpVVsBh4du','user','ak_01ace1c9955478ab','2023-01-27 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$eQXrt/1Z91YyU/4vzFYfhEqUT9thbkZSkmyfubNjn6J2WElmjvZcT','user','ak_5e516bcea1ee19d0','2023-08-13 10:01: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=9996;

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


