23 lines
563 B
TypeScript
23 lines
563 B
TypeScript
import { Entity, Column, OneToMany } from "typeorm";
|
|
import { EntityBase } from "./base/Base";
|
|
import { Development } from "./Development";
|
|
import { DevelopmentAddress } from "./DevelopmentAddress";
|
|
import { DevelopmentOther } from "./DevelopmentOther";
|
|
|
|
@Entity("province")
|
|
export class Province extends EntityBase {
|
|
@Column({
|
|
nullable: true,
|
|
comment: "จังหวัด",
|
|
length: 255,
|
|
default: null,
|
|
})
|
|
name: string;
|
|
}
|
|
|
|
export class CreateProvince {
|
|
@Column()
|
|
name: string;
|
|
}
|
|
|
|
export type UpdateProvince = Partial<CreateProvince>;
|