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

import cokr.xit.ens.modules.common.domain.BaseEntity;
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.MappedSuperclass;

@Getter
@Setter
@MappedSuperclass
@SuperBuilder
@NoArgsConstructor
public abstract class BillBaseEntity extends BaseEntity {

    @Column(name = "bill_uid", nullable = true, unique = true, length = 45)
    private String billUid;

    @Schema(required = true, title = "기관에서 관리하는 해당 고객번호 혹은 계약번호", example = " ")
    @Column(name = "biller_user_key", nullable = false, length = 40)
    private String billerUserKey;
}
