text: """empty message
  
  Revision ID: 54799a04d08a
  Revises: 
  Create Date: 2020-02-19 16:29:54.046406
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '54799a04d08a'
  down_revision = None
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('department',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('name', sa.String(length=120), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_department_id'), 'department', ['id'], unique=True)
      op.create_index(op.f('ix_department_name'), 'department', ['name'], unique=True)
      op.create_table('server_status',
      sa.Column('date', sa.Date(), nullable=False),
      sa.Column('url', sa.String(), nullable=True),
      sa.Column('status', sa.Boolean(), nullable=True),
      sa.PrimaryKeyConstraint('date')
      )
      op.create_index(op.f('ix_server_status_date'), 'server_status', ['date'], unique=False)
      op.create_index(op.f('ix_server_status_url'), 'server_status', ['url'], unique=False)
      op.create_table('user',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('username', sa.String(length=64), nullable=True),
      sa.Column('email', sa.String(length=120), nullable=True),
      sa.Column('password_hash', sa.String(length=128), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_user_email'), 'user', ['email'], unique=True)
      op.create_index(op.f('ix_user_id'), 'user', ['id'], unique=True)
      op.create_index(op.f('ix_user_username'), 'user', ['username'], unique=True)
      op.create_table('employees',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('first_name', sa.String(length=30), nullable=True),
      sa.Column('last_name', sa.String(length=30), nullable=True),
      sa.Column('service_number', sa.String(length=30), nullable=True),
      sa.Column('department_id', sa.Integer(), nullable=True),
      sa.Column('encodings', sa.PickleType(), nullable=True),
      sa.Column('photo', sa.String(length=128), nullable=True),
      sa.ForeignKeyConstraint(['department_id'], ['department.id'], ),
      sa.PrimaryKeyConstraint('id'),
      sa.UniqueConstraint('encodings'),
      sa.UniqueConstraint('id')
      )
      op.create_index(op.f('ix_employees_first_name'), 'employees', ['first_name'], unique=False)
      op.create_index(op.f('ix_employees_last_name'), 'employees', ['last_name'], unique=False)
      op.create_index(op.f('ix_employees_service_number'), 'employees', ['service_number'], unique=True)
      op.create_table('work_shift',
      sa.Column('id', sa.Integer(), autoincrement=True, nullable=False),
      sa.Column('employee_id', sa.Integer(), nullable=True),
      sa.Column('arrival_time', sa.DateTime(), nullable=True),
      sa.Column('depature_time', sa.DateTime(), nullable=True),
      sa.ForeignKeyConstraint(['employee_id'], ['employees.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_work_shift_arrival_time'), 'work_shift', ['arrival_time'], unique=False)
      op.create_index(op.f('ix_work_shift_depature_time'), 'work_shift', ['depature_time'], unique=False)
      op.create_index(op.f('ix_work_shift_id'), 'work_shift', ['id'], unique=True)
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_index(op.f('ix_work_shift_id'), table_name='work_shift')
      op.drop_index(op.f('ix_work_shift_depature_time'), table_name='work_shift')
      op.drop_index(op.f('ix_work_shift_arrival_time'), table_name='work_shift')
      op.drop_table('work_shift')
      op.drop_index(op.f('ix_employees_service_number'), table_name='employees')
      op.drop_index(op.f('ix_employees_last_name'), table_name='employees')
      op.drop_index(op.f('ix_employees_first_name'), table_name='employees')
      op.drop_table('employees')
      op.drop_index(op.f('ix_user_username'), table_name='user')
      op.drop_index(op.f('ix_user_id'), table_name='user')
      op.drop_index(op.f('ix_user_email'), table_name='user')
      op.drop_table('user')
      op.drop_index(op.f('ix_server_status_url'), table_name='server_status')
      op.drop_index(op.f('ix_server_status_date'), table_name='server_status')
      op.drop_table('server_status')
      op.drop_index(op.f('ix_department_name'), table_name='department')
      op.drop_index(op.f('ix_department_id'), table_name='department')
      op.drop_table('department')
      # ### end Alembic commands ###
  