Nightherald / aa-workshop-data-models

MIT License
0 stars 1 forks source link

[SOLVED] User Registration Implementation #1

Open Nightherald opened 11 months ago

Nightherald commented 11 months ago

Summary

Implement a feature allowing new users to register, adding their details to the users table.

Tasks

  1. Make sure the User model makes sense, capturing all relevant fields.
    • Consider expanding with a UserCreationSchema.
  2. In users_service.py, implement a function to add a new user to the database.
  3. Modify main.py to include a demonstration where a new user's details are added using the service when the script runs.

Notes

When the failures start, read the terminal before panicking :)

Nightherald commented 11 months ago

solved here: https://github.com/Nightherald/aa-workshop-data-models/blob/master/app/demos/users.py