members-database/entities/membership_status.ts

15 lines
404 B
TypeScript
Raw Permalink Normal View History

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[];
}