package com.ys.bdtp.adm.mvvm.model.db.entity.task

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.ys.bdtp.adm.mvvm.model.db.entity.BaseEntity

/**
 * 设备问题 表
 */
@Entity(tableName = "problem_equip")
data class ProblemEquipEntity(
    @PrimaryKey @ColumnInfo(name = "id") override val id: String,
    @ColumnInfo(name = "floor_id") override val floorId: String,
    @ColumnInfo(name = "project_id") override val projectId: String,
    @ColumnInfo(name = "building_id") override val buildingId: String,
    @ColumnInfo(name = "state") override var state: Int = -1,
    @ColumnInfo(name = "valid") override var valid: Int = 1,
    @ColumnInfo(name = "ts") override val ts: Long = 0L,
    @ColumnInfo(name = "equip_id") val equipId: String,                  // 设备id
    @ColumnInfo(name = "work_id") val workId: String? = null,            // 交付工作流程id
    @ColumnInfo(name = "problem_type") val problemType: String? = null,  // 问题类型
    @ColumnInfo(name = "problem_state") val problemState: Int? = null,   // 建筑结构核查任务状态(0:删除;1:有效;2:已解决)
    @ColumnInfo(name = "message") val message: String? = null,           // 问题描述
) : BaseEntity
