ecome-earth / SFW-Microorganism-App

Soil Food Web Microorganism App
GNU General Public License v3.0
5 stars 0 forks source link

:art: Added User and relation of Vote and Upload model #66

Closed mike-gallego closed 2 years ago

mike-gallego commented 2 years ago

Models were refactored to improve readability. User provider allows users to change information in a User model

Description

Created User model and provider. The logic encourages to build a foundation in what the user can change. This goes for their location, email, name, and experience. There's an email validator and options to update or remove an upload or vote from their respected list. I also refactored models to allow more readability to the developer. Instead of naming models [object][model] I decided to for [object].

Fixes # (issue)

65

Type of change

Feature & Refactor

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Test Configuration:

Checklist:

mike-gallego commented 2 years ago

Also, I created a services section so that they can be used anywhere in the code base. Adding authentication and database logic would be ideal to put in there.