auto configure buat relationship