add app_id to migration generator
add app relationship to data model