49 lines
1021 B
JavaScript
49 lines
1021 B
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
const packingConfigurations = {
|
|
id: {
|
|
type: Sequelize.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true,
|
|
},
|
|
tradeItemFk: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
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,
|
|
},
|
|
};
|
|
|
|
export default (sequelize) => {
|
|
const PackingConfigurations = sequelize.define(
|
|
'FDpackingConfigurations',
|
|
packingConfigurations,
|
|
{
|
|
timestamps: false,
|
|
freezeTableName: true,
|
|
}
|
|
);
|
|
return PackingConfigurations;
|
|
};
|