24 lines
521 B
JavaScript
24 lines
521 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('volumePrices', volumePrices, {
|
|
timestamps: false,
|
|
freezeTableName: true,
|
|
});
|
|
return VolumePrices;
|
|
}; |