floriday/models/supplyLine/volumePrice.js

26 lines
427 B
JavaScript
Raw Normal View History

2023-01-16 13:52:08 +00:00
import { Sequelize } from 'sequelize';
const volumePrice = {
2023-05-15 12:19:43 +00:00
supplyLineId: {
type: Sequelize.STRING,
primaryKey: true,
},
unit: {
type: Sequelize.STRING,
primaryKey: true,
},
pricePerPiece: {
type: Sequelize.DECIMAL(10,2),
primaryKey: true,
},
2023-01-16 13:52:08 +00:00
};
export default (sequelize) => {
return sequelize.define(
'supplyLineVolumePrice',
volumePrice, {
2023-05-15 12:19:43 +00:00
timestamps: false,
freezeTableName: true,
}
);
2023-01-16 13:52:08 +00:00
};