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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$m0REaqsuj3TZ8Zs3GyyA4.k6KkPwC1DtvdcYJ4DMVSzbq4Qvccvaa','admin','ak_f8f88464573fca17','2023-01-12 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$zRwVmNg/WvSa2/KFay8v9yDLCWNnsBGkkyD/fOd1ATb024dihQJb2','user','ak_b87d3350bef15f94','2023-06-22 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$7LaphVKw52nYhqBnUKRAXUXvBGUMMWfI9RuwedDEeSprU2..9EFi4','user','ak_c248f78d734b92e4','2023-11-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$lWS1mOSdKMyWuhhIdYI9Yk87p9piKrHgBXGL2vtKi.RW9L0yqcsdJ','admin','ak_f0b5721506b4d7de','2023-06-12 10:02:00',NULL);

