hasOne(QrCode::class, 'type_id', 'activity_id'); } }