import uuid from datetime import datetime from pydantic import BaseModel, ConfigDict class WorkstreamDependencyCreate(BaseModel): to_workstream_id: uuid.UUID description: str | None = None class WorkstreamDependencyRead(BaseModel): model_config = ConfigDict(from_attributes=True) id: uuid.UUID from_workstream_id: uuid.UUID to_workstream_id: uuid.UUID description: str | None = None created_at: datetime updated_at: datetime class WorkstreamDepStub(BaseModel): """Minimal projection of the other end of a dependency edge.""" dep_id: uuid.UUID workstream_id: uuid.UUID workstream_slug: str workstream_title: str description: str | None = None