scaffold relations between app/token