20 lines
484 B
TypeScript
20 lines
484 B
TypeScript
|
import { Column, Entity, ManyToMany, PrimaryColumn } from "typeorm";
|
||
|
import { member } from "./member";
|
||
|
|
||
|
@Entity()
|
||
|
export class qualification {
|
||
|
@PrimaryColumn({ generated: "uuid", type: "varchar", length: 36 })
|
||
|
id: string;
|
||
|
|
||
|
@Column({ type: "varchar", length: 255 })
|
||
|
qualification: string;
|
||
|
|
||
|
@Column({ type: "int", default: 1 })
|
||
|
number_of_performers: string;
|
||
|
|
||
|
@ManyToMany(() => member, (member) => member.positions, {
|
||
|
onDelete: "RESTRICT",
|
||
|
})
|
||
|
members: member[];
|
||
|
}
|