ita-social-projects / SpaceToStudy-BackEnd

MIT License
12 stars 5 forks source link

(SP: 2) Delete resourceType from Cooperation & Course models #900

Closed Olenka-Hryk closed 4 days ago

Olenka-Hryk commented 1 week ago

Delete resourceType from Cooperation & Course models

The resourceType field is redundant in both the Cooperation and Course models. It is always determined by the resource object. Therefore, it should be removed from both models to improve data consistency and reduce unnecessary redundancy. This will also simplify queries and data manipulation operations.

Screenshot 2024-09-05 at 18 43 18
Olenka-Hryk commented 4 days ago

It is not good to delete resourceType because it provides critical information about the type of resource being referenced. Without it, the system would not know what model to use for the resource, leading to potential errors and inconsistencies.

Screenshot 2024-09-12 at 18 25 47