simple-ocpp-cs/app/schemas/id_token.py
2024-04-13 22:43:03 +02:00

18 lines
305 B
Python

from uuid import UUID
from pydantic import BaseModel
from app.schemas.user import User
class IdTokenBase(BaseModel):
title: str
is_active: bool
class IdTokenCreate(IdTokenBase):
pass
class IdToken(IdTokenBase):
id: UUID
owner: User
class Config:
from_attributes = True