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

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

        },
        MoySeuil: {
            type: 'string',
            columnName: 'moy_seuil',
            required: true,

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

        },

        nbrMat: {
            type: 'string',
            columnName: 'nbr_mat',
            allowNull: true,
        },

        codeClasse: {
            type: 'string',
            columnName: 'code_classe',
            required: true,

        },

        moyPasse: {
            type: 'string',
            columnName: 'moy_passe',
            required: true,

        },

        moyDecis: {
            type: 'string',
            columnName: 'moy_decis',
            required: true,

        },

        moyRedouble: {
            type: 'string',
            columnName: 'moy_redouble',
            allowNull: true,
        },
        minAnnEval: {
            type: 'string',
            columnName: 'min_ann_eval',
            required: true,

        },
    },

};