diff --git a/pygeoweaver/database_management/pgw_checkpoint.py b/pygeoweaver/database_management/pgw_checkpoint.py new file mode 100644 index 0000000..b904562 --- /dev/null +++ b/pygeoweaver/database_management/pgw_checkpoint.py @@ -0,0 +1,12 @@ +from pydantic import BaseModel +from typing import Optional +import uuid +from datetime import datetime + +class Checkpoint(BaseModel): + id: Optional[uuid.UUID] + executionId: str + edges: str + nodes: str + workflow: Optional[str] + createdAt: Optional[datetime] diff --git a/pygeoweaver/database_management/pgw_environment.py b/pygeoweaver/database_management/pgw_environment.py new file mode 100644 index 0000000..ee55fd0 --- /dev/null +++ b/pygeoweaver/database_management/pgw_environment.py @@ -0,0 +1,12 @@ +from pydantic import BaseModel, Field +from typing import Optional + +class Environment(BaseModel): + id: str + name: str + type: str + bin: str + pyenv: str + basedir: str + hostid: Optional[str] = None # Use Optional to allow for null values + settings: Optional[str] = None # Use Optional to allow for null values diff --git a/pygeoweaver/database_management/pgw_execution_status.py b/pygeoweaver/database_management/pgw_execution_status.py new file mode 100644 index 0000000..643c7cc --- /dev/null +++ b/pygeoweaver/database_management/pgw_execution_status.py @@ -0,0 +1,8 @@ +class ExecutionStatus: + DONE = "Done" + FAILED = "Failed" + RUNNING = "Running" + UNKNOWN = "Unknown" + STOPPED = "Stopped" + READY = "Ready" + SKIPPED = "Skipped" diff --git a/pygeoweaver/database_management/pgw_host.py b/pygeoweaver/database_management/pgw_host.py new file mode 100644 index 0000000..c08a43e --- /dev/null +++ b/pygeoweaver/database_management/pgw_host.py @@ -0,0 +1,15 @@ +from pydantic import BaseModel, Field +from typing import Optional, Set + +class Host(BaseModel): + id: str + name: str + ip: str + port: str + username: str + owner: str + type: str + url: str + confidential: bool + envs: Optional[Set[str]] = None + diff --git a/pygeoweaver/database_management/pgw_log_activity.py b/pygeoweaver/database_management/pgw_log_activity.py new file mode 100644 index 0000000..3ca089e --- /dev/null +++ b/pygeoweaver/database_management/pgw_log_activity.py @@ -0,0 +1,10 @@ +from pydantic import BaseModel + +class LogActivity(BaseModel): + id: str + operator: str + category: str + objectid: str + objname: str + operation: str + \ No newline at end of file diff --git a/pygeoweaver/database_management/pgw_process.py b/pygeoweaver/database_management/pgw_process.py new file mode 100644 index 0000000..f45e993 --- /dev/null +++ b/pygeoweaver/database_management/pgw_process.py @@ -0,0 +1,12 @@ +from pydantic import BaseModel +from typing import Optional + +class GWProcess(BaseModel): + id: str + name: Optional[str] + description: Optional[str] + code: Optional[str] + lang: Optional[str] + owner: Optional[str] + confidential: Optional[bool] + diff --git a/pygeoweaver/database_management/pgw_user.py b/pygeoweaver/database_management/pgw_user.py new file mode 100644 index 0000000..121c51f --- /dev/null +++ b/pygeoweaver/database_management/pgw_user.py @@ -0,0 +1,15 @@ +from pydantic import BaseModel +from typing import Optional +from datetime import date +from typing import Optional + +class GWUser(BaseModel): + id: str + username: str + password: str + role: Optional[str] + email: Optional[str] + isactive: Optional[bool] + registration_date: Optional[date] + last_login_date: Optional[date] + loggedIn: Optional[bool] diff --git a/pygeoweaver/database_management/pgw_workflow.py b/pygeoweaver/database_management/pgw_workflow.py new file mode 100644 index 0000000..c5dbfa0 --- /dev/null +++ b/pygeoweaver/database_management/pgw_workflow.py @@ -0,0 +1,11 @@ +from pydantic import BaseModel +from typing import Optional + +class Workflow(BaseModel): + id: str + name: Optional[str] + description: Optional[str] + owner: Optional[str] + confidential: Optional[str] + edges: Optional[str] + nodes: Optional[str]