const sequelize = require("sequelize") const db = require("../Config/db"); const ItemModel = db.define( 'TDITEMS', { ITEM_CODE: { type: sequelize.STRING, primaryKey: true }, DB_CODE: { type: sequelize.STRING }, ITEM_BCODE: { type: sequelize.STRING }, ITEM_DESC: { type: sequelize.STRING }, ITEM_TYPE: { type: sequelize.STRING }, UNIT_STOCK: { type: sequelize.STRING }, ITEM_COST1: { type: sequelize.NUMERIC }, ITEM_PRICE1: { type: sequelize.NUMERIC }, UNIT_SALE: { type: sequelize.STRING }, ITEM_COST2: { type: sequelize.NUMERIC }, ITEM_PRICE2: { type: sequelize.NUMERIC }, CAT_CODE: { type: sequelize.STRING }, ITEM_STAT: { type: sequelize.STRING }, ITEM_CUS1: { type: sequelize.STRING }, ITEM_CUS2: { type: sequelize.STRING }, ITEM_CUS3: { type: sequelize.STRING }, ITEM_CUS4: { type: sequelize.STRING }, ITEM_CUS5: { type: sequelize.STRING }, ITEM_CUS6: { type: sequelize.STRING }, ITEM_CUS7: { type: sequelize.STRING }, ITEM_CUS8: { type: sequelize.STRING }, ITEM_CUS9_KH: { type: sequelize.STRING }, ITEM_CUS10_KH: { type: sequelize.STRING }, USER_CREA: { type: sequelize.STRING }, DATE_CREA: { type: sequelize.STRING }, USER_UPDT: { type: sequelize.STRING }, DATE_UPDT: { type: sequelize.STRING }, ITEM_IMG: { type: sequelize.BLOB, }, }, { timestamps: false, freezeTableName: true, } ) ItemModel.removeAttribute('id') module.exports = ItemModel;