ff-admin-server/src/entity/qualification.ts

20 lines
601 B
TypeScript
Raw Normal View History

2024-09-04 09:36:52 +00:00
import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
//import { memberQualifications } from "./memberQualifications";
@Entity()
export class qualification {
@PrimaryColumn({ generated: "increment", type: "int" })
id: number;
@Column({ type: "varchar", length: 255 })
qualification: string;
@Column({ type: "varchar", length: 255, nullable: true, default: null })
description?: string;
// @OneToMany(() => memberQualifications, (memberQualifications) => memberQualifications.qualification, {
// onDelete: "RESTRICT",
// })
// members: memberQualifications[];
}