text: """user preferences table
  
  Revision ID: 909f3926c4b0
  Revises: 3e6d86015a90
  Create Date: 2019-10-23 23:05:33.719854
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '909f3926c4b0'
  down_revision = '3e6d86015a90'
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('user_preferences',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('movie_id', sa.Integer(), nullable=True),
      sa.Column('user_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('user_preferences')
      # ### end Alembic commands ###
  