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

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

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

/**
 * 营销邮件
 *
 * @author Administrator
 */
@Data
@Entity
@Table(name = "market_promo_code")
public class MarketPromoCodeTable extends BaseTable {

    private String promoCode;

    /**
     * 优惠类型 1百分比 2固定金额
     */
    private Integer promoType;

    /**
     * 金额比例
     */
    private Float amountProportion;

    /**
     * 优惠上限 promo_type=1时  根据amount_proportion计算出来的赠送金额最高是这个值 如果为0无上限
     */
    private BigDecimal amountToplimit;

    /**
     * 固定金额
     */
    private BigDecimal amountFixed;

    private Integer giveType;

    private Integer creditLoss;

    private String giveCurrency;

    /**
     * 是否绑定邮箱 0不是 1是
     */
    private Integer bindEmail;

    private String email;

    /**
     * 有效时间 单位天
     */
    private Integer expire;

    private Date expireTime;

    private Integer status;

    private BigDecimal amount;

    private Long useCustomId;

    private String useCustomName;

    @Column(name = "use_c_id")
    private Long useCId;

    private Long useLogin;

    private String closeFunctions;
}
