I just removed defaultValue: 0 from migration and HasDefaultValue(0) from configuration. After that it seems working fine. It seems that due to some reason MSSQL not saving default value 0 when we paas HasDefaultValue.