"""add users.points

Revision ID: 014
Revises: 013
Create Date: 2026-05-22

"""

from typing import Sequence, Union

import sqlalchemy as sa
from alembic import op

revision: str = "014"
down_revision: Union[str, None] = "013"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column(
        "users",
        sa.Column("points", sa.Float(), nullable=False, server_default="0"),
    )


def downgrade() -> None:
    op.drop_column("users", "points")
