package org.jeecg.modules.mes.material.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

@Data
@TableName("mes_material_category")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "MES物料分类")
public class MesMaterialCategory implements Serializable {
  private static final long serialVersionUID = 1L;

  @TableId(type = IdType.ASSIGN_ID)
  private String id;

  @Excel(name = "分类编码", width = 15)
  private String categoryCode;
  @Excel(name = "分类名称", width = 15)
  private String categoryName;
  @Excel(name = "父ID", width = 15)
  private String parentId;
  @Excel(name = "树路径", width = 20)
  private String treePath;
  @Excel(name = "排序", width = 10)
  private Integer sortNo;
  @Excel(name = "启用状态", width = 10)
  private Integer enableFlag;
  @Excel(name = "备注", width = 20)
  private String remark;

  private Integer tenantId;
  private String sysOrgCode;
  private String createBy;
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;
  private String updateBy;
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;
  private Integer delFlag;
}
