fix: ลบ column ไม่ได้ใช้ออก
This commit is contained in:
parent
61b166cabc
commit
8b3398e7f7
6 changed files with 14 additions and 84 deletions
|
|
@ -13,16 +13,10 @@ export class ProfileTraining extends EntityBase {
|
|||
})
|
||||
profileId: string;
|
||||
|
||||
@Column({
|
||||
comment: "สถานะการใช้งาน",
|
||||
default: false,
|
||||
})
|
||||
isActive: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "วันเริ่มต้นการฝึกอบรม/ดูงาน",
|
||||
comment: "วันเริ่มต้นการฝึกอบรม/ดูงาน ",
|
||||
default: null,
|
||||
})
|
||||
startDate: Date;
|
||||
|
|
@ -30,7 +24,7 @@ export class ProfileTraining extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "วันสิ้นสุดการฝึกอบรม/ดูงาน",
|
||||
comment: "วันสิ้นสุดการฝึกอบรม/ดูงาน ",
|
||||
default: null,
|
||||
})
|
||||
endDate: Date;
|
||||
|
|
@ -38,7 +32,7 @@ export class ProfileTraining extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 200,
|
||||
comment: "เลขที่คำสั่ง/เลขที่หนังสืออนุมัติ",
|
||||
comment: "เลขที่คำสั่ง/เลขที่หนังสืออนุมัติ ",
|
||||
default: null,
|
||||
})
|
||||
numberOrder: string;
|
||||
|
|
@ -46,7 +40,7 @@ export class ProfileTraining extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 200,
|
||||
comment: "หัวข้อการฝึกอบรม/ดูงาน",
|
||||
comment: "หัวข้อการฝึกอบรม/ดูงาน ",
|
||||
default: null,
|
||||
})
|
||||
topic: string;
|
||||
|
|
@ -54,7 +48,7 @@ export class ProfileTraining extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 200,
|
||||
comment: "สถานที่ฝึกอบรม/ดูงาน",
|
||||
comment: "สถานที่ฝึกอบรม/ดูงาน ",
|
||||
default: null,
|
||||
})
|
||||
place: string;
|
||||
|
|
@ -62,7 +56,7 @@ export class ProfileTraining extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
type: "datetime",
|
||||
comment: "คำสั่งลงวันที่/หนังสืออนุมัติลงวันที่",
|
||||
comment: "คำสั่งลงวันที่/หนังสืออนุมัติลงวันที่ ",
|
||||
default: null,
|
||||
})
|
||||
dateOrder: Date;
|
||||
|
|
@ -70,7 +64,7 @@ export class ProfileTraining extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 200,
|
||||
comment: "หน่วยงานที่รับผิดชอบจัดการฝึกอบรม/ดูงาน",
|
||||
comment: "หน่วยงานที่รับผิดชอบจัดการฝึกอบรม/ดูงาน ",
|
||||
default: null,
|
||||
})
|
||||
department: string;
|
||||
|
|
@ -78,7 +72,7 @@ export class ProfileTraining extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 200,
|
||||
comment: "รวมระยะเวลาในการฝึกอบรม/ดูงาน",
|
||||
comment: "รวมระยะเวลาในการฝึกอบรม/ดูงาน ",
|
||||
default: null,
|
||||
})
|
||||
duration: string;
|
||||
|
|
@ -86,25 +80,18 @@ export class ProfileTraining extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 200,
|
||||
comment: "ชื่อโครงการ/หลักสูตรการฝึกอบรม",
|
||||
comment: "ชื่อโครงการ/หลักสูตรการฝึกอบรม ",
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ปีที่อบรม (พ.ศ.)",
|
||||
comment: "ปีที่อบรม (พ.ศ.) ",
|
||||
default: null,
|
||||
})
|
||||
yearly: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลาการศึกษา",
|
||||
default: null,
|
||||
})
|
||||
isDate: boolean;
|
||||
|
||||
@OneToMany(
|
||||
() => ProfileTrainingHistory,
|
||||
(profileTrainingHistory) => profileTrainingHistory.histories,
|
||||
|
|
@ -118,7 +105,6 @@ export class ProfileTraining extends EntityBase {
|
|||
|
||||
export class CreateProfileTraining {
|
||||
profileId: string | null;
|
||||
isActive: boolean;
|
||||
startDate: Date | null;
|
||||
endDate: Date | null;
|
||||
numberOrder: string | null;
|
||||
|
|
@ -129,11 +115,9 @@ export class CreateProfileTraining {
|
|||
duration: string | null;
|
||||
name: string | null;
|
||||
yearly: number | null;
|
||||
isDate: boolean | null;
|
||||
}
|
||||
|
||||
export type UpdateProfileTraining = {
|
||||
isActive?: boolean;
|
||||
startDate?: Date | null;
|
||||
endDate?: Date | null;
|
||||
numberOrder?: string | null;
|
||||
|
|
@ -144,5 +128,4 @@ export type UpdateProfileTraining = {
|
|||
duration?: string | null;
|
||||
name?: string | null;
|
||||
yearly?: number | null;
|
||||
isDate?: boolean | null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue