18 lines
393 B
Python
18 lines
393 B
Python
from pydantic import Field
|
|
from typing import Dict, Any
|
|
from datetime import datetime
|
|
|
|
from api.schemas.base import Base
|
|
from api.db.tables.process import ProcessStatus
|
|
|
|
|
|
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
|