         validate:
             len: [3, 25]
             isUnique: checkUnique
-            notNull: true
+            isNotNull: checkNotNull
     password:
         type: Sequelize.STRING
         allowNull: false
         validate:
-            notNull: true
+            isNotNull: checkNotNull
             len: [6,100]
 
 

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

            return next()
        .catch (err) ->
            return next err
checkNotNull = (value, next) ->
    if value.length == 0
        throw new Error('Atention valeur nulle')
    else
        next()

notNull:
    msg: "Valeur nulle"


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