const sequelize = require('sequelize') const db = require("../Config/db") const Category = db.define( "TD_CATEGORY", { ID: { type: sequelize.INTEGER, primaryKey: true, autoIncrement: true }, DB_CODE: { type: sequelize.STRING }, ANALYSIS_ID: { type: sequelize.STRING }, DESC_KH: { type: sequelize.STRING }, DESC_EN: { type: sequelize.STRING }, DESC_CN: { type: sequelize.STRING }, CREATED_DATE: { type: sequelize.STRING }, CREATED_BY: { type: sequelize.STRING }, STATUS: { type: sequelize.INTEGER } }, { timestamps: false, freezeTableName: true, } ); Category.removeAttribute('id'); module.exports = Category;