package org.sky.develop.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 代码生成器配置表 实体类
 *
 */
@Data
@TableName("kd_code_setting")
@Schema(description = "CodeSetting对象")
public class CodeSetting implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@Schema(description = "主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	/**
	 * 名称
	 */
	@Schema(description = "名称")
	private String name;
	/**
	 * 编号
	 */
	@Schema(description = "编号")
	private String code;
	/**
	 * 分类[1:默认配置 2:表单设计]
	 */
	@Schema(description = "业务状态", hidden = true)
	private Integer category;

	/**
	 * 配置项
	 */
	@Schema(description = "配置项")
	private String settings;

	/**
	 * 状态[1:正常]
	 */
	@Schema(description = "业务状态", hidden = true)
	private Integer status;
	/**
	 * 是否已删除
	 */
	@Schema(description = "是否已删除")
	private Integer isDeleted;

}
