2023-01-09 12:35:05 +00:00
|
|
|
import { Sequelize } from 'sequelize';
|
2022-12-05 12:53:30 +00:00
|
|
|
|
2023-05-30 09:46:46 +00:00
|
|
|
const packingConfiguration = {
|
2023-01-12 13:54:05 +00:00
|
|
|
packingConfigurationId: {
|
2023-01-11 12:13:22 +00:00
|
|
|
type: Sequelize.STRING,
|
2023-02-08 11:31:54 +00:00
|
|
|
primaryKey: true,
|
2023-01-09 12:35:05 +00:00
|
|
|
},
|
|
|
|
piecesPerPackage: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
bunchesPerPackage: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
photoUrl: {
|
|
|
|
type: Sequelize.STRING,
|
|
|
|
},
|
|
|
|
packagesPerLayer: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
layersPerLoadCarrier: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
2023-05-15 12:19:43 +00:00
|
|
|
additionalPricePerPiece_currency: {
|
|
|
|
type: Sequelize.STRING,
|
|
|
|
},
|
|
|
|
additionalPricePerPiece_value: {
|
2023-01-12 13:54:05 +00:00
|
|
|
type: Sequelize.STRING,
|
|
|
|
},
|
2023-01-09 12:35:05 +00:00
|
|
|
transportHeightInCm: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
loadCarrierType: {
|
|
|
|
type: Sequelize.STRING,
|
|
|
|
},
|
|
|
|
isPrimary: {
|
|
|
|
type: Sequelize.BOOLEAN,
|
|
|
|
},
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default (sequelize) => {
|
2023-05-30 09:46:46 +00:00
|
|
|
return sequelize.define(
|
|
|
|
'tradeItemPackingConfiguration',
|
|
|
|
packingConfiguration,
|
2023-01-09 12:35:05 +00:00
|
|
|
{
|
|
|
|
timestamps: false,
|
|
|
|
freezeTableName: true,
|
|
|
|
}
|
|
|
|
);
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|