package com.liquidnet.service.kylin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
public class KylinGroupBuyActivity implements Serializable, Cloneable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Integer mid;

    private String activityId;
    private String name;
    private String performanceId;
    private Integer minGroupSize;
    private Integer maxBuyPerUser;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Integer launchType;
    private LocalDateTime scheduledTime;
    private Integer status;
    private String description;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    private static final KylinGroupBuyActivity obj = new KylinGroupBuyActivity();

    public static KylinGroupBuyActivity getNew() {
        try {
            return (KylinGroupBuyActivity) obj.clone();
        } catch (CloneNotSupportedException e) {
            return new KylinGroupBuyActivity();
        }
    }
}
