Spaces:
Runtime error
Runtime error
Download src/models/__init__.py from umar-30/deploy-todo: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/spaces/umar-30/deploy-todo/resolve/main/src/models/__init__.py
- Command line
-
hf download hf://spaces/umar-30/deploy-todo/src/models/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/umar-30/deploy-todo/resolve/main/src/models/__init__.py
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", | |
| ] | |