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

17 lines
528 B
TypeScript
Raw Normal View History

2024-09-04 09:36:52 +00:00
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, {
// onDelete: "RESTRICT",
// })
// members: memberExecutivePositions[];
}