feat: implement project settings management with CRUD operations and caching
This commit is contained in:
19
src/project/settings/entities/project.setting.entity.ts
Normal file
19
src/project/settings/entities/project.setting.entity.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user