connect/api/api/schemas/process/process_schema.py
2025-03-28 17:32:57 +05:00

21 lines
457 B
Python

from pydantic import BaseModel, Field
from typing import Dict, Any
from datetime import datetime
from enum import Enum
class Status(Enum):
ACTIVE = "Active"
STOPPING = "Stopping"
STOPPED = "Stopped"
DELETED = "Deleted"
class ProcessSchema(BaseModel):
id: int
title: str = Field(..., max_length=100)
description: str
owner_id: int
creator_id: int
created_at: datetime
settings: Dict[str, Any]
status: Status