summaryrefslogtreecommitdiff
path: root/models/item.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/item.js')
-rw-r--r--models/item.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/models/item.js b/models/item.js
deleted file mode 100644
index 6f2aac9..0000000
--- a/models/item.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/* jshint indent: 2 */
-
-module.exports = function(sequelize, DataTypes) {
- return sequelize.define('item', {
- id: {
- type: DataTypes.INTEGER(10).UNSIGNED,
- allowNull: false,
- primaryKey: true,
- autoIncrement: true
- },
- created_at: {
- type: DataTypes.TIME,
- allowNull: true
- },
- updated_at: {
- type: DataTypes.TIME,
- allowNull: true
- },
- series: {
- type: DataTypes.STRING(191),
- allowNull: false
- },
- name: {
- type: DataTypes.STRING(191),
- allowNull: false
- },
- active: {
- type: DataTypes.STRING(191),
- allowNull: false
- },
- passive: {
- type: DataTypes.STRING(191),
- allowNull: false
- }
- }, {
- tableName: 'item',
- timestamps: false,
- underscored: true,
- freezeTableName: true
- });
-};