2024-08-19 10:47:10 +00:00
|
|
|
import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
|
|
|
|
import { member_awards } from "./member_awards";
|
|
|
|
|
|
|
|
@Entity()
|
|
|
|
export class award {
|
2024-08-21 12:13:39 +00:00
|
|
|
@PrimaryColumn({ generated: "increment", type: "int" })
|
|
|
|
id: number;
|
2024-08-19 10:47:10 +00:00
|
|
|
|
|
|
|
@Column({ type: "varchar", length: 255 })
|
|
|
|
award: string;
|
|
|
|
|
|
|
|
@OneToMany(() => member_awards, (member) => member.award, {
|
|
|
|
onDelete: "RESTRICT",
|
|
|
|
})
|
|
|
|
members: member_awards[];
|
|
|
|
}
|