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


module.exports = {
    tableName: 'trimestre',

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

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


        },

        enCours: {
            type: 'boolean',
            columnName: 'enCours',
            defaultsTo: false,

        },

    },

};

