Add CRUD functions and Pydantic schemas

This commit is contained in:
lvrossem
2023-03-27 19:48:48 +02:00
parent b16198a816
commit e9b2ea4188
4 changed files with 62 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
# SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db"
SQLALCHEMY_DATABASE_URL = "postgresql://user:password@postgresserver/db"
SQLALCHEMY_DATABASE_URL = 'postgresql://user:password@postgresserver/wesign-dev'
engine = create_engine(SQLALCHEMY_DATABASE_URL)