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

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

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

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

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

        nordre: {
            type: 'string',
            columnName: 'nordre',
            allowNull: true,

        },

        note_minimal: {
            type: 'string',
            columnName: 'note_minimal',
            allowNull: true,
            //columnType: 'bigint'
        },
        note_maximal: {
            type: 'string',
            columnName: 'note_maximal',
            allowNull: true,
            //columnType: 'bigint'
        },
        coef: {
            type: 'string',
            columnName: 'coef',
            allowNull: true,
            //columnType: 'bigint'
        }
    },

};

