19 lines
376 B
JavaScript
19 lines
376 B
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
const PackageModel = {
|
|
vbnPackageCode: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
customPackageId: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
};
|
|
|
|
export default (sequelize) => {
|
|
const Package = sequelize.define('package', PackageModel, {
|
|
timestamps: false,
|
|
freezeTableName: true,
|
|
});
|
|
return Package;
|
|
};
|