22 lines
451 B
Python
22 lines
451 B
Python
|
|
from pydantic import BaseModel, ConfigDict
|
|
from uuid import UUID
|
|
from datetime import datetime
|
|
from typing import Optional, List
|
|
|
|
class ProjectBase(BaseModel):
|
|
name: str
|
|
resolution: str = "4K"
|
|
aspect_ratio: str = "16:9"
|
|
veo_version: str = "3.1"
|
|
|
|
class ProjectCreate(ProjectBase):
|
|
pass
|
|
|
|
class Project(ProjectBase):
|
|
id: UUID
|
|
created_at: datetime
|
|
updated_at: datetime
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|