ultimate-fastapi-tutorial icon indicating copy to clipboard operation
ultimate-fastapi-tutorial copied to clipboard

DB fieldname is inconsistant

Open olaf7 opened this issue 4 years ago • 2 comments

When building the example DB with Alembic the User table has a field 'password', but the code which fills the database assumes the field to be called 'hashed_password'. (part 10) When not using Alembic by uncommenting a line in db/init_db.py I get an error about not recognizing Base which is not(?) imported although mentioned in init.py

olaf7 avatar Nov 24 '21 16:11 olaf7

I also noticed the use of 'full_name' versus 'first_name' and 'surname'.

olaf7 avatar Nov 26 '21 14:11 olaf7

+1