Add db & pydantic models + set up alembic
This commit is contained in:
@@ -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,
|
||||
)
|
||||
Reference in New Issue
Block a user