ff-admin-server/src/entity/executivePosition.ts
2024-09-14 11:32:34 +02:00

14 lines
481 B
TypeScript

import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
import { memberExecutivePositions } from "./memberExecutivePositions";
@Entity()
export class executivePosition {
@PrimaryColumn({ generated: "increment", type: "int" })
id: number;
@Column({ type: "varchar", length: 255 })
position: string;
@OneToMany(() => memberExecutivePositions, (memberExecutivePositions) => memberExecutivePositions.executivePosition)
members: memberExecutivePositions[];
}