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