mirror of
https://github.com/FutureOfMedTech-FITM-hack/backend.git
synced 2024-11-22 14:36:33 +03:00
21 lines
372 B
Python
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, ...]
|