From 4eacfda951f8275ac4f3a1283368884e53285ed0 Mon Sep 17 00:00:00 2001 From: Ran Guin Date: Wed, 14 Jul 2021 18:00:30 -0700 Subject: update normalized models --- db/normalized/codes.js | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 db/normalized/codes.js (limited to 'db/normalized/codes.js') diff --git a/db/normalized/codes.js b/db/normalized/codes.js deleted file mode 100644 index 956fe56a..00000000 --- a/db/normalized/codes.js +++ /dev/null @@ -1,27 +0,0 @@ -const { DataTypes } = require('sequelize'); - -const attributes = { - code: { - type: DataTypes.INTEGER(11), - primaryKey: true, - allowNull: false - }, - name: { - type: DataTypes.STRING(255) - } -} -const options = { - tableName: "codes", - comment: "", - timestamps: true, - createdAt: 'created_at', - updatedAt: 'updated_at', - indexes: [ - { - unique: true, - fields: ['code'] - } - ] -}; - -db["Code"] = db.define("codes_model", attributes, options); -- cgit v1.2.3