/**
 * Role.js
 *
 * @description :: A model definition represents a database table/collection.
 * @docs        :: https://sailsjs.com/docs/concepts/models-and-orm/models
 */


module.exports = {
    tableName: 'prim_evaluation',

    attributes: {
        /* id: {
        type: 'number',
        //columnName: 'id',
        unique: true,
        autoIncrement: true,
        primaryKey: true,
        //required: true,
        columnType: 'integer',
    },*/
        idEvaluation: {
            type: 'string',
            columnName: 'id_evaluation',
            //required: true,

        },
        codeEcole: {
            type: 'string',
            columnName: 'code_ecole',
            required: true,

        },

        libelle: {
            type: 'string',
            columnName: 'libelle',
            required: true,
        },
        mois: {
            type: 'string',
            columnName: 'mois',
            allowNull: true,
        },
        ordre: {
            type: 'string',
            columnName: 'ordre',
            allowNull: true,
        },
        valider: {
            type: 'boolean',
            columnName: 'valider',
            allowNull: true,
        },
        
    },

};

