members-database/entities/membershipStatus.ts

14 lines
387 B
TypeScript

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