ff-admin-server/src/entity/qualification.ts
2024-09-14 11:32:34 +02:00

17 lines
554 B
TypeScript

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)
members: memberQualifications[];
}