tabel OrgGroup
This commit is contained in:
parent
688e94e26a
commit
0069c3f491
7 changed files with 71 additions and 37 deletions
|
|
@ -2,7 +2,7 @@ import "dotenv/config";
|
|||
import "reflect-metadata";
|
||||
import { DataSource } from "typeorm";
|
||||
|
||||
export const database = new DataSource({
|
||||
const database = new DataSource({
|
||||
type: "mysql",
|
||||
database: process.env.DB_NAME,
|
||||
host: process.env.DB_HOST,
|
||||
|
|
@ -12,8 +12,8 @@ export const database = new DataSource({
|
|||
synchronize: true,
|
||||
logging: true,
|
||||
entities: ["src/entities/**/*.ts"],
|
||||
migrations: ["src/migrations/**/*.ts"],
|
||||
migrations: ["src/migration/**/*.ts"],
|
||||
subscribers: [],
|
||||
});
|
||||
|
||||
// export default database;
|
||||
export default database;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue