Hi. Somebody could indicate me the ER or scheme of tables, in the process of verification of a raised file or answer of a task. After I manually changed an ID of the course_category table, many courses were blocked, and the moodle help said run the cron several times. I did it. And it did not work. I ended up restoring the context and course_category tables of a backup 2 days ago. After that, I was able to enter the blocked courses. But now, I do not have visible the files sent in some tasks of some courses. I found that the context of the table files, for that course and user obtained with the relation of the table assignsubmission_file, which pointed to another contextid (another course), I changed that value, and I already get the name of the file in the task and your link, but an error that indicates that it is not found. But looking at the contenthash field of the files table, it directs me to some folders and at the end to an encrypted file, which has the creation date and identical weight to the lost file of one of my tasks. But the moodle tells me that it is not found. What I can do?. I attach the ER that I have created for this case.