You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devbug/app/models/User.model.js

21 lines
536 B

/**
* @module flitter-auth/deploy/models/User
*/
/**
* This model stores the user data from Flitter-auth. The username
* and password fields are fairly self-evident. Password hashes are
* stored instead of cleartext. The data field is for JSON data that
* holds various non-DB essential pieces of information about users.
*
*/
module.exports = exports = {
schema: {
username: String,
password: String,
data: String,
uuid: String,
role: String,
permissions: [String],
},
}