extending auto_append primarykey to models