初始版本,目前线上可用
This commit is contained in:
17
backEnd/ormconfig.js
Normal file
17
backEnd/ormconfig.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const env = process.env.NODE_ENV;
|
||||
module.exports = {
|
||||
"type": "mysql",
|
||||
"host": "localhost",
|
||||
"port": 3306,
|
||||
"username": "root",
|
||||
"password": "123456",
|
||||
"database": "binyi",
|
||||
"entities": ["./src/entity/*.ts"],
|
||||
"migrations": ["src/migration/*.ts"],
|
||||
"synchronize": true,
|
||||
"logging": false,
|
||||
"cli": {
|
||||
"entitiesDir": "src/entity",
|
||||
"migrationsDir": "src/migration"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user