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


module.exports = {
    tableName: 'attribution_matiere',

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

        codeMatiere: {
            type: 'string',
            columnName: 'code_matiere',
            required: true,
            //allowNull: true

        },

        codeEcole: {
            type: 'string',
            columnName: 'code_ecole',
            required: true,
            //allowNull: true

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

        },
        libelleCourt: {
            type: 'string',
            columnName: 'libelle_court',
            required: true,
            //allowNull: true

        },

        libelleLong: {
            type: 'string',
            columnName: 'libelle_long',
            allowNull: true

        },

        anneeScolaire: {
            type: 'string',
            columnName: 'annee_scolaire',
            required: true,
            //allowNull: true

        },

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


        },

    },

};

