15 lines
404 B
TypeScript
15 lines
404 B
TypeScript
|
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[];
|
||
|
}
|