packages/frm/src/record/create.js
function createRecord(fvs, options) {
  options || (options = {});
  const model = this;

  const row = {};
  if (fvs) {
    for (const kk in fvs) {
      row[kk] = fvs[kk];
    }
  }
  const r = constructRecord(model, row, Object.keys(model.def.fields), true);
  getDefaultOnCreate(r, null, options.createdBy);
  return r;
}
function createRecord(fvs, options) {
  options || (options = {});
  const model = this;

  const row = {};
  if (fvs) {
    for (const kk in fvs) {
      row[kk] = fvs[kk];
    }
  }
  const r = constructRecord(model, row, Object.keys(model.def.fields), true);
  getDefaultOnCreate(r, null, options.createdBy);
  return r;
}
function createRecord ( fvs , options ) { options || ( options = { } ) ; const model = this ; const row = { } ; if ( fvs ) { for ( const kk in fvs ) { row [ kk ] = fvs [ kk ] ; } } const r = constructRecord ( model , row , Object . keys ( model . def . fields ) , true ) ; getDefaultOnCreate ( r , null , options . createdBy ) ; return r ; }
this = model
this = model