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

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 = "data_center_log_sync")
class DataCenterLogSync : BaseInfo(){

    /** ID */
    @ApiModelProperty(value = "ID")
    @Id
    @Column(name = "id")
    @JSONField(name = "Id")
    var id: String? = null

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

    /** 操作类型 */
    @ApiModelProperty(value = "操作类型")
    @Column(name = "type")
    @JSONField(name = "Type")
    var type: String? = null

    /** 数据 */
    @ApiModelProperty(value = "数据")
    @Column(name = "data_source")
    @JSONField(name = "DataSource")
    var dataSource: HashMap<String,Any?>? = null

    /** 操作者 */
    @ApiModelProperty(value = "操作者")
    @Column(name = "author")
    @JSONField(name = "Author")
    var author: String? = null

    /** 状态 */
    @ApiModelProperty(value = "状态 ")
    @Column(name = "state")
    @JSONField(name = "State")
    var state: String? = null

    /** 对象id */
    @ApiModelProperty(value = "对象id")
    @Column(name = "object_id")
    @JSONField(name = "ObjectId")
    var objectId: String? = null

} // Class DataCenterLogs