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

21 lines
462 B
Python

from pydantic import BaseModel, Field, conint
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 MyModel(BaseModel):
id: int
link_name: str = Field(..., max_length=20)
node_id: int
next_node_id: int
settings: Dict[str, Any]
creator_id: int
created_at: datetime
status: Status