Add changes to CaseRecord schema and model file up to v4