/*
 * ********************************************************************************************************************
 *
 *                      :*$@@%$*:                         ;:                ;;    ;;
 *                    :@@%!  :!@@%:                       %!             ;%%@@%$ =@@@@@@@%;     @%@@@%%%%@@@@@
 *                   :@%;       :$=                       %%$$$%$$         ;$$  ;$@=   !@$
 *                   =@!                                  %!              @ $=;%   !@@@%:      !$$$$$$$$$$$$$$=
 *                   =@*                                  %!              @ $= % %@=   =%@!      %=
 *              *$%%! @@=        ;=$%%%$*:                %!              @ $= % =%%%%%%@$      *%:         =%
 *            %@@!:    !@@@%=$@@@@%!  :*@@$:              %!              @ $= % $*     ;@      @*          :%*
 *          ;@@!          ;!!!;:         ;@%:      =======@%========*     @ $$ % $%*****$@     :@$=*********=@$
 *          $@*   ;@@@%=!:                *@*
 *          =@$    ;;;!=%@@@@=!           =@!
 *           %@$:      =@%: :*@@@*       %@=                    Copyright (c) 2016-2019.  北京上格云技术有限公司
 *            ;%@@$=$@@%*       *@@@$=%@@%;
 *               ::;::             ::;::                                              All rights reserved.
 *
 * ********************************************************************************************************************
 */

package com.persagy.revit.models.monitor

import com.alibaba.fastjson.annotation.JSONField
import com.persagy.service.models.SBaseEntity
import io.swagger.v3.oas.annotations.media.Schema
import org.springframework.stereotype.Component
import javax.persistence.Column
import javax.persistence.Id
import javax.persistence.Table

/**
 *
 *
 * @author jxing
 */
@Schema(description = "模型文件监控")
@Table(name = "revit.model_monitor")
@Component
class ModelMonitor : SBaseEntity() {

    /** 表id, uuid */
   @Schema(description = "模型id, uuid")
    @Column(name = "model_id")
    @Id
    @JSONField(name = "Id")
    var id: String? = null

    /** 上传状态 */
   @Schema(description = "上传状态")
    @Column(name = "upload_state")
    @JSONField(name = "UploadState")
    var uploadState: MntUploadState? = null

    /** 调度器分配相关信息 */
   @Schema(description = "调度器分配相关信息")
    @Column(name = "scheduler_check")
    @JSONField(name = "SchedulerCheck")
    var schedulerCheck: MntSchedulerDispatch? = null

    /** 调度器分配相关信息 */
   @Schema(description = "调度器分配相关信息")
    @Column(name = "scheduler_export")
    @JSONField(name = "SchedulerExport")
    var schedulerExport: MntSchedulerDispatch? = null

    /** 模型检查 */
   @Schema(description = "模型检查")
    @Column(name = "model_check")
    @JSONField(name = "ModelCheck")
    var modelCheck: MntModelCheck? = null

    /** 模型导出 */
   @Schema(description = "模型导出")
    @Column(name = "model_export")
    @JSONField(name = "ModelExport")
    var modelExport: MntModelExport? = null

    /** json分析 */
   @Schema(description = "json分析")
    @Column(name = "json_analysis")
    @JSONField(name = "JsonAnalysis")
    var jsonAnalysis: MntModelAnalysis? = null

    /** 保存模型数据入库 */
   @Schema(description = "保存模型数据入库")
    @Column(name = "save_data")
    @JSONField(name = "SaveData")
    var saveData: MntSaveData? = null

    /** 多楼层模型检查 */
   @Schema(description = "多楼层模型检查")
    @Column(name = "multifloor_check")
    @JSONField(name = "MultiFloorCheck")
    var multiFloorCheck: MntMultiFloorCheck? = null

    /** 同步数据到数据中心 */
   @Schema(description = "同步数据到数据中心")
    @Column(name = "sync_datacenter")
    @JSONField(name = "SyncDatacenter")
    var syncDatacenter: MntSyncDatacenter? = null

    /** 保存日志信息 */
   @Schema(description = "保存日志信息")
    @Column(name = "save_log")
    @JSONField(name = "SaveLog")
    var saveLog: MntSaveLog? = null
}