package com.dbnt.kcgfilemanager.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.web.multipart.MultipartFile;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.List;

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "MODIFY_REQUEST")
public class ModifyRequest extends BaseModel{
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "REQUEST_SEQ")
  private Integer requestSeq;
  @Column(name = "REQUEST_TYPE")
  private String requestType;
  @Column(name = "TITLE")
  private String title;
  @Column(name = "STATUS")
  private String status;
  @Column(name = "REQUEST_NAME")
  private String requestName;
  @Column(name = "REQUEST_POSITION")
  private Integer requestPosition;
  @Column(name = "REQUEST_DEPARTMENT")
  private Integer requestDepartment;
  @Column(name = "REQUEST_CATEGORY_ARY")
  private String requestCategoryAry;
  @Column(name = "DESCRIPTION")
  private String description;
  @Column(name = "CREATE_ID")
  private String createId;
  @Column(name = "CREATE_DATE")
  private LocalDateTime createDate;

  @Transient
  private List<Integer> requestCategoryList;
  @Transient
  private String createName;
  @Transient
  private String userRole;
}
