package com.persagy.server.scanbuilding

import com.alibaba.fastjson.annotation.JSONField
import com.persagy.service.models.SBaseEntity
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 = "scanbuilding.user_log")
class UserLog : SBaseEntity() {

    /** 主键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

    /** 扫楼用户ID */
    @ApiModelProperty(value = "扫楼用户ID")
    @Column(name = "user_id")
    @JSONField(name = "UserId")
    var userId:String? = null

    /** 扫楼用户名字 */
    @ApiModelProperty(value = "扫楼用户名字")
    @Column(name = "name")
    @JSONField(name = "Name")
    var name:String? = null

    /** 扫楼用户手机 */
    @ApiModelProperty(value = "扫楼用户手机")
    @Column(name = "phone")
    @JSONField(name = "Phone")
    var phone:String? = null

    /** 用户操作 */
    @ApiModelProperty(value = "用户操作")
    @Column(name = "action")
    @JSONField(name = "Action")
    var action:String? = null

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

    /** 备注 */
    @ApiModelProperty(value = "备注")
    @Column(name = "note")
    @JSONField(name = "Note")
    var note:String? = null

    @ApiModelProperty(value = "")
    @Column(name = "comming")
    @JSONField(name = "Comming")
    var comming:String? = null

} // Class UserLog