simple-ocpp-cs/src/schemas/id_token.py

17 lines
278 B
Python
Raw Normal View History

2024-03-28 21:23:25 +01:00
from pydantic import BaseModel
from schemas.user import User
class IdTokenBase(BaseModel):
title: str
is_active: bool
class IdTokenCreate(IdTokenBase):
pass
class IdToken(IdTokenBase):
id: str
owner: User
class Config:
from_attributes = True