migatation and get tab4

This commit is contained in:
AdisakKanthawilang 2024-08-08 10:39:44 +07:00
parent b9cc922edc
commit 3056dfeb2a
3 changed files with 57 additions and 46 deletions

View file

@ -17,6 +17,7 @@ import { StrategyChild3 } from "./StrategyChild3";
import { StrategyChild2 } from "./StrategyChild2";
import { StrategyChild1 } from "./StrategyChild1";
import { DevelopmentRisk } from "./DevelopmentRisk";
import { DevelopmentOther } from "./DevelopmentOther";
@Entity("development")
export class Development extends EntityBase {
@ -194,6 +195,12 @@ export class Development extends EntityBase {
)
developmentRisks: DevelopmentRisk[];
@OneToMany(
() => DevelopmentOther,
(developmentOther: DevelopmentOther) => developmentOther.development,
)
developmentOthers: DevelopmentOther[];
@OneToMany(
() => DevelopmentProjectType,
(developmentProjectType: DevelopmentProjectType) => developmentProjectType.development,