"""add_openai_api_key Revision ID: ca15310b73c0 Revises: c6e462a8ce0d Create Date: 2023-12-08 10:34:31.894628 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ca15310b73c0' down_revision = 'c6e462a8ce0d' branch_labels = None depends_on = None def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.create_table('openai_api_keys', 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('app_id', sa.Integer(), nullable=False), sa.Column('openai_api_key', sa.String(length=128), nullable=False), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('app_id') ) # ### end Alembic commands ### def downgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.drop_table('openai_api_keys') # ### end Alembic commands ###