23 lines
357 B
Python
23 lines
357 B
Python
from uuid import UUID
|
|
|
|
from app.schemas.base import OrmBase
|
|
|
|
|
|
class WorkspaceBase(OrmBase):
|
|
name: str
|
|
mount_path: str | None = None
|
|
|
|
|
|
class WorkspaceCreate(WorkspaceBase):
|
|
pass
|
|
|
|
|
|
class WorkspaceRead(WorkspaceBase):
|
|
id: UUID
|
|
project_id: UUID
|
|
|
|
|
|
class WorkspaceUpdate(OrmBase):
|
|
name: str | None = None
|
|
mount_path: str | None = None
|