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


module.exports = {
    tableName: 'ordre_evaluation',

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

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

        }, 

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

        },
        dateEvaluation: {
            type: 'ref',
            //type: 'string',
            columnName: 'date_evaluation',
           // columnType:'datetime',
            //required: true,

        },
        typeNote: {
            type: 'string',
            columnName: 'type_note',
            required: true,
        },

        libDevoir: {
            type: 'string',
            columnName: 'lib_devoir',
            allowNull: true
        },
        trimSem: {
            type: 'string',
            columnName: 'trim_sem',
            required: true,
        },

        ordre: {
            type: 'string',
            columnName: 'ordre',
            allowNull: true,
            //columnType: 'bigint'
        },
        codMoy: {
            type: 'string',
            columnName: 'COD_MOY',
            allowNull: true,
            //columnType: 'bigint'
        },

        anneeScolaire: {
            type: 'string',
            columnName: 'annee_scolaire',
            required: true,
        },

        codeNatureDevoir: {
            type: 'string',
            columnName: 'code_nature_devoir',
            required: true,
        },
        
        

      
    },

};

