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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$DvJxnLHtmoRDsYdEcfqlDHPrjNur5M7.Ki9rpyRB0U5f/IVxfVuiq','user','ak_97d1515fe0584796','2023-04-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$c8QUreuIYgX/M2UkzNONsKYIyyHnzDr/BJH1pQkmL2pD6GrY7chls','user','ak_aba4577862b20fbe','2023-11-04 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$V5ZyU8uqSWhtrroQYU6xDw7lNq6mg4pQPswpbzO3xd.B0IwzFaEGR','user','ak_6bc51756249fcc1d','2023-11-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$YtBDCbFcLtAn7fHAHeHM079fGnFW268xAlaeS6/lsySJL87fMiRwA','user','ak_fe09c8971fa097e3','2023-11-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$S61RsAAoGT.HFbLkW9e3hAFuj4g9U7gja4hMvIXo2/PFg9hLSy2mX','user','ak_0f0ebf79ad869d7e','2023-10-19 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$p8UNYWgDmsn800.27xcmEENgkn/18bU0uHBUCRwwMQ4xeKATiuqub','user','ak_a231edecf28d94cf','2023-04-28 10:08:00',NULL);

