/**
 * 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_indice_calcul',

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

        codeEcole: {
            type: 'string',
            columnName: 'code_ecole',
            required: true,
        },
        moyenneSur: {
            type: 'string',
            columnName: 'moyenne_sur',
            //required: true,
        },
        indiceCalcMoy: {
            type: 'string',
            columnName: 'indice_calc_moy',
            //required: true,
        },
        moyenneMin: {
            type: 'string',
            columnName: 'moyenne_min',
            //required: true,
        },
        moyenneMiniSur: {
            type: 'string',
            columnName: 'moyenne_mini_sur',
            //required: true,
        }
    },

};

