crud profile discip,duty,nopaid,other

This commit is contained in:
AdisakKanthawilang 2024-03-13 15:33:02 +07:00
parent 1d48bb06ee
commit 13fc7945e5
9 changed files with 706 additions and 5 deletions

View file

@ -10,7 +10,7 @@ export class ProfileOtherHistory extends EntityBase {
comment: "คีย์นอก(FK)ของตาราง Profile",
default: null,
})
profileId: string;
profileOtherId: string;
@Column({
comment: "สถานะการใช้งาน",
@ -35,13 +35,13 @@ export class ProfileOtherHistory extends EntityBase {
date: Date;
@ManyToOne(() => ProfileOther, (profileOther) => profileOther.profileOtherHistories)
@JoinColumn({ name: "profileId" })
@JoinColumn({ name: "profileOtherId" })
histories: ProfileOther;
}
export class CreateProfileOtherHistory {
@Column("uuid")
profileId: string | null;
profileOtherId: string | null;
@Column()
isActive: boolean;