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

import com.crm.rely.backend.core.pojo.BaseTable;
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 = "web_activity")
public class WebActivityTable extends BaseTable {

    private String title;

    private String subTitle;

    private String lang;

    private String countrys;

    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;

    private Integer number;

    /**
     * 高级设置开关 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;

    private BigDecimal creditLimit;
}
