We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85ce932 commit b6f2df3Copy full SHA for b6f2df3
src/data-source.ts
@@ -1,5 +1,7 @@
1
import "reflect-metadata"
2
import { DataSource } from "typeorm"
3
+import { Post } from "./entity/Post"
4
+import { Category } from "./entity/Category"
5
6
export const AppDataSource = new DataSource({
7
type: "postgres",
@@ -10,12 +12,7 @@ export const AppDataSource = new DataSource({
10
12
database: "test",
11
13
synchronize: true,
14
logging: true,
- entities: ["src/entity/*.js"],
- subscribers: ["src/subscriber/*.js"],
15
- migrations: ["src/migration/*.js"],
16
- cli: {
17
- entitiesDir: "src/entity",
18
- migrationsDir: "src/migration",
19
- subscribersDir: "src/subscriber",
20
- },
+ entities: [Post, Category],
+ subscribers: [],
+ migrations: [],
21
})
0 commit comments