"""empty message

Revision ID: 14503fb5ec1c
Revises: ac2c59642f3d
Create Date: 2022-04-12 10:23:12.309322

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

# revision identifiers, used by Alembic.
revision = '14503fb5ec1c'
down_revision = 'ac2c59642f3d'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('invites',
    sa.Column('id', postgresql.UUID(as_uuid=True), nullable=False),
    sa.Column('denied', sa.Boolean(), nullable=False),
    sa.Column('inviter_id', postgresql.UUID(as_uuid=True), nullable=True),
    sa.Column('invitee_id', postgresql.UUID(as_uuid=True), nullable=True),
    sa.Column('project_id', postgresql.UUID(as_uuid=True), nullable=True),
    sa.ForeignKeyConstraint(['invitee_id'], ['user.id'], ),
    sa.ForeignKeyConstraint(['inviter_id'], ['user.id'], ),
    sa.ForeignKeyConstraint(['project_id'], ['project.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


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