Buuntu / fastapi-react

🚀 Cookiecutter Template for FastAPI + React Projects. Using PostgreSQL, SQLAlchemy, and Docker
MIT License
2.22k stars 350 forks source link

User table does not exists... #137

Closed SimonGitter closed 4 years ago

SimonGitter commented 4 years ago

Not sure what i am doing wrong here. I am getting when trying to login with a user or create one. Does not look like the DB is created...

postgres_1 | 2020-10-28 13:24:12.381 UTC [32] ERROR: relation "user" does not exist at character 263 postgres_1 | 2020-10-28 13:24:12.381 UTC [32] STATEMENT: SELECT "user".id AS user_id, "user".email AS user_email, "user".first_name AS user_first_name, "user".last_name AS user_last_name, "user".hashed_password AS user_hashed_password, "user".is_active AS user_is_active, "user".is_superuser AS user_is_superuser postgres_1 | FROM "user" postgres_1 | WHERE "user".email = 'dsfa@asdf.at' postgres_1 | LIMIT 1 ...... backend_1 | sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "user" does not exist backend_1 | LINE 2: FROM "user"

SimonGitter commented 4 years ago

Never mind. runing build.sh did the trick...