ff-admin-server/src/entity/configuration/award.ts

14 lines
397 B
TypeScript

import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
import { memberAwards } from "../club/member/memberAwards";
@Entity()
export class award {
@PrimaryColumn({ generated: "increment", type: "int" })
id: number;
@Column({ type: "varchar", length: 255, unique: true })
award: string;
@OneToMany(() => memberAwards, (member) => member.award)
members: memberAwards[];
}