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

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

/**
 * 定时任务分类
 * 
 * @author qichen
 */
@Data
@EqualsAndHashCode(callSuper = true)
@jakarta.persistence.Entity
@Table(name = "schedule_job_category")
@LogicDelete
public class ScheduleJobCategory extends Entity<Long> {

    /**
     * 分类编码
     */
    @Column(name = "code", nullable = false, length = 50)
    private String code;

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

    /**
     * 描述
     */
    @Column(name = "description", length = 500)
    private String description;

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

    /**
     * 颜色
     */
    @Column(name = "color", length = 20)
    private String color;

    /**
     * 是否启用
     */
    @Column(name = "enabled", nullable = false)
    private Boolean enabled = true;

    /**
     * 排序号
     */
    @Column(name = "sort", nullable = false)
    private Integer sort = 0;
}

