package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("t_marketing_activity")
public class MarketingActivity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String activityName;

    private Integer activityType;

    private String activityDesc;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private Integer status;

    private BigDecimal discountValue;

    private BigDecimal minAmount;

    private BigDecimal maxDiscount;

    private Integer applyScope;

    private Integer deviceScope;

    private Integer productScope;

    private BigDecimal totalBudget;

    private BigDecimal usedBudget;

    private Long creatorId;

    private String creatorName;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer deleted;

    @TableField(exist = false)
    private String statusLabel;

    @TableField(exist = false)
    private String statusColor;

    @TableField(exist = false)
    private String typeLabel;

    @TableField(exist = false)
    private String applyScopeLabel;

    @TableField(exist = false)
    private String deviceScopeLabel;

    @TableField(exist = false)
    private String productScopeLabel;

    @TableField(exist = false)
    private List<Long> shopIds;

    @TableField(exist = false)
    private List<String> deviceIds;

    @TableField(exist = false)
    private List<Long> productIds;
}
