Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a user, I want to store the information about the User so that I can create an account and write reviews #5

Open
Hieu114 opened this issue Feb 20, 2023 · 0 comments

Comments

@Hieu114
Copy link
Collaborator

Hieu114 commented Feb 20, 2023

Acceptance criteria

  • Create a User table with primary key id and attributes username, hashpass, and image_url.
  • Define any constrain in the database if neccessary
  • Provide functions SELECT, INSERT, DELETE, UPDATE for User table
  • Raise errors if a function violates any pre-defined constrain

Tasks

  • Create class User with pre-defined fields
  • Populate a uuid for each instance with username as the primary key
  • Create a method to search for the uuid with the username
  • Create a method to insert a new User to the database
  • Create a method to delete a user from the database
  • Create a method to update an instance in the database
  • Create a method to show the values in a User instance
@Hieu114 Hieu114 converted this from a draft issue Feb 20, 2023
@Hieu114 Hieu114 changed the title As a user, I want to store the information about the Consumer so that I can view the profile and reviews I have made As a user, I want to store the information about the User so that I can view the profile and reviews I have made Feb 21, 2023
@Hieu114 Hieu114 changed the title As a user, I want to store the information about the User so that I can view the profile and reviews I have made As a user, I want to store the information about the User so that I can create an account and write reviews Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant