package com.blueland.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.blueland.model.Query;
import lombok.Data;
import lombok.EqualsAndHashCode;

import lombok.experimental.Accessors;
import org.apache.poi.ss.formula.functions.T;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
@Data
@EqualsAndHashCode(callSuper=false)
@Accessors(chain = true)
@TableName("abnorrmal_fault")
public class AdminUserEntity extends Query {
	private static final long serialVersionUID = 1L;
	//alias
	public static final String TABLE_ALIAS = "PfAdminUser";
	
		
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	/**
	* id       db_column: id 
	*/	
	@Length(max=50)
	@TableId(value = "id", type = IdType.AUTO)
	private String id;
	/**
	* 业务ID       db_column: app_id 
	*/	
	@NotBlank @Length(max=50)
	private String appId;
	/**
	* 类型（应用管理：YYGL,业务域：YWY）       db_column: admin_type 
	*/	
	@NotBlank @Length(max=100)
	private String adminType;
	/**
	* 用户code       db_column: user_code 
	*/	
	@NotBlank @Length(max=50)
	private String userCode;
	/**
	* 用户名称       db_column: user_name 
	*/	
	@NotBlank @Length(max=100)
	private String userName;
	/**
	* 用户组织id       db_column: user_org_id 
	*/	
	@NotBlank @Length(max=50)
	private String userOrgId;
	/**
	* 用户组织名称       db_column: user_org_name 
	*/	
	@NotBlank @Length(max=100)
	private String userOrgName;
	/**
	* 用户部门id       db_column: user_dept_id 
	*/	
	@NotBlank @Length(max=50)
	private String userDeptId;
	/**
	* 用户部门Name       db_column: user_dept_name 
	*/	
	@NotBlank @Length(max=100)
	private String userDeptName;
	//columns END
}

