WIP: initial fastapi endpoint implementation

Client endpoint - GET & POST implemented
This commit is contained in:
2025-06-08 23:17:58 +02:00
parent aa64491313
commit e60489715a
25 changed files with 207 additions and 88 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ from alembic import context
import os
from dotenv import load_dotenv
from sqlmodel import SQLModel
from app.models import Client, Supplier, Product, Payment, Credit
from app.schemas.models import Client, Supplier, Product, Payment, Credit
load_dotenv()
# this is the Alembic Config object, which provides
@@ -24,7 +24,7 @@ if config.config_file_name is not None:
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
target_metadata = SQLModel.metadata
url = os.getenv("DATABASE_URL")
url = os.getenv("DATABASE_URI")
# other values from the config, defined by the needs of env.py,
# can be acquired: