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

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

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

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

        },
        matricule: {
            type: 'string',
            columnName: 'matricule',
           // allowNull: false,
            required: true,

        },

        trimSem: {
            type: 'string',
            columnName: 'trim_sem',
            //allowNull: true
            required: true,

        },

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

        },

        systemSco: {
            type: 'string',
            columnName: 'system_sco',
            allowNull: true

        },

    },

};

