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

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.io.Serializable
import java.util.*
import javax.persistence.Column
import javax.persistence.Table

/**
 * 数据中心日志信息
 *
 * @author 张维新
 */
@ApiModel(description = "建筑信息实体类")
@Table(name = "data_center_log")
class DataCenterLogs : Serializable {





    constructor(
        id: String?,
        projectId: String?,
        type: String?,
        dataSource: HashMap<String, Any?>?,
        author: String?,
        objectId: String?,
        coming: String?,
        account: String?,
        objectType: String
    ) : super() {
        this.id = id
        this.projectId = projectId
        this.type = type
        this.dataSource = dataSource
        this.author = author
        this.objectId = objectId
        this.coming = coming
        this.account = account
        this.objectType = objectType
    }

    constructor()

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

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

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

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

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

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

    /** 来源 */
    @ApiModelProperty(value = "来源")
    @Column(name = "coming")
    var coming: String? = null

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

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

    /** 最后更新日期 */
    @ApiModelProperty(value = "最后更新日期", example = "2009-04-21 13:16:00")
    @Column(name = "last_update", updatable = false, insertable = false)
    var lastUpdate: Date? = null

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", example = "2017-10-15 08:30:00")
    @Column(name = "create_time", updatable = false, insertable = false)
    var createTime: Date? = null


} // Class DataCenterLogs