25 lines
431 B
Python
25 lines
431 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import annotations
|
|
|
|
import datetime
|
|
import uuid
|
|
|
|
import pydantic
|
|
|
|
|
|
class ModelOut(pydantic.BaseModel):
|
|
id: uuid.UUID
|
|
account_uuid: uuid.UUID
|
|
created_at: datetime.datetime
|
|
updated_at: datetime.datetime
|
|
deleted_at: datetime.datetime | None
|
|
is_active: bool
|
|
|
|
@property
|
|
def pk(self) -> uuid.UUID:
|
|
return self.id
|
|
|
|
|
|
class Query(pydantic.BaseModel):
|
|
pass
|