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

@Entity("ProfileAbilitys")
export class ProfileAbilitys extends EntityBase {
  @Column({
    nullable: true,
    comment: "หมายเหตุ",
    type: "text",
    default: null,
  })
  remark: string;

  @Column({
    nullable: true,
    comment: "รายละเอียด",
    type: "text",
    default: null,
  })
  detail: string;

  @Column({
    nullable: true,
    comment: "เอกสารอ้างอิง",
    type: "text",
    default: null,
  })
  reference: string;

  @Column({
    nullable: true,
    type: "datetime",
    comment: "วันที่เริ่มต้น",
    default: null,
  })
  dateStart: Date;

  @Column({
    nullable: true,
    type: "datetime",
    comment: "วันที่สิ้นสุด",
    default: null,
  })
  dateEnd: Date;

  @Column({
    nullable: true,
    comment: "ด้าน",
    type: "text",
    default: null,
  })
  field: string;
}
