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 lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

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

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

    /**
     * 外部计划id
     */
    private String outPlanId;

    /**
     * 签约账号信息
     */
    private String signAccount;

    /**
     * 计划名
     */
    private String planName;

    /**
     * 支付分计划有效期(单位天)
     */
    private Integer planDuration;

    /**
     * 支付分计划扣费次数
     */
    private Integer deductionQuantity;

    /**
     * 支付分计划原总金额(单位分)
     */
    private Integer totalOriginalPrice;

    /**
     * 支付分计划实际扣费总金额(单位分)
     */
    private Integer totalActualPrice;

    /**
     * 计划来源
     */
    private String planSource;

    /**
     * 课次
     */
    private String classHour;

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

}
