import { Sequelize } from 'sequelize';
import {
	DB_NAME_SQL,
	DB_USER_SQL,
	DB_PASS_SQL,
	DB_URL_SQL,
	DB_PORT_SQL,
	DB_DIALECT_SQL,
} from '../constants';

// определяем объект Sequelize
export const dbConnectMySQL = new Sequelize(
	DB_NAME_SQL,
	DB_USER_SQL,
	DB_PASS_SQL,
	{
		host: DB_URL_SQL,
		port: DB_PORT_SQL,
		dialect: DB_DIALECT_SQL,
		logging: false,
	}
);

// определяем объект Sequelize
// export const dbConnectMySQL_LOCAL = new Sequelize(
// 	DB_NAME_SQL,
// 	DB_USER_SQL,
// 	DB_PASS_SQL,
// 	{
// 		host: DB_URL_SQL,
// 		port: DB_PORT_SQL,
// 		dialect: DB_DIALECT_SQL,
// 		logging: false,
// 	}
// );