/**
* User.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

module.exports = {
	attributes: {
		username: {
			type: 'string',
			required: true,
			unique: true
		},	

		encryptedPassword: {
			type: 'string',
			required: true,
			minLength: 6,
			columnName: 'encrypted_password'
		},

		lastLoggedIn: {
			type: 'datetime',
			defaultsTo: function() {return new Date(); }
		},

		email: {
			type: 'string',
			email: true,
			required: true,
			unique: true
		},

		// 0 for admin, 1 for normal user
		permission: {
			type: 'integer',
			defaultTo: 1
		}
	},
}

@@ -673,16 +673,17 @@
 %09default
+s
 To: 1%0A%09%09

Update Users model to fix typo