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.
82 lines
1.6 KiB
82 lines
1.6 KiB
const sequelize = require('sequelize') |
|
const db = require('../Config/db') |
|
|
|
const DeliveryAddressModel = db.define( |
|
'TDDADD', |
|
{ |
|
ADD_CODE: { |
|
type: sequelize.STRING, |
|
}, |
|
DB_CODE: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_CODE: { |
|
type: sequelize.STRING |
|
|
|
}, |
|
DEL_NAME: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_ADD_1: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_ADD_2: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_ADD_3: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_ADD_4: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_ADD_5: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_TEL: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_FAX: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_EMAIL: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_WEB: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_CONT: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_COM_1: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_COM_2: { |
|
type: sequelize.STRING |
|
}, |
|
DEL_TYPE: { |
|
type: sequelize.CHAR |
|
}, |
|
DEL_STAT: { |
|
type: sequelize.CHAR |
|
}, |
|
USER_CREA: { |
|
type: sequelize.STRING |
|
|
|
}, |
|
USER_UPDT: { |
|
type: sequelize.STRING |
|
}, |
|
USER_CODE: { |
|
type: sequelize.STRING |
|
} |
|
|
|
}, |
|
{ |
|
timestamps: false, |
|
freezeTableName: true, |
|
} |
|
) |
|
|
|
|
|
DeliveryAddressModel.removeAttribute('id') |
|
module.exports = DeliveryAddressModel; |