package com.persagy.legend.models.entities

import com.sybotan.service.models.SBaseEntity
import io.swagger.v3.oas.annotations.media.Schema
import java.io.Serializable
import javax.persistence.Column
import javax.persistence.Id
import javax.persistence.Table

/**
 * 管线类型
 * @author zy
 */
@Schema(description = "管线类型")
@Table(name = "labsl_meiku.pipeline_category_legend")
class PipelineCategory: SBaseEntity(), Serializable {

    /** 类型 id */
    @Schema(description = "类型 id")
    @Id
    @Column(name = "id")
    var id: String? = null

    /** 名称 */
    @Schema(description = "名称")
    @Column(name = "name")
    var name: String? = null

    /** 名称 */
    @Schema(description = "名称")
    @Column(name = "parent_id")
    var parentId: String? = null

    /** 颜色 */
    @Schema(description = "颜色")
    @Column(name = "color")
    var color: String? = null

    @Schema(description = "子节点列表")
    var categoryList: ArrayList<PipelineCategory>? = null
}