foreign key management / scaffold up to API 0.1.8