package cn.sagacloud.server.algorithm.models.log

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import javax.persistence.Column
import javax.persistence.Id
import javax.persistence.Table

/**
 *
 *
 * @author jxing
 */
@ApiModel(description = "同步数据到数据中心的日志")
@Table(name = "revit.sync_log")
@JsonIgnoreProperties(ignoreUnknown = true)
class SyncLogEntity {
    /** 自增id */
    @ApiModelProperty(value = "模型id")
    @Column(name = "id", updatable = false)
    @Id
    var id: Int? = null

    /** 对象id */
    @ApiModelProperty(value = "对象id")
    @Column(name = "obj_id")
    var objId: String? = null

    /** 模型id */
    @ApiModelProperty(value = "模型id")
    @Column(name = "model_id")
    var modelId: String? = null

    /** 操作: 0表示删除, 1表示添加, 2表示修改  */
    @ApiModelProperty(value = "操作: 0表示删除, 1表示添加, 2表示修改")
    @Column(name = "operation")
    var operation: Int? = null

    /** 建筑id */
    @ApiModelProperty(value = "建筑id")
    @Column(name = "building_id")
    var buildingId: String? = null

    /** 楼层id */
    @ApiModelProperty(value = "楼层id")
    @Column(name = "floor_id")
    var floorId: String? = null

    /** 建筑名 */
    @ApiModelProperty(value = "建筑名")
    @Column(name = "building_name")
    var buildingName: String? = null

    /** 楼层名 */
    @ApiModelProperty(value = "楼层名")
    @Column(name = "floor_name")
    var floorName: String? = null

    /** BIMID */
    @ApiModelProperty(value = "BIMID")
    @Column(name = "bim_id")
    var bimId: String? = null

    /** 本地名称 */
    @ApiModelProperty(value = "本地名称")
    @Column(name = "local_name")
    var localName: String? = null

    /** 本地编码 */
    @ApiModelProperty(value = "本地编码")
    @Column(name = "local_id")
    var localId: String? = null

    /** CADID */
    @ApiModelProperty(value = "CADID")
    @Column(name = "cad_id")
    var cadId: String? = null

    /** 对象类型 */
    @ApiModelProperty(value = "对象类型")
    @Column(name = "type")
    var type: String? = null
}