33 lines
1.2 KiB
JavaScript
33 lines
1.2 KiB
JavaScript
|
import { Sequelize } from "sequelize";
|
||
|
|
||
|
let sequelize = new Sequelize("edi", "root", "root", {
|
||
|
host: "localhost",
|
||
|
dialect: "mariadb",
|
||
|
logging: false,
|
||
|
});
|
||
|
|
||
|
import additionalPricePerPiece from "./additionalPricePerPiece.js";
|
||
|
import botanicalNames from "./botanicalNames.js";
|
||
|
import countryOfOriginIsoCodes from "./countryOfOriginIsoCodes.js";
|
||
|
import packageModel from "./package.js";
|
||
|
import packagingConfigurations from "./packagingConfigurations.js";
|
||
|
import photos from "./photos.js";
|
||
|
import seasonalPeriod from "./seasonalPeriod.js";
|
||
|
import tradeItem from "./tradeItem.js";
|
||
|
import clientConfig from "./clientConfig.js";
|
||
|
import characteristics from "./characteristics.js";
|
||
|
|
||
|
let models = {
|
||
|
additionalPricePerPiece: additionalPricePerPiece(sequelize),
|
||
|
botanicalNames: botanicalNames(sequelize),
|
||
|
countryOfOriginIsoCodes: countryOfOriginIsoCodes(sequelize),
|
||
|
package: packageModel(sequelize),
|
||
|
packagingConfigurations: packagingConfigurations(sequelize),
|
||
|
photos: photos(sequelize),
|
||
|
seasonalPeriod: seasonalPeriod(sequelize),
|
||
|
tradeItem: tradeItem(sequelize),
|
||
|
clientConfig: clientConfig(sequelize),
|
||
|
characteristics: characteristics(sequelize),
|
||
|
};
|
||
|
|
||
|
export default models;
|