package org.jeecg.modules.stm.survey.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 lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

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

/**
 * @Description: 模板表
 * @Author: jeecg-boot
 * @Date:   2023-11-15
 * @Version: V1.0
 */
@Data
@TableName("survey_tpl_main")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
 
public class SurveyTplMain implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    
    private Integer id;
	/**父ID*/
	@Excel(name = "父ID", width = 15)
    
    private Integer pid;
	/**名称*/
	@Excel(name = "名称", width = 15)
    
    private String title;

    @TableField(exist = false)
    private List<SurveyTplMain> children;
}
