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


module.exports = {
    tableName: 'filiation',

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

        },
        codeParent: {
            type: 'string',
            columnName: 'code_parent',
            required: true,

        },
        typeFiliation: {
            type: 'string',
            columnName: 'type_filiation',
            required: true,

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

        }, 

      
    },

};

