Fixed bug in foreign key constraints definition generator