2024-08-21 12:13:39 +00:00
|
|
|
import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
|
|
|
|
import { member_qualifications } from "./member_qualifications";
|
2024-08-17 14:38:08 +00:00
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export class qualification {
|
2024-08-21 12:13:39 +00:00
|
|
|
@PrimaryColumn({ generated: "increment", type: "int" })
|
|
|
|
id: number;
|
2024-08-17 14:38:08 +00:00
|
|
|
|
|
|
|
@Column({ type: "varchar", length: 255 })
|
|
|
|
qualification: string;
|
|
|
|
|
2024-08-19 10:47:10 +00:00
|
|
|
@Column({ type: "varchar", length: 255, nullable: true, default: null })
|
|
|
|
description?: string;
|
2024-08-17 14:38:08 +00:00
|
|
|
|
2024-08-21 12:13:39 +00:00
|
|
|
@OneToMany(() => member_qualifications, (member_qualifications) => member_qualifications.qualification, {
|
2024-08-17 14:38:08 +00:00
|
|
|
onDelete: "RESTRICT",
|
|
|
|
})
|
2024-08-21 12:13:39 +00:00
|
|
|
members: member_qualifications[];
|
2024-08-17 14:38:08 +00:00
|
|
|
}
|