Files
connect/api/api/schemas/events/list_events.py
2025-11-18 12:12:58 +05:00

19 lines
440 B
Python

from datetime import datetime
from typing import Any
from orm.tables.events import EventState, EventStatus
from pydantic import Field
from api.schemas.base import Base
class ListEvent(Base):
id: int
name: str = Field(..., max_length=40)
title: str = Field(..., max_length=64)
creator_id: int
created_at: datetime
schema_: dict[str, Any] = Field(..., alias="schema")
state: EventState
status: EventStatus