floriday/models/supplyLine/volumePrices.js

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