Files
endurain/backend/app/migrations/models.py
João Vitória Silva a4179e848b Alembic INFO logging to main_logger
[backend] added alembic INFO logging to main_logger
[backend] fixed error on database calls
2024-11-26 15:54:31 +00:00

23 lines
552 B
Python

from sqlalchemy import (
Column,
Integer,
String,
Boolean,
)
from core.database import Base
class Migration(Base):
__tablename__ = "migrations"
id = Column(Integer, primary_key=True)
name = Column(String(length=250), nullable=False, comment="Migration name")
description = Column(
String(length=2500), nullable=False, comment="Migration description"
)
executed = Column(
Boolean,
nullable=False,
default=False,
comment="Whether the migration was executed or not",
)