package com.qqchen.deploy.backend.workflow.entity;

import com.qqchen.deploy.backend.framework.annotation.LogicDelete;
import com.qqchen.deploy.backend.framework.domain.Entity;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 表单分类实体
 *
 * @author qqchen
 * @date 2025-10-24
 */
@Data
@Table(name = "form_category")
@jakarta.persistence.Entity
@EqualsAndHashCode(callSuper = true)
@LogicDelete
public class FormCategory extends Entity<Long> {

    /**
     * 分类名称
     */
    @Column(nullable = false, length = 100)
    private String name;

    /**
     * 分类编码（唯一）
     */
    @Column(nullable = false, length = 50, unique = true)
    private String code;

    /**
     * 分类描述
     */
    @Column(length = 500)
    private String description;

    /**
     * 图标
     */
    @Column(length = 50)
    private String icon;

    /**
     * 排序
     */
    @Column(nullable = false)
    private Integer sort;

    /**
     * 是否启用
     */
    @Column(nullable = false)
    private Boolean enabled;
}

