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; }