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

import com.qqchen.deploy.backend.deploy.enums.ProjectGroupTypeEnum;
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;

/**
 * 项目组实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@jakarta.persistence.Entity
@Table(name = "deploy_project_group")
public class ProjectGroup extends Entity<Long> {

    /**
     * 租户ID
     */
    @Column(name = "tenant_code")
    private String tenantCode;

    @Column(name = "type", nullable = false)
    @Enumerated(EnumType.STRING)
    private ProjectGroupTypeEnum type;

    /**
     * 项目组编码
     */
    @Column(name = "project_group_code", nullable = false)
    private String projectGroupCode;


    /**
     * 项目组名称
     */
    @Column(name = "project_group_name", nullable = false)
    private String projectGroupName;

    /**
     * 项目组描述
     */
    @Column(name = "project_group_desc")
    private String projectGroupDesc;

    /**
     * 项目组状态
     */
    @Column(nullable = false)
    private Boolean enabled = true;

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

}