<filename>jetavator/schema_registry/sqlalchemy_tables/Log.py
from .Base import Base

from datetime import datetime

from sqlalchemy import Column, Table
from sqlalchemy.types import *


class Log(Base):

    __tablename__ = "jetavator_log"

    schema: str = Column("schema", VARCHAR(124), nullable=True)
    procedure: str = Column("procedure", VARCHAR(124), nullable=True)
    message: str = Column("message", VARCHAR(8000), nullable=True)
    log_time: datetime = Column("log_time", TIMESTAMP, nullable=True)

    __table__ = Table(
        __tablename__,
        Base.metadata,
        schema,
        procedure,
        message,
        log_time,
        extend_existing=True
    )

    __mapper_args__ = {
        "primary_key": [
            __table__.c.schema,
            __table__.c.procedure,
            __table__.c.log_time
        ]
    }

<filename>jetavator/schema_registry/sqlalchemy_tables/Log.py
from .Base import Base

from datetime import datetime

from sqlalchemy import Column, Table
from sqlalchemy.types import *


class Log(Base):

    __tablename__ = "jetavator_log"

    schema: str = Column("schema", VARCHAR(124), nullable=True)
    procedure: str = Column("procedure", VARCHAR(124), nullable=True)
    message: str = Column("message", VARCHAR(8000), nullable=True)
    log_time: datetime = Column("log_time", TIMESTAMP, nullable=True)

    __table__ = Table(
        __tablename__,
        Base.metadata,
        schema,
        procedure,
        message,
        log_time,
        extend_existing=True
    )

    __mapper_args__ = {
        "primary_key": [
            __table__.c.schema,
            __table__.c.procedure,
            __table__.c.log_time
        ]
    }
