2023-01-09 12:35:05 +00:00
|
|
|
import { Sequelize } from 'sequelize';
|
2022-12-05 12:53:30 +00:00
|
|
|
|
|
|
|
const packingConfigurations = {
|
2023-01-09 12:35:05 +00:00
|
|
|
id: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
primaryKey: true,
|
|
|
|
autoIncrement: true,
|
|
|
|
},
|
|
|
|
tradeItemFk: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
piecesPerPackage: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
bunchesPerPackage: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
photoUrl: {
|
|
|
|
type: Sequelize.STRING,
|
|
|
|
},
|
|
|
|
packagesPerLayer: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
layersPerLoadCarrier: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
transportHeightInCm: {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
},
|
|
|
|
loadCarrierType: {
|
|
|
|
type: Sequelize.STRING,
|
|
|
|
},
|
|
|
|
isPrimary: {
|
|
|
|
type: Sequelize.BOOLEAN,
|
|
|
|
},
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default (sequelize) => {
|
2023-01-09 12:35:05 +00:00
|
|
|
const PackingConfigurations = sequelize.define(
|
|
|
|
'FDpackingConfigurations',
|
|
|
|
packingConfigurations,
|
|
|
|
{
|
|
|
|
timestamps: false,
|
|
|
|
freezeTableName: true,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
return PackingConfigurations;
|
2022-12-05 12:53:30 +00:00
|
|
|
};
|