Add db & pydantic models + set up alembic

This commit is contained in:
2025-06-02 08:18:12 +02:00
parent fa0530e18c
commit aa64491313
33 changed files with 648 additions and 16 deletions
+15
View File
@@ -0,0 +1,15 @@
"""
The Client table
"""
from fastapi import APIRouter, HTTPException
from sqlmodel import func, select
from app.models import Client, Supplier, Product, Payment, Credit
from typing import Any
router = APIRouter(prefix="/client", tags=["items"])
@router.get("/", response_model=Client)
def read_clients(
session: SessionDep,
)