feat: implement project settings management with CRUD operations and caching
This commit is contained in:
@ -14,6 +14,7 @@ import { Database } from "../../databaseManager/entities/database.entity";
|
||||
import { FunctionEntity } from "../../query/entities/function.entity";
|
||||
import { RedisNode } from "../../redisManager/entities/redis.node.entity";
|
||||
import { Log } from "../../query/logger/entities/log.entity";
|
||||
import { ProjectSetting } from "../settings/entities/project.setting.entity";
|
||||
|
||||
@Entity("project")
|
||||
export class Project {
|
||||
@ -39,6 +40,9 @@ export class Project {
|
||||
@OneToMany(() => FunctionEntity, (functionEntity) => functionEntity.project)
|
||||
functions: FunctionEntity[];
|
||||
|
||||
@OneToMany(() => ProjectSetting, (setting) => setting.project)
|
||||
settings: ProjectSetting[];
|
||||
|
||||
@ManyToMany(() => RedisNode, (redisNode) => redisNode.projects)
|
||||
@JoinTable()
|
||||
redisNodes: RedisNode[];
|
||||
|
||||
Reference in New Issue
Block a user