summaryrefslogtreecommitdiff
path: root/models/filter.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/filter.js')
-rw-r--r--models/filter.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/models/filter.js b/models/filter.js
new file mode 100644
index 0000000..4ba3966
--- /dev/null
+++ b/models/filter.js
@@ -0,0 +1,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
+ });
+};