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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$b0CTxyyS4xHotr58Jp1hnDyhqaHEeMbH8nwMuBl9bDvCkwvP7SptB','user','ak_bf15077ca1234478','2023-12-24 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Xyodr1ARkoRCLBHrVlCPjuEgF8wdtKnm0sYT4ejaIxpxIgXKGgvkK','user','ak_4554e970b915a25e','2023-03-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$eOJf5ncdza4VDvAQujaBtebrQ4XFloNy1zWtNS7/Gg2RsRPy7jucb','admin','ak_af4cdda1b851acdf','2023-07-22 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$fgXm0.H22MP9v/2oPNcG.x6/6tyFc8zi7PAHNykY90L051ueJOoTt','user','ak_42ebee6f3a302663','2023-07-01 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$GQpt7YivPBoSnp21fcn0PLqh/bzGPGVRcQqEZ.5nE6ZbPg4PEr7Yf','user','ak_4320b18429ebe4f2','2023-12-08 10:05: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=39069;

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


