package com.sqx.modules.activity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 活动
 * @author : codingliang
 * @date : 2024-6-17
 */
@ApiModel(value = "活动")
@TableName("activity")
@Data
public class Activity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "活动id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(name = "活动标题")
    private String title;

    @ApiModelProperty(name = "活动描述")
    private String content;

    @ApiModelProperty(name = "活动图片")
    private String image;

    @ApiModelProperty(name = "是否启用;0否 1是")
    private String enableFlag;

    @ApiModelProperty(name = "是否允许商户主动加入;0否 1是")
    private String allowShop;

    @ApiModelProperty(name = "创建时间")
    private Date createTime;

    @ApiModelProperty(name = "更新时间")
    private Date updateTime;

    @ApiModelProperty(name = "删除标识;0未删除、1已删除")
    @TableLogic(value = "0", delval = "1")
    private String delFlag;

    @ApiModelProperty(name = "活动类型;1普通活动、2时段优惠、3满额优惠、4全场优惠")
    private String type;

    @ApiModelProperty(name = "活动开始时间")
    private Date startTime;

    @ApiModelProperty(name = "活动结束时间")
    private Date endTime;

    @ApiModelProperty(name = "活动配置;json字符串")
    private String config;
}