-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathormconfig.ts
More file actions
25 lines (21 loc) · 743 Bytes
/
Copy pathormconfig.ts
File metadata and controls
25 lines (21 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import dotenv from "dotenv";
import { ConnectionOptions } from "typeorm";
import { Categories } from "./src/output/entities/Categories";
import { Users } from "./src/user/entities/Users";
import { Payments } from "./src/output/entities/Payments";
import { Moneys } from "./src/money/entities/Moneys";
dotenv.config();
const ORMConfig: any = {
type: "mysql",
host: process.env.DEV_HOST,
port: Number(process.env.DEV_PORT),
username: process.env.DEV_USER,
password: process.env.DEV_PASSWORD,
database: process.env.DEV_DATABASE,
entities: [Categories, Users, Moneys, Payments],
seeds: ["src/database/seeding{.ts,.js}"],
synchronize: false,
charset: "utf8mb4",
logging: true,
};
export = ORMConfig;