hrms-api-org/src/entities/EducationLevel.ts
Suphonchai Phoonsawat 4852131651 add dpis controller
2024-10-07 14:53:27 +07:00

30 lines
584 B
TypeScript

import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("educationLevel")
export class EducationLevel extends EntityBase {
@Column({
nullable: true,
comment: "ระดับการศึกษา",
length: 255,
default: null,
})
name: string;
@Column({
nullable: true,
comment: "ระดับที่",
default: null,
})
rank: number;
}
export class CreateEducationLevel {
@Column()
name: string;
@Column()
rank: number;
}
export type UpdateEducationLevel = Partial<CreateEducationLevel>;