package com.crm.rely.backend.core.pojo.table;

import com.crm.rely.backend.core.pojo.BaseApproveTable;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户活动申请
 *
 * @author houn
 */
@Data
@Entity
@Table(name = "custom_activity_apply")
public class CustomActivityApplyTable extends BaseApproveTable {

    /**
     * 流水号
     */
    private String serial;

    private Long cId;

    /**
     * 用户id
     */
    private Long customId;

    private Long agentId;

    /**
     * 用户名称
     */
    private String name;

    private Long login;

    private Long loginType;

    private String platform;

    private Long activityId;

    private String title;

    private String subTitle;

    private String lang;

    private String advertImage;

    private String advertUrl;

    private String coverImage;

    private String activityImage;

    private String content;

    private Date deliveryTime;

    private Date startTime;

    private Date endTime;

    private Integer hot;

    private Integer valid;
    /**
     * 高级设置开关 0关 1开 在关的时候 下列所有功能不开启
     */
    private Integer seniorSetting;

    /**
     * 组别类型-活动中调整到的组别  如果为null不修改
     */
    private Long groupTypeActivity;

    /**
     * 组别类型-活动完成调整的组别 如果为null不修改
     */
    private Long groupTypeComplete;

    /**
     * 资金类型 1出入金 2 信用金  如果为null 则下列give_amount金额不触发
     */
    private Integer fundType;

    private Integer creditLoss;

    /**
     * 赠送金额 usd
     */
    private BigDecimal giveAmount;

    /**
     * 关闭功能的字符拼接 1-申请入金 2-申请出金 3-申请内转(包括佣金内转) 如果为null或者为空则不关闭功能
     */
    private String closeFunctions;

    private Integer completeStatus;

    private String participationNote;

    private BigDecimal creditLimit;

}
