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