import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";

@Entity("positionOfficer")
export class positionOfficer {
  @PrimaryGeneratedColumn()
  id!: number;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  citizenId: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  flag_person_type: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  order_move_position: number;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  pos_num_code_sit: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  pos_num_code_sit_abb: string;

  @Column({
    nullable: true,
    default: null,
  })
  mp_command_num: number;

  @Column({
    nullable: true,
    default: null,
  })
  cur_year: number;

  @Column({
    nullable: true,
    default: null,
  })
  mp_command_date: Date;

  @Column({
    nullable: true,
    default: null,
  })
  mp_pos_date: Date;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  flag_to_name_code: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  flag_to_name: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  pos_num_name: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  pos_num_code: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  work_line_name: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  mp_cee: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  job_name: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  section_name: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  division_name: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  department_code: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  department_name: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  admin_name: string;

  @Column({
    nullable: true,
    default: null,
  })
  salary: number;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  remark: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  sal_pos_amount_1: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  sal_pos_amount_2: string;

  @Column({
    nullable: true,
    type: "text",
    default: null,
  })
  special_amt: string;
}
