package com.cpop.oam.business.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * OAM-任务-需求表 实体类。
 *
 * @author DB
 * @since 2023-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_oam_task_demand", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class TaskDemand extends BaseEntity implements Serializable {

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

    /**
     * 任务id
     */
    private String taskId;

    /**
     * 品牌id
     */
    private String brandId;

    /**
     * 校区id
     */
    private String storeId;

    /**
     * 签约图片
     */
    private String signPic;

    /**
     * 签约二维码
     */
    private String payQrCode;

    /**
     * 预付款
     */
    private BigDecimal prepayment;

    /**
     * 应付款
     */
    private BigDecimal payable;

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

}
