package cokr.xit.ens.modules.common.ctgy.intgrnbill.support.entity;

import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.code.PayUseSysHisSeCd;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.code.PaidTypeCd;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;

@Getter
@Setter
@MappedSuperclass
@SuperBuilder
@NoArgsConstructor
public abstract class BillHistPayUseSysBaseEntity extends BillHistBaseEntity {


    @Schema(required = true, title = "지불 유형", example = " ")
    @Column(name = "paid_type", nullable = false, length = 15)
    @Enumerated(EnumType.STRING)
    private PaidTypeCd paidType;

    @Schema(required = true, title = "이력구분", example = " ")
    @Column(name = "his_se_cd", nullable = false, length = 15)
    @Enumerated(EnumType.STRING)
    private PayUseSysHisSeCd hisSeCd;
}
