feat: create RedisNode migration and update Project and RedisNode entities to use JoinTable for many-to-many relationship

This commit is contained in:
lborv
2025-10-09 19:57:17 +03:00
parent 174dbbcdba
commit 45db65cec8
3 changed files with 59 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { Project } from "../../project/entities/project.entity";
import {
Column,
Entity,
JoinColumn,
JoinTable,
ManyToMany,
PrimaryGeneratedColumn,
} from "typeorm";
@ -25,6 +25,6 @@ export class RedisNode {
password: string | null;
@ManyToMany(() => Project, (project) => project.redisNodes)
@JoinColumn()
@JoinTable()
projects: Project[];
}