KorynLA / GuineaPigFactsBackend

Daily guinea pig facts
0 stars 0 forks source link

Add username field to Fact Document #11

Open KorynLA opened 4 years ago

KorynLA commented 4 years ago

Fact will hold the username of the client that added the fact

rdelhommer commented 4 years ago

This is a good idea. Small suggestion. Instead of linking the username of the user, use the ID of the User. The ID will never change, but there's a chance that the username could change. Also, using indexed IDs to join data is a lot more performant than joining on string values.