Project Challenge: Create a One-to-Many Relationship

In this challenge, you will be tasked with creating a one-to-many relationship between the user and pet models.

We'll cover the following

Problem statement #

In this challenge, we will be creating a one-to-many relationship between the Pet and the User models. This relationship should indicate that a user can post multiple pets on the website. However, a pet is posted by only one user.

Get hands-on with 1200+ tech skills courses.