Commit aa59e0a7 authored by Kim, Chaerin's avatar Kim, Chaerin
Browse files

서버 구축 완료

parent 9388ae9e
import { Sequelize } from "sequelize";
import UserModel from "../models/user.model.js";
import dbConfig from "../config/db.config.js";
const sequelize = new Sequelize(
String(dbConfig.database),
String(dbConfig.username),
dbConfig.password,
{
host: dbConfig.host,
dialect: dbConfig.dialect,
// pool: {
// max: dbConfig.pool?.max,
// min: dbConfig.pool?.min,
// acquire: dbConfig.pool?.acquire,
// idle: dbConfig.pool?.idle,
// },
}
);
const User = UserModel(sequelize);
export { sequelize, User };
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment