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

@Entity("gender")
export class Gender extends EntityBase {
  @Column({
    nullable: true,
    comment: "เพศ",
    length: 255,
    default: null,
  })
  name: string;
}

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

export type UpdateGender = Partial<CreateGender>;
