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

import com.alibaba.fastjson.annotation.JSONField
import com.google.gson.annotations.SerializedName
import com.persagy.server.datacenter.models.entities.base.RBaseInfo
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 = "relationship.r_sh2bd")
class RSh2Bd : RBaseInfo(){

    /** 竖井Id */
    @ApiModelProperty(value = "竖井Id")
    @Id
    @Column(name = "sh_id")
    @JSONField(name = "Id1")
    @SerializedName("Id1")
    var id1: String? = null

    /** 建筑Id */
    @ApiModelProperty(value = "建筑Id")
    @Id
    @Column(name = "bd_id")
    @JSONField(name = "Id2")
    @SerializedName("Id2")
    var id2: String? = null

    /** 项目Id */
    @ApiModelProperty(value = "项目Id")
    @Id
    @Column(name = "project_id")
    @JSONField(name = "ProjectId")
    @SerializedName("ProjectId")
    var projectId: String? = null

    /** 类型 */
    @ApiModelProperty(value = "类型 设备服务于建筑eq2bd_for" )
    @Id
    @Column(name = "type")
    @JSONField(name = "Type")
    @SerializedName("Type")
    var type: String? = null

    /** 计算标记 1 为手动 2为自动 */
    @ApiModelProperty(value = "计算标记 1 为手动 2为自动 ")
    @Column(name = "sign")
    @JSONField(name = "Sign")
    @SerializedName("Sign")
    var sign: Int? = null

} // Class REq2Bd