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

import cokr.xit.ens.modules.common.domain.BaseEntity;
import cokr.xit.ens.modules.common.domain.support.FieldError;
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.Embedded;
import javax.persistence.Lob;
import javax.persistence.MappedSuperclass;

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


    @Schema(required = false, title = "요청", example = " ")
    @Column(name = "request_data", nullable = true)
    @Lob
    private String requestData;

    @Schema(required = false, title = "응답", example = " ")
    @Column(name = "response_data", nullable = true)
    @Lob
    @Setter
    private String responseData;

    @Embedded
    @Setter
    private FieldError error;
}
