30 lines
593 B
TypeScript
30 lines
593 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()
|
|
educationLevel: string;
|
|
|
|
@Column()
|
|
rank: number;
|
|
}
|
|
|
|
export type UpdateEducationLevel = Partial<CreateEducationLevel>;
|