package com.ruoyi.frequency.voteoption.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 投票选项对象 t_vote_option
 *
 * @author liwenlong
 * @date 2023-10-12
 */
@Data
@Accessors(chain = true)
@TableName("t_vote_option")
public class VoteOption extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    @ApiModelProperty("租户号")
    private Long id;

    @ApiModelProperty("删除标志;1 正常 2 删除 3 禁用")
    private Integer delFlag;

    @ApiModelProperty("投票活动id")
    @Excel(name = "投票活动id")
    private Long voteId;

    @ApiModelProperty("选项名称")
    @Excel(name = "选项名称")
    private String name;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("投票人数")
    @TableField(exist = false)
    private Integer num;


    @ApiModelProperty("是否投票 1没有 2已投")
    @TableField(exist = false)
    private Integer isVote;

}
