Support optional field and default value for DB schema api.