package com.xxfc.platform.activity.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Data
public class ActivityManagement {
    private static final long serialVersionUID = 1L;

    /**
     *  主键
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    @ApiModelProperty("主键")
    private Integer id;



    /**
     *  活动名称
     */
    @Column(name = "name")
    @ApiModelProperty(value = "活动名称")
    private String name;

    /**
     *  活动开始时间
     */
    @Column(name = "start_time")
    @ApiModelProperty(value = "活动开始时间")
    private Long startTime;

    /**
     *  活动结束时间
     */
    @Column(name = "end_time")
    @ApiModelProperty(value = "活动结束时间")
    private Long endTime;

    /**
     *  人数限制 -1--无限制
     */
    @Column(name = "num_limit")
    @ApiModelProperty(value = "人数限制 -1--无限制")
    private Integer numLimit;

    /**
     *  已经参与人数
     */
    @Column(name = "has_join_num")
    @ApiModelProperty(value = "已经参与人数")
    private Integer hasJoinNum;

    /**
     *  当前状态 1--显示在活动页 2--隐藏
     */
    @Column(name = "status")
    @ApiModelProperty(value = "当前状态 1--显示在活动页 2--隐藏")
    private Integer status;

    /**
     *  排序
     */
    @Column(name = "sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     *  活动图片
     */
    @Column(name = "picture")
    @ApiModelProperty(value = "活动图片")
    private Integer picture;
}
