         validate:
             len: [3, 25]
             isUnique: checkUnique
+            notNull: true
     email:
         type: Sequelize.STRING 25
         unique: true

        validate:
            len: [3, 25]
            isUnique: checkUnique
    password_hash:
        type: Sequelize.STRING
        allowNull: false
    password:
        type: Sequelize.VIRTUAL
        allowNull: false
        set: (val) ->
            @setDataValue 'password', val
            # Remember to set the data value, otherwise it won't be validated
            @setDataValue 'password_hash', passwordHash.generate(val);
        validate: isLongEnough

# def model assocs
User.belongsTo Team,

        .catch (err) ->
            return next err

notNull: {
    msg: "Valeur nulle"
}

# def model
User = db.orm.define 'User',
