fix: ลบ isActive
This commit is contained in:
parent
c13ca10a3e
commit
23f8382928
18 changed files with 36 additions and 165 deletions
|
|
@ -13,12 +13,6 @@ export class ProfileAbility extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "หมายเหตุ",
|
comment: "หมายเหตุ",
|
||||||
|
|
@ -80,7 +74,6 @@ export class ProfileAbility extends EntityBase {
|
||||||
|
|
||||||
export class CreateProfileAbility {
|
export class CreateProfileAbility {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
remark: string | null;
|
remark: string | null;
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
reference: string | null;
|
reference: string | null;
|
||||||
|
|
@ -90,7 +83,6 @@ export class CreateProfileAbility {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileAbility = {
|
export type UpdateProfileAbility = {
|
||||||
isActive?: boolean;
|
|
||||||
remark?: string | null;
|
remark?: string | null;
|
||||||
detail?: string | null;
|
detail?: string | null;
|
||||||
reference?: string | null;
|
reference?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,6 @@ import { ProfileAbility } from "./ProfileAbility";
|
||||||
|
|
||||||
@Entity("profileAbilityHistory")
|
@Entity("profileAbilityHistory")
|
||||||
export class ProfileAbilityHistory extends EntityBase {
|
export class ProfileAbilityHistory extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "หมายเหตุ",
|
comment: "หมายเหตุ",
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,6 @@ export class ProfileCertificate extends EntityBase {
|
||||||
})
|
})
|
||||||
expireDate: Date;
|
expireDate: Date;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -34,7 +28,7 @@ export class ProfileCertificate extends EntityBase {
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
issueDate: Date;
|
issueDate: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "เลขที่ใบอนุญาต",
|
comment: "เลขที่ใบอนุญาต",
|
||||||
|
|
@ -50,7 +44,7 @@ export class ProfileCertificate extends EntityBase {
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
certificateType: string;
|
certificateType: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "หน่วยงานผู้ออกใบอนุญาต",
|
comment: "หน่วยงานผู้ออกใบอนุญาต",
|
||||||
|
|
@ -59,19 +53,20 @@ export class ProfileCertificate extends EntityBase {
|
||||||
})
|
})
|
||||||
issuer: string;
|
issuer: string;
|
||||||
|
|
||||||
@OneToMany(() => ProfileCertificateHistory, (profileCertificateHistory) => profileCertificateHistory.histories)
|
@OneToMany(
|
||||||
|
() => ProfileCertificateHistory,
|
||||||
|
(profileCertificateHistory) => profileCertificateHistory.histories,
|
||||||
|
)
|
||||||
profileCertificateHistories: ProfileCertificateHistory[];
|
profileCertificateHistories: ProfileCertificateHistory[];
|
||||||
|
|
||||||
@ManyToOne(() => Profile, (profile) => profile.profileCertificates)
|
@ManyToOne(() => Profile, (profile) => profile.profileCertificates)
|
||||||
@JoinColumn({ name: "profileId" })
|
@JoinColumn({ name: "profileId" })
|
||||||
profile: Profile;
|
profile: Profile;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileCertificate {
|
export class CreateProfileCertificate {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
expireDate: Date | null;
|
expireDate: Date | null;
|
||||||
isActive: boolean;
|
|
||||||
issueDate: Date | null;
|
issueDate: Date | null;
|
||||||
certificateNo: string | null;
|
certificateNo: string | null;
|
||||||
certificateType: string | null;
|
certificateType: string | null;
|
||||||
|
|
@ -80,7 +75,6 @@ export class CreateProfileCertificate {
|
||||||
|
|
||||||
export type UpdateProfileCertificate = {
|
export type UpdateProfileCertificate = {
|
||||||
expireDate?: Date | null;
|
expireDate?: Date | null;
|
||||||
isActive?: boolean;
|
|
||||||
issueDate?: Date | null;
|
issueDate?: Date | null;
|
||||||
certificateNo?: string | null;
|
certificateNo?: string | null;
|
||||||
certificateType?: string | null;
|
certificateType?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import { ProfileCertificate } from "./ProfileCertificate";
|
||||||
|
|
||||||
@Entity("profileCertificateHistory")
|
@Entity("profileCertificateHistory")
|
||||||
export class ProfileCertificateHistory extends EntityBase {
|
export class ProfileCertificateHistory extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -14,12 +13,6 @@ export class ProfileCertificateHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
expireDate: Date;
|
expireDate: Date;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -27,7 +20,7 @@ export class ProfileCertificateHistory extends EntityBase {
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
issueDate: Date;
|
issueDate: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "เลขที่ใบอนุญาต",
|
comment: "เลขที่ใบอนุญาต",
|
||||||
|
|
@ -43,7 +36,7 @@ export class ProfileCertificateHistory extends EntityBase {
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
certificateType: string;
|
certificateType: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "หน่วยงานผู้ออกใบอนุญาต",
|
comment: "หน่วยงานผู้ออกใบอนุญาต",
|
||||||
|
|
@ -60,35 +53,32 @@ export class ProfileCertificateHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
profileCertificateId: string;
|
profileCertificateId: string;
|
||||||
|
|
||||||
@ManyToOne(() => ProfileCertificate, (profileCertificate) => profileCertificate.profileCertificateHistories)
|
@ManyToOne(
|
||||||
|
() => ProfileCertificate,
|
||||||
|
(profileCertificate) => profileCertificate.profileCertificateHistories,
|
||||||
|
)
|
||||||
@JoinColumn({ name: "profileCertificateId" })
|
@JoinColumn({ name: "profileCertificateId" })
|
||||||
histories: ProfileCertificate;
|
histories: ProfileCertificate;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileCertificateHistory {
|
export class CreateProfileCertificateHistory {
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
expireDate: Date | null;
|
expireDate: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
issueDate: Date | null;
|
issueDate: Date | null;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
certificateNo: string | null;
|
certificateNo: string | null;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
certificateType: string | null;
|
certificateType: string | null;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
issuer: string | null;
|
issuer: string | null;
|
||||||
|
|
||||||
@Column("uuid")
|
@Column("uuid")
|
||||||
profileCertificateId: string | null;
|
profileCertificateId: string | null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileCertificateHistory = Partial<CreateProfileCertificateHistory>;
|
export type UpdateProfileCertificateHistory = Partial<CreateProfileCertificateHistory>;
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,6 @@ export class ProfileChangeName extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
|
@ -68,17 +62,19 @@ export class ProfileChangeName extends EntityBase {
|
||||||
})
|
})
|
||||||
documentId: string;
|
documentId: string;
|
||||||
|
|
||||||
@OneToMany(() => ProfileChangeNameHistory, (profileChangeNameHistory) => profileChangeNameHistory.histories)
|
@OneToMany(
|
||||||
profileChangeNameHistories: ProfileChangeNameHistory[];
|
() => ProfileChangeNameHistory,
|
||||||
|
(profileChangeNameHistory) => profileChangeNameHistory.histories,
|
||||||
|
)
|
||||||
|
profileChangeNameHistories: ProfileChangeNameHistory[];
|
||||||
|
|
||||||
// @ManyToOne(() => Profile, (profile) => profile.profileChangeName)
|
// @ManyToOne(() => Profile, (profile) => profile.profileChangeName)
|
||||||
// @JoinColumn({ name: "profileId" })
|
// @JoinColumn({ name: "profileId" })
|
||||||
// profile: Profile;
|
// profile: Profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileChangeName {
|
export class CreateProfileChangeName {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
prefixId: string | null;
|
prefixId: string | null;
|
||||||
prefix: string | null;
|
prefix: string | null;
|
||||||
firstName: string | null;
|
firstName: string | null;
|
||||||
|
|
@ -88,7 +84,6 @@ export class CreateProfileChangeName {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileChangeName = {
|
export type UpdateProfileChangeName = {
|
||||||
isActive?: boolean;
|
|
||||||
prefixId?: string | null;
|
prefixId?: string | null;
|
||||||
prefix?: string | null;
|
prefix?: string | null;
|
||||||
firstName?: string | null;
|
firstName?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,6 @@ import { ProfileChangeName } from "./ProfileChangeName";
|
||||||
|
|
||||||
@Entity("profileChangeNameHistory")
|
@Entity("profileChangeNameHistory")
|
||||||
export class ProfileChangeNameHistory extends EntityBase {
|
export class ProfileChangeNameHistory extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
|
@ -68,15 +61,16 @@ export class ProfileChangeNameHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
profileChangeNameId: string;
|
profileChangeNameId: string;
|
||||||
|
|
||||||
@ManyToOne(() => ProfileChangeName, (profileChangeName) => profileChangeName.profileChangeNameHistories)
|
@ManyToOne(
|
||||||
|
() => ProfileChangeName,
|
||||||
|
(profileChangeName) => profileChangeName.profileChangeNameHistories,
|
||||||
|
)
|
||||||
@JoinColumn({ name: "profileChangeNameId" })
|
@JoinColumn({ name: "profileChangeNameId" })
|
||||||
histories: ProfileChangeName;
|
histories: ProfileChangeName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileChangeNameHistory {
|
export class CreateProfileChangeNameHistory {
|
||||||
profileChangeNameId: string | null;
|
profileChangeNameId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
prefixId: string | null;
|
prefixId: string | null;
|
||||||
prefix: string | null;
|
prefix: string | null;
|
||||||
firstName: string | null;
|
firstName: string | null;
|
||||||
|
|
@ -87,7 +81,6 @@ export class CreateProfileChangeNameHistory {
|
||||||
|
|
||||||
export type UpdateProfileChangeNameHistory = {
|
export type UpdateProfileChangeNameHistory = {
|
||||||
profileChangeNameId?: string | null;
|
profileChangeNameId?: string | null;
|
||||||
isActive?: boolean;
|
|
||||||
prefixId?: string | null;
|
prefixId?: string | null;
|
||||||
prefix?: string | null;
|
prefix?: string | null;
|
||||||
firstName?: string | null;
|
firstName?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,6 @@ export class ProfileDiscipline extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ระดับความผิด",
|
comment: "ระดับความผิด",
|
||||||
|
|
@ -80,7 +74,7 @@ export class ProfileDiscipline extends EntityBase {
|
||||||
export class CreateProfileDiscipline {
|
export class CreateProfileDiscipline {
|
||||||
date: Date | null;
|
date: Date | null;
|
||||||
profileId: string;
|
profileId: string;
|
||||||
isActive: boolean | null;
|
|
||||||
level: string | null;
|
level: string | null;
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
refCommandDate: Date | null;
|
refCommandDate: Date | null;
|
||||||
|
|
@ -90,7 +84,7 @@ export class CreateProfileDiscipline {
|
||||||
|
|
||||||
export type UpdateProfileDiscipline = {
|
export type UpdateProfileDiscipline = {
|
||||||
date?: Date | null;
|
date?: Date | null;
|
||||||
isActive?: boolean | null;
|
|
||||||
level?: string | null;
|
level?: string | null;
|
||||||
detail?: string | null;
|
detail?: string | null;
|
||||||
refCommandDate?: Date | null;
|
refCommandDate?: Date | null;
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,6 @@ export class ProfileDisciplineHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
profileDisciplineId: string;
|
profileDisciplineId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ระดับความผิด",
|
comment: "ระดับความผิด",
|
||||||
|
|
@ -41,7 +35,7 @@ export class ProfileDisciplineHistory extends EntityBase {
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
detail: string;
|
detail: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -66,7 +60,10 @@ export class ProfileDisciplineHistory extends EntityBase {
|
||||||
})
|
})
|
||||||
unStigma: string;
|
unStigma: string;
|
||||||
|
|
||||||
@ManyToOne(() => ProfileDiscipline, (profileDiscipline) => profileDiscipline.profileDisciplineHistories)
|
@ManyToOne(
|
||||||
|
() => ProfileDiscipline,
|
||||||
|
(profileDiscipline) => profileDiscipline.profileDisciplineHistories,
|
||||||
|
)
|
||||||
@JoinColumn({ name: "profileDisciplineId" })
|
@JoinColumn({ name: "profileDisciplineId" })
|
||||||
histories: ProfileDiscipline;
|
histories: ProfileDiscipline;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,6 @@ export class ProfileDuty extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -77,7 +71,7 @@ export class ProfileDuty extends EntityBase {
|
||||||
|
|
||||||
export class CreateProfileDuty {
|
export class CreateProfileDuty {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
dateStart: Date | null;
|
dateStart: Date | null;
|
||||||
dateEnd: Date | null;
|
dateEnd: Date | null;
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
|
|
@ -87,7 +81,6 @@ export class CreateProfileDuty {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileDuty = {
|
export type UpdateProfileDuty = {
|
||||||
isActive?: boolean;
|
|
||||||
dateStart?: Date | null;
|
dateStart?: Date | null;
|
||||||
dateEnd?: Date | null;
|
dateEnd?: Date | null;
|
||||||
detail?: string | null;
|
detail?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,6 @@ import { ProfileDuty } from "./ProfileDuty";
|
||||||
|
|
||||||
@Entity("profileDutyHistory")
|
@Entity("profileDutyHistory")
|
||||||
export class ProfileDutyHistory extends EntityBase {
|
export class ProfileDutyHistory extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,6 @@ export class ProfileEducation extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ประเทศ",
|
comment: "ประเทศ",
|
||||||
|
|
@ -178,7 +172,7 @@ export class ProfileEducation extends EntityBase {
|
||||||
|
|
||||||
export class CreateProfileEducation {
|
export class CreateProfileEducation {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
country: string | null;
|
country: string | null;
|
||||||
degree: string | null;
|
degree: string | null;
|
||||||
duration: string | null;
|
duration: string | null;
|
||||||
|
|
@ -201,7 +195,6 @@ export class CreateProfileEducation {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileEducation = {
|
export type UpdateProfileEducation = {
|
||||||
isActive?: boolean;
|
|
||||||
country?: string | null;
|
country?: string | null;
|
||||||
degree?: string | null;
|
degree?: string | null;
|
||||||
duration?: string | null;
|
duration?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,6 @@ import { ProfileEducation } from "./ProfileEducation";
|
||||||
|
|
||||||
@Entity("profileEducationHistory")
|
@Entity("profileEducationHistory")
|
||||||
export class ProfileEducationHistory extends EntityBase {
|
export class ProfileEducationHistory extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "ประเทศ",
|
comment: "ประเทศ",
|
||||||
|
|
@ -174,9 +168,6 @@ export class ProfileEducationHistory extends EntityBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileEducationHistory {
|
export class CreateProfileEducationHistory {
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
country: string | null;
|
country: string | null;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,6 @@ import { Profile } from "./Profile";
|
||||||
|
|
||||||
@Entity("profileFamilyHistory")
|
@Entity("profileFamilyHistory")
|
||||||
export class ProfileFamilyHistory extends EntityBase {
|
export class ProfileFamilyHistory extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
default: null,
|
default: null,
|
||||||
|
|
@ -170,12 +164,6 @@ export class ProfileFamilyHistory extends EntityBase {
|
||||||
|
|
||||||
@Entity("profileChildren")
|
@Entity("profileChildren")
|
||||||
export class ProfileChildren extends EntityBase {
|
export class ProfileChildren extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
default: null,
|
default: null,
|
||||||
|
|
@ -262,7 +250,6 @@ export class ProfileChildrenHistory extends ProfileChildren {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CreateChildren = {
|
export type CreateChildren = {
|
||||||
isActive: boolean;
|
|
||||||
childrenCareer: string;
|
childrenCareer: string;
|
||||||
childrenFirstName: string;
|
childrenFirstName: string;
|
||||||
childrenLastName: string;
|
childrenLastName: string;
|
||||||
|
|
@ -273,7 +260,6 @@ export type CreateChildren = {
|
||||||
|
|
||||||
export type UpdateChildren = {
|
export type UpdateChildren = {
|
||||||
id: string;
|
id: string;
|
||||||
isActive?: boolean | null;
|
|
||||||
childrenCareer?: string | null;
|
childrenCareer?: string | null;
|
||||||
childrenFirstName?: string | null;
|
childrenFirstName?: string | null;
|
||||||
childrenLastName?: string | null;
|
childrenLastName?: string | null;
|
||||||
|
|
@ -283,7 +269,6 @@ export type UpdateChildren = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreateProfileFamily = {
|
export type CreateProfileFamily = {
|
||||||
isActive: boolean | null;
|
|
||||||
couple: boolean | null;
|
couple: boolean | null;
|
||||||
couplePrefix: string | null;
|
couplePrefix: string | null;
|
||||||
coupleFirstName: string | null;
|
coupleFirstName: string | null;
|
||||||
|
|
@ -310,7 +295,6 @@ export type CreateProfileFamily = {
|
||||||
|
|
||||||
export type UpdateProfileFamily = {
|
export type UpdateProfileFamily = {
|
||||||
id: string;
|
id: string;
|
||||||
isActive?: boolean | null;
|
|
||||||
couple?: boolean | null;
|
couple?: boolean | null;
|
||||||
couplePrefix?: string | null;
|
couplePrefix?: string | null;
|
||||||
coupleFirstName?: string | null;
|
coupleFirstName?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,6 @@ import { Profile } from "./Profile";
|
||||||
|
|
||||||
@Entity("profileGovernment")
|
@Entity("profileGovernment")
|
||||||
export class ProfileGovernment extends EntityBase {
|
export class ProfileGovernment extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 40,
|
length: 40,
|
||||||
|
|
@ -172,7 +166,6 @@ export class ProfileGovernment extends EntityBase {
|
||||||
positionEmployeePositionSide: string;
|
positionEmployeePositionSide: string;
|
||||||
}
|
}
|
||||||
export type CreateProfileGovernment = {
|
export type CreateProfileGovernment = {
|
||||||
isActive: boolean | null;
|
|
||||||
positionId: string | null;
|
positionId: string | null;
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
profile: Profile | null;
|
profile: Profile | null;
|
||||||
|
|
@ -199,7 +192,6 @@ export type CreateProfileGovernment = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UpdateProfileGovernment = {
|
export type UpdateProfileGovernment = {
|
||||||
isActive?: boolean | null;
|
|
||||||
positionId?: string | null;
|
positionId?: string | null;
|
||||||
profile?: Profile | null;
|
profile?: Profile | null;
|
||||||
posNoId?: string | null;
|
posNoId?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,6 @@ export class ProfileInsignia extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
comment: "ปีที่ยื่นขอ",
|
comment: "ปีที่ยื่นขอ",
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,6 @@ import { Insignia } from "./Insignia";
|
||||||
|
|
||||||
@Entity("profileInsigniaHistory")
|
@Entity("profileInsigniaHistory")
|
||||||
export class ProfileInsigniaHistory extends EntityBase {
|
export class ProfileInsigniaHistory extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({ comment: "ปีที่ยื่นขอ" })
|
@Column({ comment: "ปีที่ยื่นขอ" })
|
||||||
year: number;
|
year: number;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,6 @@ export class ProfileNopaid extends EntityBase {
|
||||||
})
|
})
|
||||||
profileId: string;
|
profileId: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
@ -69,7 +63,7 @@ export class ProfileNopaid extends EntityBase {
|
||||||
|
|
||||||
export class CreateProfileNopaid {
|
export class CreateProfileNopaid {
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
isActive: boolean;
|
|
||||||
date: Date | null;
|
date: Date | null;
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
reference: string | null;
|
reference: string | null;
|
||||||
|
|
@ -78,7 +72,6 @@ export class CreateProfileNopaid {
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileNopaid = {
|
export type UpdateProfileNopaid = {
|
||||||
isActive?: boolean;
|
|
||||||
date?: Date | null;
|
date?: Date | null;
|
||||||
detail?: string | null;
|
detail?: string | null;
|
||||||
reference?: string | null;
|
reference?: string | null;
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,6 @@ import { ProfileNopaid } from "./ProfileNopaid";
|
||||||
|
|
||||||
@Entity("profileNopaidHistory")
|
@Entity("profileNopaidHistory")
|
||||||
export class ProfileNopaidHistory extends EntityBase {
|
export class ProfileNopaidHistory extends EntityBase {
|
||||||
@Column({
|
|
||||||
comment: "สถานะการใช้งาน",
|
|
||||||
default: false,
|
|
||||||
})
|
|
||||||
isActive: boolean;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: "datetime",
|
type: "datetime",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue