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