feat: create RedisNode migration and update Project and RedisNode entities to use JoinTable for many-to-many relationship
This commit is contained in:
@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user