text: """tasks
  
  Revision ID: 3a860c09219a
  Revises: 0c076c4282aa
  Create Date: 2020-08-02 10:55:47.384613
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '3a860c09219a'
  down_revision = '0c076c4282aa'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('task',
      sa.Column('id', sa.String(length=36), nullable=False),
      sa.Column('user_id', sa.Integer(), nullable=True),
      sa.Column('name', sa.String(length=128), nullable=True),
      sa.Column('description', sa.String(length=128), nullable=True),
      sa.Column('complete', sa.Boolean(), nullable=True),
      sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_task_name'), 'task', ['name'], unique=False)
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_index(op.f('ix_task_name'), table_name='task')
      op.drop_table('task')
      # ### end Alembic commands ###
  