2024-08-17 14:38:08 +00:00
|
|
|
import { Column, Entity, ManyToMany, PrimaryColumn } from "typeorm";
|
|
|
|
import { member } from "./member";
|
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export class executive_position {
|
|
|
|
@PrimaryColumn({ generated: "uuid", type: "varchar", length: 36 })
|
|
|
|
id: string;
|
|
|
|
|
|
|
|
@Column({ type: "varchar", length: 255 })
|
|
|
|
postition: string;
|
|
|
|
|
2024-08-19 10:47:10 +00:00
|
|
|
@Column({ type: "int", default: -1 })
|
2024-08-17 14:38:08 +00:00
|
|
|
number_of_performers: string;
|
|
|
|
|
|
|
|
@ManyToMany(() => member, (member) => member.positions, {
|
|
|
|
onDelete: "RESTRICT",
|
|
|
|
})
|
|
|
|
members: member[];
|
|
|
|
}
|