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


module.exports = {
    tableName: 'information_user',

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

        },
        description: {
            type: 'ref',
            columnName: 'description',
            required: true,

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

        },
        qui: {
            type: 'string',
            columnName: 'qui',
            allowNull: true
        },
        date: {
            type: 'string',
            columnName: 'date',
            allowNull: true
        },
        heure: {
            type: 'string',
            columnName: 'heure',
            allowNull: true
        },
        
        codeEcole: {
            type: 'string',
            columnName: 'code_ecole',
            required: true,

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

        }, 

      
    },

};

