package com.sqx.modules.industry.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author www.javacoder.top
 * @since 2023-01-14
 */
@Data
public class Industry implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 行业id
     */
    @TableId(value = "industry_id", type = IdType.AUTO)
    private Long industryId;

    /**
     * 行业名称
     */
    @TableField(condition = SqlCondition.LIKE)
    private String industryName;

    /**
     * 是否启用 0不启用 1启用
     */
    private Integer isEnable;

    /**
     * 上级id
     */
    private Long parentId;
    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    @TableField(exist = false)
    private List<Industry> childrenList;
}
