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


module.exports = {
    tableName: 'programme',

    attributes: {
        codeProgramme: {
            type: 'string',
            columnName: 'codeProgramme',
            required: true,     
        },
        codeMatiere: {
            type: 'string',
            columnName: 'codeMatiere',
            required: true,
        },
        codeClasse: {
            type: 'string',
            columnName: 'codeClasse',
            required: true,
        },
        codeEnseignant: {
            type: 'string',
            columnName: 'codeEnseignant',
            //allowNull: true,
            required: true,
        },      
        codeEcole: {
            type: 'string',
            columnName: 'code_ecole',
            required: true,
        },
        anneeScolaire: {
            type: 'string',
            columnName: 'anneeScolaire',
            required: true,
            //columnType: 'bigint'
        },
    },

};

