-- Seed account deletion request states for admin panel tracking
-- Users referenced here are seeded in 001_initial_seed_data.sql (IDs: 10, 11, 12).

-- Pending deletion request (within grace period)
UPDATE users
SET
    deletion_requested_at = now() - interval '2 days',
    deletion_scheduled_at = now() + interval '13 days',
    deletion_cancelled_at = NULL,
    updated_at = now()
WHERE id = 10;

-- Due deletion request (grace period elapsed, awaiting purge worker)
UPDATE users
SET
    deletion_requested_at = now() - interval '20 days',
    deletion_scheduled_at = now() - interval '5 days',
    deletion_cancelled_at = NULL,
    updated_at = now()
WHERE id = 11;

-- Cancelled deletion request (request made then cancelled)
UPDATE users
SET
    deletion_requested_at = now() - interval '10 days',
    deletion_scheduled_at = now() + interval '5 days',
    deletion_cancelled_at = now() - interval '3 days',
    updated_at = now()
WHERE id = 12;
