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>;
