import uuid
from datetime import datetime

from pydantic import BaseModel, ConfigDict

from api.models.domain_goal import DomainGoalStatus


class DomainGoalCreate(BaseModel):
    domain_id: uuid.UUID
    title: str
    description: str
    status: str = DomainGoalStatus.active.value


class DomainGoalUpdate(BaseModel):
    title: str | None = None
    description: str | None = None
    status: str | None = None


class DomainGoalRead(BaseModel):
    model_config = ConfigDict(from_attributes=True)
    id: uuid.UUID
    domain_id: uuid.UUID
    domain_slug: str
    title: str
    description: str
    status: str
    created_at: datetime
    updated_at: datetime
