mirror of
https://github.com/reconurge/flowsint.git
synced 2026-08-03 12:16:23 -05:00
22 lines
305 B
Python
22 lines
305 B
Python
from datetime import datetime
|
|
|
|
from pydantic import UUID4, BaseModel
|
|
|
|
from .base import ORMBase
|
|
|
|
|
|
class KeyCreate(BaseModel):
|
|
key: str
|
|
name: str
|
|
|
|
|
|
class KeyRead(ORMBase):
|
|
id: UUID4
|
|
owner_id: UUID4
|
|
name: str
|
|
created_at: datetime | str
|
|
|
|
|
|
class KeyExists(BaseModel):
|
|
exists: bool
|