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 2023-10-27
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_sys_profit_sharing", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class ProfitSharing extends BaseEntity implements Serializable {

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

    /**
     * 外部分账单号
     */
    private String outProfitSharingId;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 订单来源
     */
    private String orderSource;

    /**
     * 分账金额（单位分）
     */
    private Long amount;

    /**
     * 支付账号信息
     */
    private String payAccount;

    /**
     * 分账状态(0:分账中;1:分账成功;2;分账退款)
     */
    private Integer profitSharingStatus;

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

}
