cleanup: Remove MetaModel.

This commit is contained in:
2025-06-10 22:43:08 +10:00
parent 04b6dcbc3f
commit 7f977f90e8

View File

@@ -16,34 +16,3 @@ class ModelField(NamedTuple):
required: bool required: bool
can_create: bool can_create: bool
can_edit: bool can_edit: bool
class ModelClassABC[RowT, Payload: TypedDict, CreateParams: TypedDict, EditParams: TypedDict]:
def __init__(self, app: web.Application, row: RowT):
self.app = app
self.data = app[datamodelsv]
self.row = row
@classmethod
async def fetch_from_id(cls, app: web.Application, document_id: int) -> Optional[Self]:
...
@classmethod
async def query(
cls,
**kwargs
) -> List[Self]:
...
@classmethod
async def create(cls, app: web.Application, **kwargs: Unpack[CreateParams]) -> Self:
...
async def prepare(self) -> Payload:
...
async def edit(self, **kwargs: Unpack[EditParams]):
...
async def delete(self) -> Payload:
...