package com.ruoyi.frequency.voterecord.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 com.ruoyi.vo.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 投票记录对象 t_vote_record
 * 
 * @author liwenlong
 * @date 2023-10-12
 */
@Data
@Accessors(chain = true)
@TableName("t_vote_record")
public class VoteRecord 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("投票人id;设计师和表现师的id")
    @Excel(name = "投票人id;设计师和表现师的id")
    private Long userId;

    @ApiModelProperty("$column.columnComment")
    @Excel(name = "投票人id;设计师和表现师的id")
    private Integer userType;

    @ApiModelProperty("选项ID")
    private Long optionId;

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

    @ApiModelProperty(value = "用户信息")
    @TableField(exist = false)
    private UserInfo userInfo;


    @ApiModelProperty("标题")
    @Excel(name = "标题")
    @TableField(exist = false)
    private String title;

    @ApiModelProperty("内容")
    @Excel(name = "内容")
    @TableField(exist = false)
    private String content;

    @ApiModelProperty("活动截止日期")
    @Excel(name = "活动截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date cutoffDate;


}
