1
以下是我的帆模型,每當我試圖挽救()我收到以下錯誤sailsjs類型對象的模型屬性,可能嗎?
[Error: Unknown rule: address]
使用與貓鼬同類機型,沒有任何問題,可能有人看到我的模型中的任何錯誤嗎?
謝謝!
/**
* Users.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
module.exports = {
connection: 'MongoServer',
attributes: {
AcctSessionId: {type: 'string', required: false, default: ''},
UserName: {type: 'string', required: true, unique: true},
UserPassword: {type: 'string', required: true},
AcctStartDelay: {type: 'string', required: false, default: ''},
AcctStopDelay:{type: 'string', required: false, default: ''},
AcctPlan: {type: 'string', required: false, default: ''},
AcctResellerID: {type: 'string', required: false, default: ''},
AcctPrice: {type: 'integer', required: false, default: ''},
AcctCurrency: {type: 'string', required: false, default: 'LBP'},
AcctEnabled: {type: 'boolean', required: false, default: true},
AcctExpiry: {type: 'boolean', required: true},
meta: {
address: {type: 'string', required: false, default: ''},
city: {type: 'string', required: false, default: ''},
mobile: {type: 'integer', required: true, default: ''},
email: {type: 'string', required: false, default: ''},
name: {type: 'string', required: true, default: ''}
}
}
};