This commit is contained in:
DESKTOP-2S5P7D1\Windows 10 2024-12-04 17:25:34 +07:00
commit 925c5d1ab2
60 changed files with 18843 additions and 0 deletions

51
src/entities/Meeting.ts Normal file
View 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>;