You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

61 lines
1.3 KiB

const sequelize = require('sequelize')
const db = require('../Config/db')
const WarehouseModel = db.define(
'TDWAREH',
{
DB_CODE: {
type: sequelize.STRING,
},
WAR_CODE: {
type: sequelize.STRING,
},
WAR_NAME: {
type: sequelize.STRING,
},
WAR_DESC: {
type: sequelize.STRING,
},
WAR_ADD1: {
type: sequelize.STRING,
},
WAR_ADD2: {
type: sequelize.STRING,
},
WAR_ADD3: {
type: sequelize.STRING,
},
WAR_TEL1: {
type: sequelize.STRING,
},
WAR_TEL2: {
type: sequelize.STRING,
},
WAR_FAX: {
type: sequelize.STRING,
},
WAR_COM1: {
type: sequelize.STRING,
},
WAR_COM2: {
type: sequelize.STRING,
},
WAR_STAT: {
type: sequelize.STRING,
},
USER_CODE: {
type: sequelize.STRING,
},
WAR_CREA: {
type: sequelize.STRING,
},
},
{
timestamps: false,
freezeTableName: true,
}
)
WarehouseModel.removeAttribute('id')
module.exports = WarehouseModel;