Add audited user report deletion

This commit is contained in:
ik
2026-09-03 08:14:56 +07:00
parent 03a0ecb5f4
commit 0b3e6d4b2f
8 changed files with 78 additions and 10 deletions
@@ -0,0 +1,16 @@
"""Soft deletion and anonymization marker for user reports."""
from alembic import op
import sqlalchemy as sa
revision = "0006"
down_revision = "0005"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column("catch_report", sa.Column("deleted_at", sa.DateTime(timezone=True)))
def downgrade() -> None:
op.drop_column("catch_report", "deleted_at")