ALTER TABLE `uploaded_files`
ADD COLUMN `user_id` INT,
ADD CONSTRAINT `fk_user_id` FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE SET NULL;