1. You are not required to have v2 extend from v1. They can be two different definitions.
2. Technically you can remove base properties using custom code next to the model json, for example, in common/models/ModelV2.js,
module.exports = function(ModelV2) {
var excludedProperties = [
'realm',
'emailVerified',
'verificationToken',
'credentials',
'challenges',
'lastUpdated'
];
// Remove the properties from base User model that doesn't have mapped columns
excludedProperties.forEach(function (p) {
delete ModelV2.definition.rawProperties[p];
delete ModelV2.definition.properties[p];
delete ModelV2.prototype[p];
});
};
Thanks,
---
Raymond Feng
Co-Founder and Architect @ StrongLoop, Inc.