I have 2 models, one for users and another for articles
Users:
id
name
email
password
role
Articles:
id
title
body
I want my article to have 2 references to my user table, one for the user who created the article and another for the user (role: administrator) who approved it, but I do not know how to do it without making a many-to-many relationship. it seems a lot for this case that I just need a record related to 2 users
in the end, Articles should look like this
Articles:
id
title
body
user_id < == (admin / moderator role) - Both of
User model
user_id < == (user role)
I have already established the roles with CAN CAN, I just do not know how to make this type of relationship.
Articles do not have more relationships with any other user than the one who created it and the one who approved it.