feat: node if, node start, node link
This commit is contained in:
0
orm/schemas/process/__init__.py
Normal file
0
orm/schemas/process/__init__.py
Normal file
18
orm/schemas/process/node_link.py
Normal file
18
orm/schemas/process/node_link.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from pydantic import Field
|
||||
from typing import Dict, Any
|
||||
from datetime import datetime
|
||||
from enum import Enum
|
||||
|
||||
from orm.schemas.base import Base
|
||||
from orm.tables.process import NodeLinkStatus
|
||||
|
||||
|
||||
class NodeLink(Base):
|
||||
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: NodeLinkStatus
|
19
orm/schemas/process/process_schema.py
Normal file
19
orm/schemas/process/process_schema.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from pydantic import Field
|
||||
from typing import Dict, Any
|
||||
from datetime import datetime
|
||||
from enum import Enum
|
||||
|
||||
from orm.schemas.base import Base
|
||||
from orm.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
|
13
orm/schemas/process/process_version_archive.py
Normal file
13
orm/schemas/process/process_version_archive.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from typing import Dict, Any
|
||||
from datetime import datetime
|
||||
|
||||
from orm.schemas.base import Base
|
||||
|
||||
|
||||
class ProcessStatusSchema(Base):
|
||||
id: int
|
||||
version: int
|
||||
snapshot: Dict[str, Any]
|
||||
owner_id: int
|
||||
created_at: datetime
|
||||
is_last: int
|
16
orm/schemas/process/ps_node.py
Normal file
16
orm/schemas/process/ps_node.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from datetime import datetime
|
||||
from typing import Dict, Any
|
||||
from enum import Enum
|
||||
|
||||
from orm.schemas.base import Base
|
||||
from orm.tables.process import NodeStatus,NodeType
|
||||
|
||||
|
||||
class Ps_Node(Base):
|
||||
id: int
|
||||
ps_id: int
|
||||
node_type: NodeType
|
||||
settings: dict
|
||||
creator_id: Dict[str, Any]
|
||||
created_at: datetime
|
||||
status: NodeStatus
|
Reference in New Issue
Block a user