from pydantic import BaseModel, Field

from app.schemas.common import NaiveDatetime


class ProjectCreate(BaseModel):
    name: str = Field(..., max_length=128)
    industry: str = Field(..., max_length=64)


class ProjectOut(BaseModel):
    id: str
    name: str
    industry: str
    created_at: NaiveDatetime
    updated_at: NaiveDatetime

    model_config = {"from_attributes": True}
