package cn.sagacloud.server.datacenter.models.entities

import cn.sagacloud.server.datacenter.models.entities.base.BaseInfoSuper
import com.alibaba.fastjson.annotation.JSONField
import com.fasterxml.jackson.annotation.JsonProperty
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 = "family")
class Family : BaseInfoSuper() {

    /** 设备族code */
    @ApiModelProperty(value = "设备族code")
    @Id
    @Column(name = "code")
    @JSONField(name = "Code")
    var code: String? = null

    /** 设备族code */
    @ApiModelProperty(value = "设备族code")
    @Column(name = "name")
    @JSONField(name = "Name")
    var name: String? = null

} // class Family