Set primary key on User to be id and appid.