from sqlalchemy.sql.schema import MetaData
from sqlmodel import Field, SQLModel
from datetime import datetime
from uuid import UUID, uuid4


class DbtLog(SQLModel, table=True):
    """
    Table: __Dbt_Log
    """
    __tablename__ = "__Dbt_Log"

    Id: UUID = Field(default_factory=uuid4, primary_key=True)
    TaskId: str = Field(max_length=128)
    Data: str = Field(index=False)
    Timestamp: datetime = Field(index=False, default_factory=datetime.utcnow)
sqlmodel.Field
[((262, 308), 'sqlmodel.Field', 'Field', ([], {'default_factory': 'uuid4', 'primary_key': '(True)'}), '(default_factory=uuid4, primary_key=True)\n', (267, 308), False, 'from sqlmodel import Field, SQLModel\n'), ((327, 348), 'sqlmodel.Field', 'Field', ([], {'max_length': '(128)'}), '(max_length=128)\n', (332, 348), False, 'from sqlmodel import Field, SQLModel\n'), ((365, 383), 'sqlmodel.Field', 'Field', ([], {'index': '(False)'}), '(index=False)\n', (370, 383), False, 'from sqlmodel import Field, SQLModel\n'), ((410, 461), 'sqlmodel.Field', 'Field', ([], {'index': '(False)', 'default_factory': 'datetime.utcnow'}), '(index=False, default_factory=datetime.utcnow)\n', (415, 461), False, 'from sqlmodel import Field, SQLModel\n')]