โครงการเพิ่มบันทึกยุทธศาสตร์
This commit is contained in:
parent
650c6fe3e3
commit
be703f8e3b
16 changed files with 930 additions and 84 deletions
|
|
@ -4,7 +4,7 @@ import { StrategyChild1 } from "./StrategyChild1";
|
|||
import { StrategyChild3 } from "./StrategyChild3";
|
||||
import { StrategyChild4 } from "./StrategyChild4";
|
||||
import { StrategyChild5 } from "./StrategyChild5";
|
||||
|
||||
import { Development } from "./Development";
|
||||
|
||||
@Entity("strategyChild2")
|
||||
export class StrategyChild2 extends EntityBase {
|
||||
|
|
@ -21,7 +21,7 @@ export class StrategyChild2 extends EntityBase {
|
|||
comment: "คีย์นอก(FK)ของตาราง strategyChild1",
|
||||
})
|
||||
strategyChild1Id: string;
|
||||
|
||||
|
||||
@ManyToOne(() => StrategyChild1, (strategyChild1) => strategyChild1.strategyChild2s)
|
||||
@JoinColumn({ name: "strategyChild1Id" })
|
||||
strategyChild1: StrategyChild1;
|
||||
|
|
@ -35,9 +35,11 @@ export class StrategyChild2 extends EntityBase {
|
|||
@OneToMany(() => StrategyChild5, (strategyChild5) => strategyChild5.strategyChild2)
|
||||
strategyChild5s: StrategyChild5[];
|
||||
|
||||
|
||||
|
||||
}
|
||||
@OneToMany(() => Development, (development) => development.strategyChild2Planned)
|
||||
developmentPlanneds: Development[];
|
||||
@OneToMany(() => Development, (development) => development.strategyChild2Actual)
|
||||
developmentActuals: Development[];
|
||||
}
|
||||
|
||||
export class CreateStrategyChild2 {
|
||||
@Column()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue