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


module.exports = {
    tableName: 'inscription_eleve',

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

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

        },
        nom: {
            type: 'string',
            columnName: 'nom',
            required: true,

        },
        prenom: {
            type: 'string',
            columnName: 'prenom',
            allowNull: true

        },
        sexe: {
            type: 'string',
            columnName: 'sexe',
            allowNull: true
        },
        dateNaissance: {
            type: 'string',
            columnName: 'date_naissance',
            //columnType:'datetime',
            allowNull: true

        },
        lieuNaissance: {
            type: 'string',
            columnName: 'lieu_naissance',
            allowNull: true

        },
        indicatif: {
            type: 'string',
            columnName: 'indicatif',
            allowNull: true,
            //columnType: 'bigint'


        },
        telephone: {
            type: 'string',
            columnName: 'telephone',
            allowNull: true,
            //columnType: 'bigint'


        },
        email: {
            type: 'string',
            columnName: 'email',
            allowNull: true

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

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

        },
        etablissementOrigine: {
            type: 'string',
            columnName: 'etablissement_origine',
            allowNull: true
            //required: true,

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

        },
        /*nomPere: {
            type: 'string',
            columnName: 'nom_pere',
            allowNull: true,

        },
        professionPere: {
            type: 'string',
            columnName: 'profession_pere',
            allowNull: true,

        },
        telephonePere: {
            type: 'string',
            columnName: 'nom_pere',
            allowNull: true,

        },
        nomMere: {
            type: 'string',
            columnName: 'nom_mere',
            allowNull: true
        },
        professionMere: {
            type: 'string',
            columnName: 'profession_mere',
            allowNull: true
        },
        telephoneMere: {
            type: 'string',
            columnName: 'telephone_mere',
            allowNull: true
        },*/


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

        },
        dateEnregistrement: {
            type: 'string',
            columnName: 'date_enregistrement',
            required: true,

        },
        heureEnregistrement: {
            type: 'string',
            columnName: 'heure_enregistrement',
            required: true,

        },
        classe: {
            type: 'string',
            columnName: 'classe',
            allowNull: true
        },


    },

};

