attributes : {
username : { type: "string",required:true,unique:true },
password : { type : "string",required:true},
email : { type : "string",required:true,unique:true},
expireAt : { type:'date','defaultsTo':Date.now(),'expires':'4m' },
}
the data store good, but ignore the field expireAt
because expires
is not one attribute native of waterline and then the document not expire never, ¿ is possible get one behave like the mongoose schema ?
http://docs.mongodb.org/manual/tutorial/expire-data/