package com.xunhong.erp.turbo.infra.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xunhong.erp.turbo.datasource.domain.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author shenyifei
 */
@Data
@TableName(value = "dictionary")
@EqualsAndHashCode(callSuper = true)
public class DictionaryDO extends BaseDO<DictionaryDO> {

	/**
	 * 自增id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer dictionaryId;

	/**
	 * 代码
	 */
	@TableField(value = "code")
	private String code;

	/**
	 * 字典名称
	 */
	@TableField(value = "name")
	private String name;

	/**
	 * 上级id
	 */
	@TableField(value = "parentId")
	private String parentId;

	/**
	 * 排序号
	 */
	@TableField(value = "sortNo")
	private Integer sortNo;

	/**
	 * 类型
	 */
	@TableField(value = "type")
	private String type;

}

