content: """Add user preferences table
  
  Revision ID: 20240905144257_342902c88262
  Revises: 20240902105155_6b44dc81d95d
  Create Date: 2024-09-05 14:42:57.885405
  
  """
  
  from typing import Sequence, Union
  
  import sqlalchemy as sa
  from alembic import op
  
  # revision identifiers, used by Alembic.
  revision: str = "20240905144257_342902c88262"
  down_revision: Union[str, None] = "20240902105155_6b44dc81d95d"
  branch_labels: Union[str, Sequence[str], None] = None
  depends_on: Union[str, Sequence[str], None] = None
  
  
  def upgrade() -> None:
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table(
          "user_preferences",
          sa.Column("user_id", sa.String(), nullable=False),
          sa.Column("preferences", sa.JSON(), nullable=False),
          sa.ForeignKeyConstraint(
              ["user_id"],
              ["users.uid"],
          ),
          sa.PrimaryKeyConstraint("user_id"),
      )
      # ### end Alembic commands ###
  
  
  def downgrade() -> None:
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table("user_preferences")
      # ### end Alembic commands ###
  