package com.codvision.auth.entity;

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 java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 系统用户角色
 * </p>
 *
 * @author lingee
 * @since 2023-11-09
 */
@Data
@TableName("tbl_org_user_mapper")
@ApiModel(value = "UserOrgRole", description = "系统用户角色")
public class UserOrgRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户UID")
    private Integer uid;

    @ApiModelProperty("组织OID")
    private Integer oid;

    @ApiModelProperty("角色ID")
    private Integer roleId;

    @ApiModelProperty("是否开启")
    private Short flagEnabled;

    @ApiModelProperty("排序字段")
    private Integer orderby;

    @ApiModelProperty("角色编码")
    @TableField(exist = false)
    private String roleCode;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
