25 lines
555 B
Python
25 lines
555 B
Python
from datetime import datetime
|
|
from typing import Any
|
|
|
|
from orm.tables.process import ProcessStatus
|
|
from pydantic import Field
|
|
|
|
from api.schemas.base import Base
|
|
from api.schemas.process.ps_node import Ps_NodeFrontResponse
|
|
|
|
|
|
class ProcessSchema(Base):
|
|
id: int
|
|
title: str = Field(..., max_length=100)
|
|
description: str
|
|
owner_id: int
|
|
creator_id: int
|
|
created_at: datetime
|
|
settings: dict[str, Any]
|
|
status: ProcessStatus
|
|
|
|
|
|
class ProcessSchemaResponse(Base):
|
|
process_schema: ProcessSchema
|
|
nodes: list[Ps_NodeFrontResponse]
|