Skip to content
RED SAG Skills
hardStudy question · answer published in PostgreSQL interview questions, so no pointspostgresqldata-modelling

Unique email with soft deletes

users has UNIQUE(email) and soft deletes via a deleted_at column. A user deletes their account and later signs up again with the same email, which fails with a unique violation. What is the best fix in PostgreSQL?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions