members-database/entities/membershipStatus.ts

15 lines
387 B
TypeScript
Raw Normal View History

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