deploy-todo / src /models /__init__.py
umar-30's picture
Claude Opus 4.5
Deploy FastAPI backend for Todo application
18ade12
Raw History Blame Contribute Delete
790 Bytes
"""
Database models package.
This module exports all SQLModel models and database engine configuration.
"""
from .base import close_db, get_database_url, get_engine, init_db
from .category import Category, CategoryCreate, CategoryRead, CategoryUpdate
from .todo import Todo, TodoCreate, TodoRead, TodoUpdate
from .user import User, UserCreate, UserRead, UserUpdate
__all__ = [
# Engine and database functions
"get_engine",
"get_database_url",
"init_db",
"close_db",
# User model and schemas
"User",
"UserCreate",
"UserRead",
"UserUpdate",
# Category model and schemas
"Category",
"CategoryCreate",
"CategoryRead",
"CategoryUpdate",
# Todo model and schemas
"Todo",
"TodoCreate",
"TodoRead",
"TodoUpdate",
]