Support foreign key

Was added support foreign key.