first
This commit is contained in:
commit
925c5d1ab2
60 changed files with 18843 additions and 0 deletions
51
src/entities/Meeting.ts
Normal file
51
src/entities/Meeting.ts
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
import {
|
||||
Entity,
|
||||
Column,
|
||||
ManyToMany,
|
||||
} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { Evaluation } from "./Evaluation";
|
||||
@Entity("meeting")
|
||||
export class Meeting extends EntityBase {
|
||||
@Column({ nullable: true, comment: "ชื่อการประชุม" })
|
||||
title: string;
|
||||
|
||||
@Column({ nullable: true, comment: "ครั้งที่" })
|
||||
round: string;
|
||||
|
||||
@Column({ nullable: true, comment: "วันเวลาเริ่มในการประชุม" })
|
||||
dateStart: Date;
|
||||
|
||||
@Column({ nullable: true, comment: "วันเวลาสิ้นสุดในการประชุม" })
|
||||
dateEnd: Date;
|
||||
|
||||
@Column({ nullable: true, comment: "ผลการพิจารณาของคณะกรรมการประเมินผลงานแต่ละคณะ" })
|
||||
result: string;
|
||||
|
||||
@Column({ nullable: true, comment: "ระยะเวลาในการแก้ไขผลงาน" })
|
||||
duration: string;
|
||||
|
||||
@ManyToMany(() => Evaluation, (evaluation) => evaluation.meetings)
|
||||
evaluations: Evaluation[];
|
||||
}
|
||||
|
||||
export class CreateMeeting {
|
||||
@Column()
|
||||
title: string;
|
||||
|
||||
@Column()
|
||||
round: string;
|
||||
|
||||
@Column()
|
||||
dateStart: Date;
|
||||
|
||||
@Column()
|
||||
dateEnd: Date;
|
||||
|
||||
@Column()
|
||||
result: string;
|
||||
|
||||
@Column()
|
||||
duration: string;
|
||||
}
|
||||
export type UpdateMeeting = Partial<Meeting>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue