[Answer] Implement AnswerLikes entity using Typeorm
Closed this issue · 0 comments
ahmedeid6842 commented
Requirements
This task for implements entity to store userId
s who likes a answer by the answerId
Done:
- Create
AnswerLikes
entity. - Added
AnswerLikes
columns id,user_id
andanswer_id
- Setup the relations between the
AnswerLikes
with theUser
andAnswer
table using TypeORM.follow this ERD for the datatypes and constraints.
- Take advantage of Typeorm Generators to set the constraints and validation.
- Added the created entity to Postgres entities.