"""manage_domain_knowledge Revision ID: db8c9806b48d Revises: ee33ceccb82c Create Date: 2024-01-29 16:04:01.847956 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'db8c9806b48d' down_revision = 'ee33ceccb82c' branch_labels = None depends_on = None def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.create_table('domain_knowledge', sa.Column('id', sa.Integer(), nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('deleted_at', sa.DateTime(), nullable=True), sa.Column('raw_data', sa.JSON(), nullable=False), sa.Column('type', sa.VARCHAR(length=256), nullable=False), sa.Column('app_id', sa.Integer(), nullable=False), sa.Column('module', sa.VARCHAR(length=256), nullable=False), sa.Column('meta_data', sa.JSON(), nullable=False), sa.Column('created_by', sa.VARCHAR(length=1024), nullable=True), sa.PrimaryKeyConstraint('id'), sa.Index('ix_app_id_index', 'app_id'), sa.Index('ix_module_index', 'module') ) # ### end Alembic commands ### def downgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.drop_table('domain_knowledge') # ### end Alembic commands ###