Add foreign key for inline relations [applied]