20 lines
412 B
TypeScript
20 lines
412 B
TypeScript
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()
|
|
name: string;
|
|
}
|
|
|
|
export type UpdateBloodGroup = Partial<CreateBloodGroup>;
|