I have two tables : 

```
question_likes:

question_id references question(id)
user_id references users(id)
primary key (user_id, question_id)

answer_likes:

answer_id references answers(id)
user_id references users(id)
primary key (user_id, answer_id)

```

A colleague suggested that I can use inheritance in Postgres to merge these into one table. 

Is there a way to design this requirement?