chore: format
This commit is contained in:
parent
7bc2915788
commit
991e954580
2 changed files with 17 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue