Dotnet

User Profile

PRO
Outline

Intro

In this section we'll begin working on the user profile.

Overview

As we build out the User's Profile we'll be working:

  • User Profile Endpoint
  • Follow
  • Unfollow

Although it might seem pretty basic there's a lot going on here.

Database Model

Up to this point we've only created 2 tables. However, these are 2 very important tables because everything hinges from them.

In order to follow an Author we'll need to add a table named Follows. It's a simple table with only 2 columns. The Primary Key is a composite - basically, both columns will create a unique combination with the User Id of person who is being followed and the follower.

What makes this possible is the relationships between People & Follows. We'll use data migrations to set this all up.

 

I finished! On to the next chapter