package com.icomsys.main_vm.db.jpa.entity.scenario;


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

import javax.persistence.*;

@Table(name = "TB_SCENARIO_TEMPLATE")
@Entity
@Getter
@Setter
@NoArgsConstructor
@DynamicUpdate
public class TbScenarioTemplate {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "SEQ", nullable = false)
    private Long seq;
    @Column(name = "TEMPLATE_NAME", nullable = false, length = 50)
    private String templateName;
    @Column(name = "USE_YN", nullable = false, length = 1)
    private String useYn;

    @Builder
    public TbScenarioTemplate(Long seq, String templateName, String useYn) {
        this.seq = seq;
        this.templateName = templateName;
        this.useYn = useYn;
    }
}
