Add SQL key on restrictionid to allow a constraint on it.