We will need the following two models:
Authpackage's migration, the columns will already be generated. The columns we need are
created_atproperty. Since each post can only be published by a single user and each user can publish many posts, there is a
belongs_torelationship between posts and users and a
has_manyrelationship between users and posts. Thus, an additional
user_idproperty must be added for the relationship.