package com.cpop.system.business.entity;

import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 微信支付分计划详情表 实体类。
 *
 * @author DB
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_sys_wx_pay_score_detail", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class WxPayScoreDetail extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @Id
    private String id;

    /**
     * 系统微信支付分id
     */
    @Id
    private String sysWxPayScoreId;

    /**
     * 计划详情编号
     */
    private Integer planDetailNo;

    /**
     * 计划明细原支付金额(单位分)
     */
    private Integer originalPrice;

    /**
     * 计划明细实际支付金额(单位分)
     */
    private Long actualPrice;

    /**
     * 计划明细优惠说明
     */
    private String planDiscountDescription;

    /**
     * 计划明细名称
     */
    private String planDetailName;

    /**
     * 逻辑删除（0否1是）
     */
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
