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

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

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

        },

        libelleMatiere: {
            type: 'string',
            columnName: 'libelle_matiere',
            required: true,

        },
       
        libelleCourt: {
            type: 'string',
            columnName: 'libel_court',
            allowNull: true,
            //columnType: 'bigint'
        }
    },

};

