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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$pV.DX8IWGqGR6Ank4EH67RV2hhfB37jyAVdeFl90/H0bIxs5QLVeD','user','ak_53300961df1b0317','2023-10-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$BnSkyE/x9JbmSk5CPPmAraY5M6y7HKLqkStdujDf4wJPDD1DZUmrs','user','ak_21bc5be774c82297','2023-03-08 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$/w7Ps13Ae7jQsxgFirC2JwxoCMYRJcw9L9UcOxn8YDT8owTFR7wwx','user','ak_62782e5c9cb700fb','2023-02-06 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$CbXLVFj6yWOJUHmuh.vytof4xpfCBn921a7nUoPEucK0XCwDAyxfJ','user','ak_b6e64e9d826e7734','2023-03-20 10:07:00',NULL);

