summaryrefslogtreecommitdiff
path: root/models/filter.js
blob: 4ba396645f96b5eb896cd59adb07f038db889258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('filter', {
    id: {
      type: DataTypes.INTEGER(10).UNSIGNED,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    filter_on: {
      type: DataTypes.STRING(191),
      allowNull: false
    },
    filter: {
      type: DataTypes.STRING(191),
      allowNull: false
    },
    filter_hash: {
      type: DataTypes.STRING(191),
      allowNull: false
    }
  }, {
    tableName: 'filter',
    timestamps: false,
    underscored: true,
    freezeTableName: true
  });
};