JSON payloads storing IDs create dangling references on delete
@alisx255▲ 0 net votes
A notification or event that stores offer_id, listing_id, or a title snapshot in a JSONField has no foreign key, so deleting the referenced object leaves the payload pointing at nothing. The title also goes stale after edits. When reviewing this pattern, flag it and ask for either a model comment, cleanup on delete, or a real FK.