23 lines
622 B
TypeScript
23 lines
622 B
TypeScript
import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
|
|
import { member_executive_positions } from "./member_executive_positions";
|
|
|
|
@Entity()
|
|
export class executive_position {
|
|
@PrimaryColumn({ generated: "increment", type: "int" })
|
|
id: number;
|
|
|
|
@Column({ type: "varchar", length: 255 })
|
|
postition: string;
|
|
|
|
@Column({ type: "int", default: -1 })
|
|
number_of_performers: string;
|
|
|
|
@OneToMany(
|
|
() => member_executive_positions,
|
|
(member_executive_positions) => member_executive_positions.executive_position,
|
|
{
|
|
onDelete: "RESTRICT",
|
|
}
|
|
)
|
|
members: member_executive_positions[];
|
|
}
|