"""Initialize langlink applicatitions and interactions table Revision ID: 5ae206c737ac Revises: Create Date: 2023-08-16 14:17:53.998509 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "5ae206c737ac" down_revision = None branch_labels = None depends_on = None def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.create_table( "applications", sa.Column("id", sa.String(length=36), nullable=False), sa.Column("name", sa.String(length=255), nullable=False), sa.Column("owner", sa.String(length=255), nullable=False), sa.Column("created_at", sa.TIMESTAMP(), nullable=False), sa.Column("updated_at", sa.TIMESTAMP(), nullable=False), sa.Column("version", sa.String(length=32), nullable=True), sa.Column("custom_fields", sa.JSON(), nullable=True), sa.Column("configuration", sa.JSON(), nullable=False), sa.PrimaryKeyConstraint("id"), ) op.create_table( "interactions", sa.Column("id", sa.String(length=36), nullable=False), sa.Column("created_at", sa.TIMESTAMP(), nullable=False), sa.Column("application_id", sa.String(length=36), nullable=False), sa.Column("data", sa.JSON(), nullable=False), sa.PrimaryKeyConstraint("id"), ) # ### end Alembic commands ### def downgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.drop_table("interactions") op.drop_table("applications") # ### end Alembic commands ###