floriday/models/supplyLine/clockPresaleSupplyPackingCo...

45 lines
1.0 KiB
JavaScript

import { Sequelize } from 'sequelize';
const supplyLineClockPresaleSupplyPackingConfiguration = {
clockPresaleSupplyPackingConfigurationId: {
type: Sequelize.STRING,
primaryKey: true,
},
piecesPerPackage: {
type: Sequelize.INTEGER,
},
bunchesPerPackage: {
type: Sequelize.INTEGER,
},
packagesPerLayer: {
type: Sequelize.INTEGER,
},
layersPerLoadCarrier: {
type: Sequelize.INTEGER,
},
loadCarrier: {
type: Sequelize.STRING,
},
additionalPricePerPieceCurrency: {
type: Sequelize.STRING,
},
additionalPricePerPieceValue: {
type: Sequelize.INTEGER,
},
photoUrl: {
type: Sequelize.STRING,
},
supplyLineClockPresaleSupplyId: {
type: Sequelize.STRING,
},
};
export default (sequelize) => {
return sequelize.define(
'supplyLineClockPresaleSupplyPackingConfiguration',
supplyLineClockPresaleSupplyPackingConfiguration, {
timestamps: false,
freezeTableName: true,
}
);
};