floriday/models/packingConfigurations.js

49 lines
1022 B
JavaScript

import { Sequelize } from 'sequelize';
const packingConfigurations = {
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,
},
};
export default (sequelize) => {
const PackingConfigurations = sequelize.define(
'FDpackingConfigurations',
packingConfigurations,
{
timestamps: false,
freezeTableName: true,
}
);
return PackingConfigurations;
};