package cokr.xit.ens.modules.common.domain;

import cokr.xit.ens.modules.common.code.PostSeCd;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.persistence.*;

@Entity
//@Data
@Getter @ToString
@SuperBuilder
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "ens_snd_mast", schema = "", catalog = "")
public class SendMast extends SendMastBaseEntity {

	@Id
//	@GeneratedValue(strategy=GenerationType.AUTO)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "SendMast_Generator")
	@TableGenerator(table = "ens_seq_generator", name = "SendMast_Generator"
					,pkColumnName = "seq_name", pkColumnValue = "SendMast_id"
					,initialValue = 0, allocationSize = 50)
	private Long sendMastId;

	@Enumerated(EnumType.STRING)
	private PostSeCd postSe;



//	@Column(name = "last_updt_dt", nullable = true)
//	@UpdateTimestamp
//	private LocalDateTime lastUpdtDt;

//	@Embedded
//	@Setter
//	private FieldError error;



//	@Column(nullable = false, length = 30)
//	@Enumerated(EnumType.STRING)
//	private VenderCd vender;
//

//	@Column(name = "org_cd", nullable = true, length = 20)
//	private String orgCd;
//

//	@Column(nullable = true)
//	private String tmpltCd;
//

//	@Column(nullable = true)
//	private String postBundleTitle;
//

//	@CreationTimestamp
//	private LocalDateTime acceptDt;
//

//	@Enumerated(EnumType.STRING)
//	@Setter
//	private StatCd statCd;
//

//	@Column(name = "send_dt", nullable = false)
//	private LocalDateTime sendDt;
//

//	@Column(name = "send_cnt", columnDefinition = "integer")
//	@ColumnDefault("0")
//	private Integer sendCnt;
//

//	@Column(name = "read_cnt", columnDefinition = "integer")
//	@ColumnDefault("0")
//	@Setter
//	private Integer readCnt;
//

//	@Column(name = "close_dt", nullable = false)
//	private LocalDateTime closeDt;
//
//	@Embedded
//	@Setter
//	private FieldError error;

}
