51 lines
1.1 KiB
JavaScript
51 lines
1.1 KiB
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
const packingConfigurations = {
|
|
packingConfigurationId: {
|
|
type: Sequelize.STRING,
|
|
primaryKey: true,
|
|
},
|
|
piecesPerPackage: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
bunchesPerPackage: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
photoUrl: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
packagesPerLayer: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
layersPerLoadCarrier: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
additionalPricePerPiece_currency: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
additionalPricePerPiece_value: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
transportHeightInCm: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
loadCarrierType: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
isPrimary: {
|
|
type: Sequelize.BOOLEAN,
|
|
},
|
|
};
|
|
|
|
export default (sequelize) => {
|
|
const PackingConfigurations = sequelize.define(
|
|
'tradeItem_packingConfigurations',
|
|
packingConfigurations,
|
|
{
|
|
timestamps: false,
|
|
freezeTableName: true,
|
|
}
|
|
);
|
|
return PackingConfigurations;
|
|
};
|