package com.ruoyi.project.business.domain.train;

import com.ruoyi.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @TableName tt_question_directory
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Builder
public class TtQuestionDirectory extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "[ID]不能为空")
    @ApiModelProperty("ID")
    private Long id;
    /**
     * 目录名
     */
    @Size(max = 100, message = "编码长度不能超过100")
    @ApiModelProperty("目录名")
    @Length(max = 100, message = "编码长度不能超过100")
    private String derectoryName;
    /**
     * 上级目录
     */
    @Size(max = 100, message = "编码长度不能超过100")
    @ApiModelProperty("上级目录")
    @Length(max = 100, message = "编码长度不能超过100")
    private String superDirectory;
    /**
     * 删除标记（0：未删除  1：已删除）
     */
    @ApiModelProperty("删除标记（0：未删除  1：已删除）")
    private String delFlag;

}
