17 lines
278 B
Python
17 lines
278 B
Python
|
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
|