hrms-api-org/src/entities/BloodGroup.ts

21 lines
417 B
TypeScript
Raw Normal View History

2024-02-02 10:47:19 +07:00
import { Entity, Column} from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("bloodGroup")
export class BloodGroup extends EntityBase {
@Column({
nullable: true,
comment: "กรุ๊ปเลือด",
length: 255,
default: null,
})
name: string;
}
export class CreateBloodGroup {
@Column()
bloodGroup: string;
}
export type UpdateBloodGroup = Partial<CreateBloodGroup>;