package com.codvision.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.codvision.commoncore.enums.SqlOperator;
import com.codvision.webcore.annotation.QueryCondition;
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-10
 */
@Data
@TableName("tbl_org_property")
@ApiModel(value = "OrgProperty", description = "组织属性表")
public class OrgProperty implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("上级id")
    @QueryCondition(condition = SqlOperator.EQ)
    private Integer pid;

    @ApiModelProperty("属性名称")
    @QueryCondition(condition = SqlOperator.LIKE)
    private String name;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("删除标记,1:已删除,0:正常")
    private Short delFlag;

    @ApiModelProperty("辅助删除key")
    private Integer delKey;

    @ApiModelProperty("创建时间")
    private Date createTime;

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

    @ApiModelProperty("编码长度")
    private Integer codeLength;

    @ApiModelProperty("层级")
    private Integer level;
}
