21 lines
372 B
TypeScript
21 lines
372 B
TypeScript
|
|
import { Entity, Column} from "typeorm";
|
||
|
|
import { EntityBase } from "./base/Base";
|
||
|
|
|
||
|
|
@Entity("gender")
|
||
|
|
export class Gender extends EntityBase {
|
||
|
|
@Column({
|
||
|
|
nullable: true,
|
||
|
|
comment: "เพศ",
|
||
|
|
length: 255,
|
||
|
|
default: null,
|
||
|
|
})
|
||
|
|
name: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class CreateGender {
|
||
|
|
@Column()
|
||
|
|
gender: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type UpdateGender = Partial<CreateGender>;
|