hrms-api-org/src/entities/Gender.ts
2024-06-10 10:26:34 +07:00

22 lines
472 B
TypeScript

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