2024-09-04 11:36:52 +02:00
|
|
|
import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
|
2025-01-05 14:14:00 +01:00
|
|
|
import { memberExecutivePositions } from "../club/member/memberExecutivePositions";
|
2024-09-04 11:36:52 +02:00
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export class executivePosition {
|
|
|
|
@PrimaryColumn({ generated: "increment", type: "int" })
|
|
|
|
id: number;
|
|
|
|
|
2025-01-28 11:09:42 +01:00
|
|
|
@Column({ type: "varchar", length: 255, unique: true })
|
2024-09-04 11:36:52 +02:00
|
|
|
position: string;
|
|
|
|
|
2024-09-14 11:32:34 +02:00
|
|
|
@OneToMany(() => memberExecutivePositions, (memberExecutivePositions) => memberExecutivePositions.executivePosition)
|
|
|
|
members: memberExecutivePositions[];
|
2024-09-04 11:36:52 +02:00
|
|
|
}
|