text: """empty message
  
  Revision ID: 7ca65b6611b6
  Revises: 
  Create Date: 2018-12-18 14:28:03.918045
  
  """
  from alembic import op
  import sqlalchemy as sa
  from sqlalchemy.dialects import postgresql
  
  # revision identifiers, used by Alembic.
  revision = '7ca65b6611b6'
  down_revision = None
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('design',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('project_id', sa.Integer(), nullable=True),
      sa.Column('name', sa.String(), nullable=False),
      sa.Column('model_id', sa.Integer(), nullable=False),
      sa.Column('design', postgresql.JSONB(astext_type=sa.Text()), nullable=False),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_design_project_id'), 'design', ['project_id'], unique=False)
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_index(op.f('ix_design_project_id'), table_name='design')
      op.drop_table('design')
      # ### end Alembic commands ###
  