crud profile discip,duty,nopaid,other
This commit is contained in:
parent
1d48bb06ee
commit
13fc7945e5
9 changed files with 706 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue