text: """add few more relations to schema
  
  Revision ID: 4500afbd0eb0
  Revises: 5b72f232acfb
  Create Date: 2017-10-14 00:36:43.002765
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '4500afbd0eb0'
  down_revision = '5b72f232acfb'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('list_user',
      sa.Column('id', sa.Integer(), nullable=False, autoincrement=True),
      sa.Column('user_id', sa.Integer(), nullable=True),
      sa.Column('first_name', sa.String(length=128), nullable=True),
      sa.Column('last_name', sa.String(length=128), nullable=True),
      sa.Column('email', sa.String(length=128), nullable=True),
      sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
      sa.PrimaryKeyConstraint('id'),
      sa.UniqueConstraint('email')
      )
      op.create_table('todo_list',
      sa.Column('id', sa.Integer(), nullable=False, autoincrement=True),
      sa.Column('user_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['user_id'], ['list_user.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('item',
      sa.Column('id', sa.Integer(), nullable=False, autoincrement=True),
      sa.Column('description', sa.String(length=256), nullable=False),
      sa.Column('done', sa.Boolean(), nullable=False),
      sa.Column('todo_list_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['todo_list_id'], ['todo_list.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('item')
      op.drop_table('todo_list')
      op.drop_table('list_user')
      # ### end Alembic commands ###
  