import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm"; import { membership } from "./membership"; @Entity() export class membership_status { @PrimaryColumn({ generated: "increment", type: "int" }) id: number; @Column({ type: "varchar", length: 255, nullable: true }) status: string; @OneToMany(() => membership, (membership) => membership.status) memberships: membership[]; }