Open jennifer-richards opened 5 days ago
The Email model currently uses its address field as a primary key. We should migrate this to use a numeric surrogate primary key instead. A database-level uniqueness constraint on the address field must continue to be enforced.
Email
address
fyi, the immediate motivation for this is to ease use of django-rest-framework, which does not handle @ characters in PKs out of the box
@
Description
The
Email
model currently uses itsaddress
field as a primary key. We should migrate this to use a numeric surrogate primary key instead. A database-level uniqueness constraint on theaddress
field must continue to be enforced.Code of Conduct