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


module.exports = {
    tableName: 'ecole',

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

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

        },

        ville: {
            type: 'string',
            columnName: 'ville',
            allowNull: true

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

        },

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

        },


       /* useEmailForReset: {
            type: 'boolean',
            defaultsTo: true
        },
        useSmsForReset: {
            type: 'boolean',
            defaultsTo: false
        },
        useWhatsAppForReset: {
            type: 'boolean',
            defaultsTo: false
        },
        preferredContactMethod: {
            type: 'string',
            isIn: ['email', 'sms', 'whatsapp'],
            defaultsTo: 'email'
        } */

    },

};

