feat: implement project settings management with CRUD operations and caching

This commit is contained in:
lborv
2025-10-13 20:40:01 +03:00
parent aa7920384c
commit 93f12cd1d8
14 changed files with 304 additions and 17 deletions

View File

@ -0,0 +1,19 @@
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
import { Project } from "../../entities/project.entity";
@Entity("projectSetting")
export class ProjectSetting {
@PrimaryGeneratedColumn("uuid")
id: string;
@ManyToOne(() => Project, (project) => project.settings, {
onDelete: "CASCADE",
})
project: Project;
@Column({ type: "varchar", length: 255, nullable: false })
key: string;
@Column({ type: "text", nullable: false })
value: string;
}