import { Entity, Column } from "typeorm";
import { EntityBase } from "./base/Base";

@Entity("rank")
export class Rank extends EntityBase {
  @Column({
    nullable: true,
    comment: "ยศ",
    length: 255,
    default: null,
  })
  name: string;
}

export class CreateRank {
  @Column()
  name: string;
}

export type UpdateRank = Partial<CreateRank>;
