The primary key of a table should be a minimal set of columns that uniquely identify a table row. So that should be person_id
, as it was specifically created for that purpose.
Add another (non-unique) index on tenant_id
or (tenant_id, person_id)
if you need to speed up searches based on tenant_id
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…