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

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_environment")
public class Environment extends Entity<Long> {

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

    /**
     * 环境编码
     */
    @Column(name = "env_code", nullable = false)
    private String envCode;

    /**
     * 环境名称
     */
    @Column(name = "env_name", nullable = false)
    private String envName;

    /**
     * 环境描述
     */
    @Column(name = "env_desc")
    private String envDesc;

    @Column(name = "enabled")
    private Boolean enabled;

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

}