"""empty message Revision ID: 1c5ef9475969 Revises: 6419f62abd69 Create Date: 2023-04-11 12:38:22.601185 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '1c5ef9475969' down_revision = '6419f62abd69' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('likes', sa.Column('id', sa.Integer(), nullable=False), sa.Column('user_id', sa.Integer(), nullable=True), sa.Column('post_id', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['post_id'], ['posts.id'], ), sa.ForeignKeyConstraint(['user_id'], ['users.id'], ), sa.PrimaryKeyConstraint('id') ) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_table('likes') # ### end Alembic commands ###