duty
This commit is contained in:
parent
e1db0a0a73
commit
596b7f0b97
5 changed files with 48 additions and 1 deletions
|
|
@ -108,6 +108,15 @@ export class OrgChild1 extends EntityBase {
|
|||
})
|
||||
ancestorDNA: string;
|
||||
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 255,
|
||||
comment: "หน้าที่ความรับผิดชอบ",
|
||||
default: null,
|
||||
})
|
||||
duty: string;
|
||||
|
||||
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgChild1s)
|
||||
@JoinColumn({ name: "orgRevisionId" })
|
||||
orgRevision: OrgRevision;
|
||||
|
|
@ -156,6 +165,10 @@ export class CreateOrgChild1 {
|
|||
|
||||
@Column("uuid")
|
||||
orgRootId: string;
|
||||
|
||||
@Column()
|
||||
duty?: string;
|
||||
|
||||
}
|
||||
|
||||
export type UpdateOrgChild1 = Partial<CreateOrgChild1> & { orgChild1Rank?: OrgChild1Rank };
|
||||
|
|
|
|||
|
|
@ -113,6 +113,14 @@ export class OrgChild2 extends EntityBase {
|
|||
})
|
||||
ancestorDNA: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 255,
|
||||
comment: "หน้าที่ความรับผิดชอบ",
|
||||
default: null,
|
||||
})
|
||||
duty: string;
|
||||
|
||||
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgChild2s)
|
||||
@JoinColumn({ name: "orgRevisionId" })
|
||||
orgRevision: OrgRevision;
|
||||
|
|
@ -162,5 +170,9 @@ export class CreateOrgChild2 {
|
|||
|
||||
@Column("uuid")
|
||||
orgChild1Id: string;
|
||||
|
||||
@Column()
|
||||
duty?: string;
|
||||
|
||||
}
|
||||
export type UpdateOrgChild2 = Partial<CreateOrgChild2> & { orgChild2Rank?: OrgChild2Rank };
|
||||
|
|
|
|||
|
|
@ -120,6 +120,14 @@ export class OrgChild3 extends EntityBase {
|
|||
})
|
||||
ancestorDNA: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 255,
|
||||
comment: "หน้าที่ความรับผิดชอบ",
|
||||
default: null,
|
||||
})
|
||||
duty: string;
|
||||
|
||||
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgChild3s)
|
||||
@JoinColumn({ name: "orgRevisionId" })
|
||||
orgRevision: OrgRevision;
|
||||
|
|
@ -170,6 +178,9 @@ export class CreateOrgChild3 {
|
|||
|
||||
@Column("uuid")
|
||||
orgChild2Id: string;
|
||||
|
||||
@Column()
|
||||
duty?: string;
|
||||
}
|
||||
|
||||
export type UpdateOrgChild3 = Partial<CreateOrgChild3> & { orgChild3Rank?: OrgChild3Rank };
|
||||
|
|
|
|||
|
|
@ -125,6 +125,14 @@ export class OrgChild4 extends EntityBase {
|
|||
})
|
||||
ancestorDNA: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 255,
|
||||
comment: "หน้าที่ความรับผิดชอบ",
|
||||
default: null,
|
||||
})
|
||||
duty: string;
|
||||
|
||||
@ManyToOne(() => OrgRevision, (orgRevision) => orgRevision.orgChild4s)
|
||||
@JoinColumn({ name: "orgRevisionId" })
|
||||
orgRevision: OrgRevision;
|
||||
|
|
@ -176,5 +184,8 @@ export class CreateOrgChild4 {
|
|||
|
||||
@Column("uuid")
|
||||
orgChild3Id: string;
|
||||
|
||||
@Column()
|
||||
duty?: string;
|
||||
}
|
||||
export type UpdateOrgChild4 = Partial<OrgChild4>;
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ export class OrgRoot extends EntityBase {
|
|||
@Column({
|
||||
nullable: true,
|
||||
length: 255,
|
||||
comment: "หน้าที่ความรับผิดชอบ ",
|
||||
comment: "หน้าที่ความรับผิดชอบ",
|
||||
default: null,
|
||||
})
|
||||
duty: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue