Class User

java.lang.Object
com.cis.gorecipe.model.User

@Entity public class User extends Object
This class allows GoRecipe to store user information, including login information and personal preferences (such as favorite ingredients, favorite recipes, etc.)
  • Field Details

    • id

      private Long id
      The primary key of the user
    • profilePicture

      private String profilePicture
      The URL to the S3 storage for the user's profile picture
    • username

      private String username
      A unique string for user login
    • password

      private String password
      A salted and hashed string for authentication
    • email

      private String email
      An email address to allow communication with the user
    • firstName

      private String firstName
      The user's first name
    • lastName

      private String lastName
      The user's last name
    • birthDate

      private Date birthDate
      The user's birthday
    • favoriteIngredients

      private Set<Ingredient> favoriteIngredients
      A list of ingredients which the user would like to cook with
    • savedRecipes

      private Set<Recipe> savedRecipes
      A list of recipes which the user would like to revisit in the future
    • dietaryRestrictions

      private Set<String> dietaryRestrictions
      A list of restrictions on which recipes the user can cook
  • Constructor Details

    • User

      public User()
  • Method Details