19 lines
446 B
Python
19 lines
446 B
Python
from datetime import datetime
|
|
from typing import Any, Dict
|
|
|
|
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
|