27 lines
467 B
JavaScript
27 lines
467 B
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
const volumePrices = {
|
|
supplyLineId: {
|
|
type: Sequelize.STRING,
|
|
primaryKey: true,
|
|
},
|
|
unit: {
|
|
type: Sequelize.STRING,
|
|
primaryKey: true,
|
|
},
|
|
pricePerPiece: {
|
|
type: Sequelize.DECIMAL(10,2),
|
|
primaryKey: true,
|
|
},
|
|
};
|
|
|
|
export default (sequelize) => {
|
|
const VolumePrices = sequelize.define(
|
|
'supplyLine_volumePrices',
|
|
volumePrices, {
|
|
timestamps: false,
|
|
freezeTableName: true,
|
|
}
|
|
);
|
|
return VolumePrices;
|
|
}; |