education controller, service, command
This commit is contained in:
parent
5368a96d0f
commit
fded8a663a
29 changed files with 884 additions and 5 deletions
17
src/entity/configuration/education.ts
Normal file
17
src/entity/configuration/education.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
|
||||
import { memberEducations } from "../club/member/memberEducations";
|
||||
|
||||
@Entity()
|
||||
export class education {
|
||||
@PrimaryColumn({ generated: "increment", type: "int" })
|
||||
id: number;
|
||||
|
||||
@Column({ type: "varchar", length: 255, unique: true })
|
||||
education: string;
|
||||
|
||||
@Column({ type: "varchar", length: 255, nullable: true })
|
||||
description?: string;
|
||||
|
||||
@OneToMany(() => memberEducations, (memberEducations) => memberEducations.education)
|
||||
members: memberEducations[];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue