package com.red.circle.other.infra.database.rds.entity.sys;

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.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import java.io.Serial;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统枚举配置
 * </p>
 *
 * @author pengliang
 * @since 2019-10-30
 */
@Data
@Accessors(chain = true)
@TableName("sys_enum_config_v2")
@EqualsAndHashCode(callSuper = false)
public class EnumConfig extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 来源系统.
   */
  @TableField("sys_origin")
  private String sysOrigin;

  /**
   * 标题
   */
  @TableField("title")
  private String title;

  /**
   * 键
   */
  @TableField("`name`")
  private String name;

  /**
   * 值
   */
  @TableField("val")
  private String val;

  /**
   * 备注
   */
  @TableField("description")
  private String description;

  /**
   * 0.可操作 1.不可操作
   */
  @TableField("is_inoperable")
  private Boolean inoperable;

  /**
   * 数据类型
   */
  @TableField("data_type")
  private String dataType;

  /**
   * 显示序号
   */
  @TableField("sort")
  private Integer sort;

  /**
   * 是否返回app
   */
  @TableField("is_return_app")
  private Boolean returnApp;

  /**
   * 分组名称
   */
  @TableField("group_name")
  private String groupName;

}
