can use primary keys in models