
This commit implements a comprehensive inventory management system for small businesses using FastAPI and SQLAlchemy. Features include: - Product and category management - Inventory tracking across multiple locations - Supplier management - Purchase management - Transaction tracking for inventory movements - Complete API documentation generated with BackendIM... (backend.im)
13 lines
429 B
Python
13 lines
429 B
Python
# Import all models here so Alembic can discover them
|
|
from app.db.session import Base
|
|
from app.models.product import Product, Category
|
|
from app.models.inventory import (
|
|
Location,
|
|
InventoryItem,
|
|
InventoryTransaction,
|
|
InventoryTransactionItem
|
|
)
|
|
from app.models.supplier import Supplier, Purchase, PurchaseItem
|
|
|
|
# Create a base that includes all models
|
|
# This allows Alembic's autogenerate to pick up your models |