|
|
@@ -6,6 +6,8 @@ import process from 'node:process'
|
|
|
import { UserEntity as User } from "./modules/users/user.entity"
|
|
|
import { Role } from "./modules/users/role.entity"
|
|
|
import { Believer } from "./modules/believers/believer.entity"
|
|
|
+import { Group } from "./modules/groups/group.entity"
|
|
|
+import { BelieverGroup } from "./modules/groups/believer-group.entity"
|
|
|
|
|
|
export const AppDataSource = new DataSource({
|
|
|
type: "mysql",
|
|
|
@@ -15,7 +17,7 @@ export const AppDataSource = new DataSource({
|
|
|
password: process.env.DB_PASSWORD || "",
|
|
|
database: process.env.DB_DATABASE || "d8dai",
|
|
|
entities: [
|
|
|
- User, Role, Believer
|
|
|
+ User, Role, Believer, Group, BelieverGroup
|
|
|
],
|
|
|
migrations: [],
|
|
|
synchronize: process.env.DB_SYNCHRONIZE !== "false",
|