backend/med_backend/db/base.py

21 lines
372 B
Python

from typing import Any, Tuple
from sqlalchemy import Table
from sqlalchemy.orm import as_declarative
from med_backend.db.meta import meta
@as_declarative(metadata=meta)
class Base:
"""
Base for all models.
It has some type definitions to
enhance autocompletion.
"""
__tablename__: str
__table__: Table
__table_args__: Tuple[Any, ...]