From 991e954580a2899e38d33b71d6afa109554233b4 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:11:27 +0700 Subject: [PATCH] chore: format --- src/entities/ProfileEducation.ts | 10 ++++++---- src/entities/ProfileInsignia.ts | 19 +++++++++++-------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/entities/ProfileEducation.ts b/src/entities/ProfileEducation.ts index bc96e7da..974d68ab 100644 --- a/src/entities/ProfileEducation.ts +++ b/src/entities/ProfileEducation.ts @@ -115,7 +115,7 @@ export class ProfileEducation extends EntityBase { @Column({ nullable: true, comment: "ระดับศึกษา", - type: "text", // ใช้ "text" แทน "string" เพื่อรองรับ long text + type: "text", // ใช้ "text" แทน "string" เพื่อรองรับ long text default: null, }) educationLevel: string; @@ -164,14 +164,16 @@ export class ProfileEducation extends EntityBase { default: null, }) isEducation: boolean; - - @OneToMany(() => ProfileEducationHistory, (profileEducationHistory) => profileEducationHistory.histories) + + @OneToMany( + () => ProfileEducationHistory, + (profileEducationHistory) => profileEducationHistory.histories, + ) profileEducationHistories: ProfileEducationHistory[]; @ManyToOne(() => Profile, (profile) => profile.profileEducations) @JoinColumn({ name: "profileId" }) profile: Profile; - } export class CreateProfileEducation { diff --git a/src/entities/ProfileInsignia.ts b/src/entities/ProfileInsignia.ts index 1d7cdc22..cc7c1298 100644 --- a/src/entities/ProfileInsignia.ts +++ b/src/entities/ProfileInsignia.ts @@ -47,7 +47,7 @@ export class ProfileInsignia extends EntityBase { default: null, }) section: string; - + @Column({ nullable: true, length: 30, @@ -63,7 +63,7 @@ export class ProfileInsignia extends EntityBase { default: null, }) receiveDate: Date; - + @Column({ nullable: true, length: 40, @@ -71,7 +71,7 @@ export class ProfileInsignia extends EntityBase { default: null, }) insigniaId: string; - + @Column({ nullable: true, comment: "ประเภท", @@ -127,7 +127,10 @@ export class ProfileInsignia extends EntityBase { }) note: string; - @OneToMany(() => ProfileInsigniaHistory, (profileInsigniaHistory) => profileInsigniaHistory.histories) + @OneToMany( + () => ProfileInsigniaHistory, + (profileInsigniaHistory) => profileInsigniaHistory.histories, + ) profileInsigniaHistories: ProfileInsigniaHistory[]; @ManyToOne(() => Profile, (profile) => profile.profileInsignias) @@ -141,7 +144,7 @@ export class CreateProfileInsignia { @Column() isActive: boolean; - + @Column() year: number; @@ -153,16 +156,16 @@ export class CreateProfileInsignia { @Column() section: string | null; - + @Column() page: string | null; @Column() receiveDate: Date | null; - + @Column("uuid") insigniaId: string | null; - + @Column() insigniaType: string | null;