Fixed SortDirectionEnum when direction is null
Fixed test issues.
Small fixes

Fixed CascadeRule enum.
Fixed return type of appendForeignKeyEntry
Updated the logic of creating fk metadata