Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
bora-it
Commits
aa59e0a7
Commit
aa59e0a7
authored
Jul 13, 2021
by
Kim, Chaerin
Browse files
서버 구축 완료
parent
9388ae9e
Changes
21
Show whitespace changes
Inline
Side-by-side
server/db/index.js
deleted
100644 → 0
View file @
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
};
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment