package com.persagy.server.datacenter.models.entities.dict

import com.alibaba.fastjson.annotation.JSONField
import com.persagy.server.datacenter.models.entities.base.BaseInfo
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import javax.persistence.Column
import javax.persistence.Id
import javax.persistence.Table

/**
 * 设备分类
 *
 * @author 张维新
 */
@ApiModel(description = "设备分类实体类")
@Table(name = "equip_family")
class EquipCategory : BaseInfo() {

    /** 设备分类编码 */
    @ApiModelProperty(value = "设备分类编码")
    @Id
    @Column(name = "equip_code")
    @JSONField(name = "EquipCode")
    var equipCode: String? = null

    /** 设备分类名字*/
    @ApiModelProperty(value = "设备分类名字")
    @Column(name = "equip_name")
    @JSONField(name = "EquipName")
    var equipName: String? = null

    /** 族编码 */
    @ApiModelProperty(value = "族编码")
    @Id
    @Column(name = "family")
    @JSONField(name = "Family")
    var family: String? = null

    /** 族名称 */
    @ApiModelProperty(value = "族名称")
    @Column(name = "family_name")
    @JSONField(name = "FamilyName")
    var familyName: String? = null

} // Class EquipCategory