"""created table

Revision ID: 47388efc38c6
Revises: d3c290701188
Create Date: 2024-10-08 16:48:07.463581

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '47388efc38c6'
down_revision = 'd3c290701188'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('user_links',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('user_id', sa.Integer(), nullable=True),
    sa.Column('user_group', sa.String(length=255), nullable=True),
    sa.Column('insta_username', sa.String(length=555), nullable=True),
    sa.Column('insta_post_link', sa.String(length=555), nullable=True),
    sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('user_links')
    # ### end Alembic commands ###
