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

@Entity("prefixe")
export class Prefixe extends EntityBase {
  @Column({
    nullable: true,
    comment: "คำนำหน้าชื่อ",
    length: 255,
    default: null,
  })
  name: string;
}

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

export type UpdatePrefixe = Partial<CreatePrefixe>;
