package com.xunmei.common.core.domain.edu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 教育培训任务角色关系对象 core_edu_training_task_to_user
 *
 * @author xunmei
 * @date 2023-08-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("core_edu_training_task_to_user")
@ApiModel(value = "CoreEduTrainingTaskToUser对象", description = "教育培训任务角色关系")
public class CoreEduTrainingTaskToUser {
    private static final long serialVersionUID = 1L;

    @TableField("edu_training_task_id")
    @ApiModelProperty(value = "任务id")
    private Long eduTrainingTaskId;

    @TableField("user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @TableField("user_name")
    @ApiModelProperty(value = "用户名称")
    private String username;

    @TableField("type")
    @ApiModelProperty(value = "1:参与人员,2:缺席人员")
    private Long type;

    @TableField("sign")
    @ApiModelProperty(value = "是否签名:0:未签名,1:已签名")
    private int sign;

    @TableField("sign_image")
    @ApiModelProperty(value = "签名图片")
    private String signImage;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("eduTrainingTaskId", getEduTrainingTaskId())
                .append("userId", getUserId())
                .append("type", getType())
                .toString();
    }
}
