connect/api/api/schemas/account/account_keyring.py
2025-06-03 13:01:10 +05:00

16 lines
427 B
Python

import datetime
from typing import Optional
from pydantic import BaseModel, Field
from datetime import datetime
from api.db.tables.account import KeyType,KeyStatus
class AccountKeyring(BaseModel):
owner_id: int
key_type: KeyType
key_id: Optional[str] = Field(None, max_length=40)
key_value: str = Field(..., max_length=255)
created_at: datetime
expiry: Optional[datetime] = None
status: KeyStatus