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

@ -4,6 +4,7 @@ import {
Column,
Entity,
JoinColumn,
JoinTable,
ManyToMany,
OneToMany,
OneToOne,
@ -35,6 +36,6 @@ export class Project {
functions: FunctionEntity[];
@ManyToMany(() => RedisNode, (redisNode) => redisNode.projects)
@JoinColumn()
@JoinTable()
redisNodes: RedisNode[];
}