Merge branch 'dev/methapon' into develop

This commit is contained in:
Methapon2001 2024-03-18 15:11:36 +07:00
commit be29cbc465
4 changed files with 29 additions and 12 deletions

View file

@ -70,6 +70,7 @@ export class ProfileEducationsController extends Controller {
educationLevelId: "string",
positionPath: "string",
positionPathId: "string",
note: "string",
isDate: true,
isEducation: true,
},
@ -113,6 +114,7 @@ export class ProfileEducationsController extends Controller {
educationLevelId: "string",
positionPath: "string",
positionPathId: "string",
note: "string",
isDate: true,
isEducation: true,
profileEducationId: "f6c693b4-1a9b-4fbe-95c5-ed4da50d35b6",
@ -142,6 +144,7 @@ export class ProfileEducationsController extends Controller {
educationLevelId: "string",
positionPath: "string",
positionPathId: "string",
note: "string",
isDate: true,
isEducation: true,
profileEducationId: "f6c693b4-1a9b-4fbe-95c5-ed4da50d35b6",

View file

@ -61,6 +61,7 @@ export class ProfileInsigniaController extends Controller {
volumeNo: "string",
refCommandDate: "2024-03-12T10:05:02.000Z",
refCommandNo: "string",
note: "string",
},
],
})
@ -96,6 +97,7 @@ export class ProfileInsigniaController extends Controller {
volumeNo: "volumeNo",
refCommandDate: "2024-03-12T10:05:44.000Z",
refCommandNo: "refCommandNo",
note: "string",
profileInsigniaId: "c9d4dd52-25f5-491a-852d-28bfe00d66cb",
},
{
@ -120,6 +122,7 @@ export class ProfileInsigniaController extends Controller {
volumeNo: "string",
refCommandDate: "2024-03-12T10:05:02.000Z",
refCommandNo: "string",
note: "string",
profileInsigniaId: "c9d4dd52-25f5-491a-852d-28bfe00d66cb",
},
],

View file

@ -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 {
@ -234,6 +236,9 @@ export class CreateProfileEducation {
@Column()
isEducation: boolean | null;
@Column()
note: string | null;
}
export type UpdateProfileEducation = Partial<CreateProfileEducation>;

View file

@ -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;
@ -180,6 +183,9 @@ export class CreateProfileInsignia {
@Column()
refCommandNo: string | null;
@Column()
note: string | null;
}
export type UpdateProfileInsignia = Partial<CreateProfileInsignia>;