package com.dbnt.kcscbackend.admin.config.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "tn_partner_site")
public class TnPartnerSite {
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "site_seq")
  private Long siteSeq;

  @Column(name = "site_title", nullable = false, length = 500)
  private String siteTitle;

  @Column(name = "site_url", nullable = false, length = 500)
  private String siteUrl;

  @Column(name = "file_grp_id", length = 255)
  private String fileGrpId;

  @Column(name = "site_order", nullable = false)
  private Long siteOrder;

  @Column(name = "use_yn", nullable = false, length = 1)
  private String useYn;

  @Transient
  private String filePath;
}
