kir-dev / programSCH

Kir-Dev újoncprojekt.
https://program-sch-frontend.vercel.app
1 stars 1 forks source link

Remove relations from DTOs #16

Closed DannySS123 closed 1 month ago

DannySS123 commented 3 months ago

The relations are defined in the prisma.schema file, so we don't usually need them in the DTOs. If there was an endpoint, that would return more things, for that we could create a DTO containing other fields as well. But for now, let's just remove all fields from the DTOs (every entity.ts) that represent relations. (Like: ownedEvents: Event[] in the User DTO)