"""empty message

Revision ID: 64b682d53e23
Revises: 567b75e74955
Create Date: 2017-06-06 16:53:47.604019

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "64b682d53e23"
down_revision = "567b75e74955"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table(
        "project_chat",
        sa.Column("id", sa.BigInteger(), nullable=False),
        sa.Column("project_id", sa.Integer(), nullable=False),
        sa.Column("user_id", sa.Integer(), nullable=False),
        sa.Column("time_stamp", sa.DateTime(), nullable=False),
        sa.Column("message", sa.String(length=250), nullable=False),
        sa.ForeignKeyConstraint(["project_id"], ["projects.id"]),
        sa.ForeignKeyConstraint(["user_id"], ["users.id"]),
        sa.PrimaryKeyConstraint("id"),
    )
    op.create_index(
        op.f("ix_project_chat_project_id"), "project_chat", ["project_id"], unique=False
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f("ix_project_chat_project_id"), table_name="project_chat")
    op.drop_table("project_chat")
    # ### end Alembic commands ###
