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

18 lines
539 B
TypeScript
Raw Normal View History

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