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


module.exports = {
    tableName: 'emplois_du_temps',

    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

        },

        codeEnseignant: {
            type: 'string',
            columnName: 'code_enseignant',
            required: true,
            //allowNull: true

        },

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

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

        },
        dateConfig: {
            type: 'string',
            columnName: 'date_config',
            required: true,
            //allowNull: true

        },

        idJour: {
            type: 'string',
            columnName: 'id_jour',
            allowNull: true

        },
        nomJour: {
            type: 'string',
            columnName: 'nom_jour',
            allowNull: true

        },

        heureDebut: {
            type: 'string',
            columnName: 'heure_debut',
            allowNull: true

        },

        heureFin: {
            type: 'string',
            columnName: 'heure_fin',
            allowNull: true

        },

        libelleClasse: {
            type: 'string',
            columnName: 'libelle_classe',
            allowNull: true

        },

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

        },
    },

};

