text: /* jshint indent: 2 */
  
  const config = require('../config/app');
  
  module.exports = function(sequelize, DataTypes) {
    return sequelize.define(config.db.prefix + 'filter_config', {
      id: {
        type: DataTypes.BIGINT,
        allowNull: false,
        primaryKey: true,
        autoIncrement: true
      },
      filter: {
        type: DataTypes.STRING,
        allowNull: false,
        defaultValue: ''
      },
      contextid: {
        type: DataTypes.BIGINT,
        allowNull: false
      },
      name: {
        type: DataTypes.STRING,
        allowNull: false,
        defaultValue: ''
      },
      value: {
        type: DataTypes.TEXT,
        allowNull: true
      }
    }, {
      tableName: config.db.prefix + 'filter_config'
    });
  };
  