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


module.exports = {
    tableName: 'enseignants',

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

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

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

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

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


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

        },

        telephone2: {
            type: 'string',
            columnName: 'telephone2',
            allowNull: true,
           //5 columnType: 'bigint'
        },
        adresse: {
            type: 'string',
            columnName: 'adresse',
            allowNull: true

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


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

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

        }, 

      
    },

};

