ff-admin-server/src/entity/executivePosition.ts

15 lines
481 B
TypeScript
Raw Normal View History

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