-- Host: db-master-5.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=2650;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$A1UYR6K/n7bf/HJHqKhnJWlhPP9KRGWv6MP7h67Fe0X44irLQGHMS','user','ak_f01e55b4390ad7fb','2023-06-08 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$5g41.6K7nku00pmfHnTpXzUq1izDYM7LEwShsj324L1rSUTmtpFXZ','user','ak_b7aca2868b49cf27','2023-08-28 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$Kun0J4AYZVY4bTHhPUIoXYyy78vfOZuK8cd9mN.N6EaoLfUmX9jOz','admin','ak_d2f43bead80999a0','2023-09-27 10:10: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=11227;

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


