hotpocket/services/packages/soa/hotpocket_soa/dto/base.py
Tomek Wójcik b6d02dbe78 BTHLABS-50: Safari Web extension
Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl>
Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
2025-09-08 18:11:36 +00:00

28 lines
489 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
def to_rpc(self) -> dict:
return self.dict()
class Query(pydantic.BaseModel):
pass