text: """user tokens
  
  Revision ID: 5b67a7015ca5
  Revises: 3cb04c226e58
  Create Date: 2021-11-01 23:37:38.693273
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '5b67a7015ca5'
  down_revision = '3cb04c226e58'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.add_column('user', sa.Column('token', sa.String(length=32), nullable=True))
      op.add_column('user', sa.Column('token_expiration', sa.DateTime(), nullable=True))
      op.create_index(op.f('ix_user_token'), 'user', ['token'], unique=True)
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_index(op.f('ix_user_token'), table_name='user')
      op.drop_column('user', 'token_expiration')
      op.drop_column('user', 'token')
      # ### end Alembic commands ###
  