23 lines
485 B
JavaScript
23 lines
485 B
JavaScript
|
import { Sequelize } from 'sequelize';
|
||
|
|
||
|
const volumePrices = {
|
||
|
id: {
|
||
|
type: Sequelize.INTEGER,
|
||
|
primaryKey: true,
|
||
|
autoIncrement: true,
|
||
|
},
|
||
|
unit: {
|
||
|
type: Sequelize.STRING,
|
||
|
},
|
||
|
pricePerPiece: {
|
||
|
type: Sequelize.INTEGER,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export default (sequelize) => {
|
||
|
const VolumePrices = sequelize.define('FDvolumePrices', volumePrices, {
|
||
|
timestamps: false,
|
||
|
freezeTableName: true,
|
||
|
});
|
||
|
return VolumePrices;
|
||
|
};
|