-- Host: db-master-1.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=29047;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$HaTZ5KGGKrTezWmSeMav/J7eMk0NBGZ.rRDzFfpASeVbShrt6tVEh','user','ak_d8bd7130ffda5f23','2023-04-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$GBUeqCsQONLNE5Ul85geFu8fTH24wU2gyZZby.R23kPEeOXMnOxpB','user','ak_c7f9d3d26d347c53','2023-05-13 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$LP8IAGPfQZjRGxPgpeSCPYQbK5hBFdQ6hF4PvNNLbWJ24oQxpE5v3','admin','ak_903603fb38e99b2f','2023-02-03 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$W0eS/m98TYKI1Eev62UWFUwox8W8tFG8kDanje.0AYcfuFvuGP36M','user','ak_8d798b8d852134e0','2023-09-17 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$O/wVtXXR.QEUyDHJDc5EfW3pge1N/J15HvcFNrRzVgdxWNdvQQW7v','user','ak_4abdbbc20332b2fd','2023-10-25 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$e7nrqaa3zecuozU04MpihXBCD.5DClWr4arGOjo8ygYTxQ1aSV81S','user','ak_2cb83d19d14c7ef8','2023-10-26 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@internal.io','$2b$12$gbmUcVeLa5cQlP1YGwLOvQgTBfrqoA7pnWm612KTvnYzxywZfI8.x','user','ak_8aed08ed58835955','2023-03-02 10:14: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=34219;

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


