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

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

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

        },

        mois: {
            type: 'string',
            columnName: 'mois',
            allowNull: true,
        },
        idSall: {
            type: 'string',
            columnName: 'id_sall',
            allowNull: true,
        },

        CodPrimMatiere: {
            type: 'string',
            columnName: 'code_prim_matiere',
            required: true,

        },
       
        /*annee: {
            type: 'string',
            columnName: 'annee',
            allowNull: true,
        },*/
        anneeScolaire: {
            type: 'string',
            columnName: 'annee_scolaire',
            required: true,
        },
        barem: {
            type: 'string',
            columnName: 'barem',
            allowNull: true,
        },
        idEvaluation: {
            type: 'string',
            columnName: 'id_evaluation',
            allowNull: true,
        },
        date: {
            type: 'string',
            columnName: 'date',
            allowNull: true,
        },
        coeff: {
            type: 'string',
            columnName: 'coeff',
            allowNull: true,
        }
    },

};

