2024-12-25 05:29:02 +00:00
|
|
|
require('dotenv').config();
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
development: {
|
|
|
|
username: process.env.DB_USER,
|
2024-12-25 12:24:28 +00:00
|
|
|
password: process.env.DB_PASS,
|
2024-12-25 05:29:02 +00:00
|
|
|
database: process.env.DB_NAME,
|
|
|
|
host: process.env.DB_HOST,
|
2024-12-25 12:24:28 +00:00
|
|
|
dialect: "mysql",
|
|
|
|
migrationStorage: "sequelize", // マイグレーションの保存形式
|
2025-01-03 13:52:43 +00:00
|
|
|
seederStorage: "sequelize", // シードデータの保存形式
|
2024-12-25 12:24:28 +00:00
|
|
|
migrationStoragePath: "src/migrations", // マイグレーションのディレクトリ
|
2025-01-03 13:52:43 +00:00
|
|
|
seederStoragePath: "src/seeders" // シードデータのディレクトリ
|
|
|
|
},
|
|
|
|
production: {
|
|
|
|
username: process.env.DB_USER,
|
|
|
|
password: process.env.DB_PASS,
|
|
|
|
database: process.env.DB_NAME,
|
|
|
|
host: process.env.DB_HOST,
|
|
|
|
dialect: "mysql",
|
|
|
|
migrationStorage: "sequelize",
|
|
|
|
seederStorage: "sequelize",
|
|
|
|
migrationStoragePath: "src/migrations",
|
|
|
|
seederStoragePath: "src/seeders"
|
2024-12-25 05:29:02 +00:00
|
|
|
}
|
|
|
|
};
|