ahmedeid6842/How

[Answer] Implement AnswerLikes entity using Typeorm

Closed this issue · 0 comments

Requirements

This task for implements entity to store userIds who likes a answer by the answerId

Done:

  • Create AnswerLikes entity.
  • Added AnswerLikes columns id, user_id and answer_id
  • Setup the relations between the AnswerLikes with the User and Answer 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.