package com.casic.missiles.model.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 分包方-人员信息表
 * </p>
 *
 * @author wangpeng
 * @since 2023-03-23
 */
@ApiModel
@Data
@TableName("business_outsourcer_user_info")
public class BusinessOutsourcerUserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    /**
     * 分包方id
     */
    @NotNull(message = "分包方id不能为空")
    @ApiModelProperty(value = "分包方id", dataType = "Long")
    @TableField("outsourcer_id")
    private Long outsourcerId;

    /**
     * 人员编号-手动输入
     */
    @NotBlank(message = "人员编号不能为空")
    @ApiModelProperty(value = "人员编号-手动输入", dataType = "String")
    @TableField("user_no")
    private String userNo;

    /**
     * 名称
     */
    @NotBlank(message = "人员名字不能为空")
    @ApiModelProperty(value = "人员名字", dataType = "String")
    @TableField("name")
    private String name;

    /**
     * 部门
     */
    @ApiModelProperty(value = "部门", dataType = "String")
    @TableField("department")
    private String department;

    /**
     * 职务
     */
    @ApiModelProperty(value = "职务", dataType = "String")
    @TableField("job")
    private String job;

    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式", dataType = "String")
    @TableField("phone")
    private String phone;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间（列表返回参数）", dataType = "String")
    @TableField("create_time")
    private String createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(hidden = true)
    @TableField("update_time")
    private String updateTime;


}
