Time to actually store the posts in the database! We'll also add a browse command to view all the posts from the feeds the user follows, right in the terminal!
A post is a single entry from a feed. It should have:
id - a unique identifier for the postcreated_at - the time the record was createdupdated_at - the time the record was last updatedtitle - the title of the posturl - the URL of the post (this should be unique)description - the description of the postpublished_at - the time the post was publishedfeed_id - the ID of the feed that the post came fromSome of these fields can probably be null, others you might want to be more strict about - it's up to you.
Again, no CLI tests for this one. Play around with the program and make sure everything works as intended!
Become a member to Complete
Become a member to view solution