52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
import { Sequelize } from 'sequelize';
|
|
|
|
const packingConfigurations = {
|
|
id: {
|
|
type: Sequelize.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true,
|
|
},
|
|
packingConfigurationId: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
piecesPerPackage: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
bunchesPerPackage: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
photoUrl: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
packagesPerLayer: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
layersPerLoadCarrier: {
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
additionalPricePerPiece: {
|
|
type: Sequelize.STRING,
|
|
},
|
|
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;
|
|
};
|