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

    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,

        },

        cycle: { // primaire 4 maternelle 3 premier cycle 1 second cycle 2
            type: 'string',
            columnName: 'cycle',
            required: true,
        },       
    },

};

