Remove the generated flag for access token id

The generated flag is used to indicate if the id is automatically generated
by the backend store. If it's set, the data type will be updated when the
model is attached to a datasource.

The AccessToken model defines a string id, which is set in the beforeCreate
hook. So it's client provided id.
This commit is contained in:
Raymond Feng 2014-01-30 09:02:12 -08:00
parent 0779d07fe2
commit 57796a41cd
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ var Model = require('../loopback').Model
*/
var properties = {
id: {type: String, generated: true, id: 1},
id: {type: String, id: true},
ttl: {type: Number, ttl: true, default: DEFAULT_TTL}, // time to live in seconds
created: {type: Date, default: function() {
return new Date();