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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$VZE78z8rhcMPebNxcx4TYCqUkK8dzBBF6FKAv9KTzyGyQO7Oxtmui','user','ak_6c30412858e468bf','2023-08-12 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$0jo36Ww0SmfRN86GVXRZzg2yGQRYwyauMtPF5/5bXTqzeyRijZv2b','admin','ak_22d0f956f6585007','2023-04-13 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$0g7eREcnpAY76wgYoI221DZXne5bQ1pEg8NjbugosFnShZb5wUhxO','admin','ak_491aaf18dc4a11f3','2023-02-26 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$0HvdiIatDrgGJSMgL9I6EAwkPZG1rvj33ta5UaB0k3EaKdXTGuqQW','user','ak_afeca4adc3e34b68','2023-12-23 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$uUQDvvaG/kyLtIi4C2SmhdE6abXkYZUNN6O4pZRcTZe4QRRv1C6kG','user','ak_5b3432a9b94b942d','2023-02-08 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$LcvLISWPLyGIDYjrKJ2Lofw9MXCDxJa2w33dtl5/Tpm.lE48mnqvu','user','ak_470aea80b5a9a62b','2023-08-04 10:00:00',NULL);

