update province
This commit is contained in:
parent
668b05a511
commit
19598f1f81
9 changed files with 64 additions and 67 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { Entity, Column, ManyToOne, JoinColumn } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
import { Development } from "./Development";
|
||||
import { Province } from "./Province";
|
||||
|
||||
@Entity("developmentAddress")
|
||||
export class DevelopmentAddress extends EntityBase {
|
||||
|
|
@ -19,9 +18,12 @@ export class DevelopmentAddress extends EntityBase {
|
|||
})
|
||||
provinceId: string;
|
||||
|
||||
@ManyToOne(() => Province, (province: Province) => province.developmentAddresss)
|
||||
@JoinColumn({ name: "provinceId" })
|
||||
province: Province;
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "โครงการ/หลักสูตรการฝึกอบรม",
|
||||
default: null,
|
||||
})
|
||||
provinceName: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue