Merge branch 'net-dav' into develop

This commit is contained in:
Net 2024-03-21 10:21:36 +07:00
commit 2d15c5d23f
6 changed files with 14 additions and 84 deletions

View file

@ -13,12 +13,6 @@ export class ProfileHonor extends EntityBase {
}) })
profileId: string; profileId: string;
@Column({
comment: "สถานะการใช้งาน",
default: false,
})
isActive: boolean;
@Column({ @Column({
nullable: true, nullable: true,
length: 2000, length: 2000,
@ -59,13 +53,6 @@ export class ProfileHonor extends EntityBase {
}) })
refCommandNo: string; refCommandNo: string;
@Column({
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา",
default: null,
})
isDate: boolean;
@OneToMany(() => ProfileHonorHistory, (profileHonorHistory) => profileHonorHistory.histories) @OneToMany(() => ProfileHonorHistory, (profileHonorHistory) => profileHonorHistory.histories)
profileHonorHistories: ProfileHonorHistory[]; profileHonorHistories: ProfileHonorHistory[];
@ -76,21 +63,17 @@ export class ProfileHonor extends EntityBase {
export class CreateProfileHonor { export class CreateProfileHonor {
profileId: string | null; profileId: string | null;
isActive: boolean;
detail: string | null; detail: string | null;
issueDate: Date | null; issueDate: Date | null;
issuer: string | null; issuer: string | null;
refCommandDate: Date | null; refCommandDate: Date | null;
refCommandNo: string | null; refCommandNo: string | null;
isDate: boolean | null;
} }
export type UpdateProfileHonor = { export type UpdateProfileHonor = {
isActive?: boolean;
detail?: string | null; detail?: string | null;
issueDate?: Date | null; issueDate?: Date | null;
issuer?: string | null; issuer?: string | null;
refCommandDate?: Date | null; refCommandDate?: Date | null;
refCommandNo?: string | null; refCommandNo?: string | null;
isDate?: boolean | null;
}; };

View file

@ -57,14 +57,6 @@ export class ProfileInsignia extends EntityBase {
}) })
page: string; page: string;
@Column({
nullable: true,
type: "datetime",
comment: "ลงวันที่",
default: null,
})
receiveDate: Date;
@Column({ @Column({
nullable: true, nullable: true,
type: "datetime", type: "datetime",
@ -136,13 +128,13 @@ export class ProfileInsignia extends EntityBase {
export class CreateProfileInsignia { export class CreateProfileInsignia {
profileId: string | null; profileId: string | null;
isActive: boolean;
year: number; year: number;
no: string | null; no: string | null;
volume: string | null; volume: string | null;
section: string | null; section: string | null;
page: string | null; page: string | null;
receiveDate: Date | null;
insigniaId: string; insigniaId: string;
dateAnnounce: Date | null; dateAnnounce: Date | null;
issue: string | null; issue: string | null;
@ -153,13 +145,12 @@ export class CreateProfileInsignia {
} }
export type UpdateProfileInsignia = { export type UpdateProfileInsignia = {
isActive?: boolean;
year?: number; year?: number;
no?: string | null; no?: string | null;
volume?: string | null; volume?: string | null;
section?: string | null; section?: string | null;
page?: string | null; page?: string | null;
receiveDate?: Date | null;
insigniaId?: string | null; insigniaId?: string | null;
insigniaType?: string | null; insigniaType?: string | null;
dateAnnounce?: Date | null; dateAnnounce?: Date | null;

View file

@ -13,12 +13,6 @@ export class ProfileOther extends EntityBase {
}) })
profileId: string; profileId: string;
@Column({
comment: "สถานะการใช้งาน",
default: false,
})
isActive: boolean;
@Column({ @Column({
nullable: true, nullable: true,
comment: "รายละเอียด", comment: "รายละเอียด",
@ -45,13 +39,11 @@ export class ProfileOther extends EntityBase {
export class CreateProfileOther { export class CreateProfileOther {
profileId: string | null; profileId: string | null;
isActive: boolean;
detail: string | null; detail: string | null;
date: Date | null; date: Date | null;
} }
export type UpdateProfileOther = { export type UpdateProfileOther = {
isActive?: boolean;
detail?: string | null; detail?: string | null;
date?: Date | null; date?: Date | null;
}; };

View file

@ -12,12 +12,6 @@ export class ProfileOtherHistory extends EntityBase {
}) })
profileOtherId: string; profileOtherId: string;
@Column({
comment: "สถานะการใช้งาน",
default: false,
})
isActive: boolean;
@Column({ @Column({
nullable: true, nullable: true,
comment: "รายละเอียด", comment: "รายละเอียด",

View file

@ -13,12 +13,6 @@ export class ProfileTraining extends EntityBase {
}) })
profileId: string; profileId: string;
@Column({
comment: "สถานะการใช้งาน",
default: false,
})
isActive: boolean;
@Column({ @Column({
nullable: true, nullable: true,
type: "datetime", type: "datetime",
@ -98,13 +92,6 @@ export class ProfileTraining extends EntityBase {
}) })
yearly: number; yearly: number;
@Column({
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา",
default: null,
})
isDate: boolean;
@OneToMany( @OneToMany(
() => ProfileTrainingHistory, () => ProfileTrainingHistory,
(profileTrainingHistory) => profileTrainingHistory.histories, (profileTrainingHistory) => profileTrainingHistory.histories,
@ -118,7 +105,6 @@ export class ProfileTraining extends EntityBase {
export class CreateProfileTraining { export class CreateProfileTraining {
profileId: string | null; profileId: string | null;
isActive: boolean;
startDate: Date | null; startDate: Date | null;
endDate: Date | null; endDate: Date | null;
numberOrder: string | null; numberOrder: string | null;
@ -129,11 +115,9 @@ export class CreateProfileTraining {
duration: string | null; duration: string | null;
name: string | null; name: string | null;
yearly: number | null; yearly: number | null;
isDate: boolean | null;
} }
export type UpdateProfileTraining = { export type UpdateProfileTraining = {
isActive?: boolean;
startDate?: Date | null; startDate?: Date | null;
endDate?: Date | null; endDate?: Date | null;
numberOrder?: string | null; numberOrder?: string | null;
@ -144,5 +128,4 @@ export type UpdateProfileTraining = {
duration?: string | null; duration?: string | null;
name?: string | null; name?: string | null;
yearly?: number | null; yearly?: number | null;
isDate?: boolean | null;
}; };

View file

@ -5,12 +5,6 @@ import { ProfileTraining } from "./ProfileTraining";
@Entity("profileTrainingHistory") @Entity("profileTrainingHistory")
export class ProfileTrainingHistory extends EntityBase { export class ProfileTrainingHistory extends EntityBase {
@Column({
comment: "สถานะการใช้งาน",
default: false,
})
isActive: boolean;
@Column({ @Column({
nullable: true, nullable: true,
type: "datetime", type: "datetime",
@ -98,13 +92,6 @@ export class ProfileTrainingHistory extends EntityBase {
}) })
profileTrainingId: string; profileTrainingId: string;
@Column({
nullable: true,
comment: "ประเภทช่วงเวลาการศึกษา",
default: null,
})
isDate: boolean;
@ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories) @ManyToOne(() => ProfileTraining, (profileTraining) => profileTraining.profileTrainingHistories)
@JoinColumn({ name: "profileTrainingId" }) @JoinColumn({ name: "profileTrainingId" })
histories: ProfileTraining; histories: ProfileTraining;