markcdev101 / spring-flavour-vault-backend

Repository for backend code for Flavour Vault
0 stars 0 forks source link

Ticket 39: Profile is created when a user is created in the backend #35

Closed markcdev101 closed 1 week ago

markcdev101 commented 1 week ago

Description: A Profile needs to be created when any user is created. Only existing regular Users can have an admin account - logic is that when creating admin, it checks the Profile table for the existing email and then assign that new Admin account to the profile

Concepts Covered:

Acceptance Criteria:

Guide:

markcdev101 commented 1 week ago

Profiles can have many users of different roles. Username now moved to Users and Email field moved to Profiles as you can only have one email per account but an account can have many usernames that reflect their role.

markcdev101 commented 1 week ago

When an admin user is created, it checks for the email in the Profile table and then when found, it links the Admin with the profile. So a User account who becomes an Admin will be given a separate account for login but will have the same profile.

markcdev101 commented 1 week ago

Added two new custom exceptions