Add checks to reject primary keys that are not ints