You've already forked hotpocket
This commit is contained in:
24
services/packages/soa/hotpocket_soa/dto/base.py
Normal file
24
services/packages/soa/hotpocket_soa/dto/base.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# -*- 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
|
||||
Reference in New Issue
Block a user