"""empty message

Revision ID: debd6b45da0a
Revises: 9fb0c5d3a987
Create Date: 2021-09-29 11:20:34.043184

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = 'debd6b45da0a'
down_revision = '9fb0c5d3a987'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('group_matching_declarations',
    sa.Column('id', postgresql.UUID(as_uuid=True), nullable=False),
    sa.Column('declared_project_id', postgresql.UUID(as_uuid=True), nullable=True),
    sa.ForeignKeyConstraint(['declared_project_id'], ['project.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    op.create_table('declare',
    sa.Column('user_id', postgresql.UUID(as_uuid=True), nullable=True),
    sa.Column('group_matching_id', postgresql.UUID(as_uuid=True), nullable=True),
    sa.ForeignKeyConstraint(['group_matching_id'], ['group_matching_declarations.id'], ),
    sa.ForeignKeyConstraint(['user_id'], ['user.id'], )
    )
    # ### end Alembic commands ###


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