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


module.exports = {
    tableName: 'classe',

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

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

        },

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

        },
       
        effectif: {
            type: 'string',
            columnName: 'effectif',
            allowNull: true,
            //columnType: 'bigint'
        },
        effectifHomme: {
            type: 'string',
            columnName: 'effectif_homme',
            allowNull: true,
           // columnType: 'bigint'
        },
        effectifFemme: {
            type: 'string',
            columnName: 'effectif_femme',
            allowNull: true,
           // columnType: 'bigint'
        },
        
       
        niveau: {
            type: 'string',
            columnName: 'niveau',
            allowNull: true

        },

        ordre: {
            type: 'string',
            columnName: 'ordre',
            allowNull: true

        },
       

       
    },

};

