Adding Properties to User

Learn how to add more properties to an Entity.

Adding properties to User

So far, our User only has a surrogate primary key (the id). Let’s add some more fields like gender, birthday, email and phone number to make things more interesting:

Get hands-on with 1000+ tech skills courses.