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

    attributes: {
        codeProgramme: {
            type: 'string',
            columnName: 'codeProgramme',
            required: true,     
        },
        date: {
            type: 'string',
            columnName: 'date',
            required: true,
        },
        heureDebut: {
            type: 'string',
            columnName: 'heure_debut',
            required: true,
        },
        heureFin: {
            type: 'string',
            columnName: 'heure_fin',
            required: true,
        },
        titreCours: {
            type: 'string',
            columnName: 'titre_cours',
            //allowNull: true,
            required: true,
        }, 
        description: {
            type: 'string',
            columnName: 'description',
            //allowNull: true,
            required: true,
        },   
        dateEnregistrement: {
            type: 'string',
            columnName: 'date_enregistrement',
            allowNull: true

        },
        heureEnregistrement: {
            type: 'string',
            columnName: 'heure_enregistrement',
            allowNull: true

        },   
        codeEcole: {
            type: 'string',
            columnName: 'code_ecole',
            required: true,
        },
        anneeScolaire: {
            type: 'string',
            columnName: 'anneeScolaire',
            required: true,
            //columnType: 'bigint'
        },
    },

};

