18 lines
435 B
Python
18 lines
435 B
Python
"""Generated asset model: structured JSON output from generators."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from app.models.route import new_id, utcnow_iso
|
|
|
|
|
|
class Asset(BaseModel):
|
|
id: str = Field(default_factory=new_id)
|
|
route_id: str
|
|
generator: str
|
|
data: dict[str, Any] = Field(default_factory=dict)
|
|
created_at: str = Field(default_factory=utcnow_iso)
|