8928cd8805
TRUNCATE was positioned after the staff upsert block, so appointments referencing stale staff IDs were never cleared before re-insert. Moving it before the upsert ensures downstream FK references are purged first. Also adds `id: s.id` to the staff upsert set clause so re-seeded rows get their IDs overwritten to match the deterministic PRNG values — preventing the appointments-insert referencing IDs that don't exist in the staff table. Co-Authored-By: Paperclip <noreply@paperclip.ing>