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


module.exports = {
    tableName: 'quitance_facultatif',

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

        numeroQuittance: {
            type: 'string',
            columnName: 'numero_quittance',
            required: true,
        },

        dateQuittance: {
            //type: 'string',
            type: 'ref',
            columnName: 'date_quittance',
            //columnType:'datetime',
            required: true,
        },

        montantQuittance: {
            type: 'string',
            columnName: 'montant_quittance',
            required: true,
            //columnType: 'bigint'


        },

        nomPayeur: {
            type: 'string',
            columnName: 'nom_payeur',
            required: true,
        },
        libellePeriodePaiement: {
            type: 'string',
            columnName: 'libelle_periode_paiement',
            allowNull: true

        },
              
    },

};

