23 lines
483 B
JavaScript
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;
|
|
}; |