Added possibility to share primary and foreign key