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

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * cad 表
 *
 * @author bai
 *
 * @param id
 * @param fileKey 存储系统的key
 * @param fileName 文件名称
 * @param majorCode 专业编码
 * @param majorName 专业名称
 * @param checkStatus 核查状态: 0 未完成, 1 已完成
 * @param floorId 楼层id
 * @param buildingId 建筑id
 * @param projectId 项目id
 * @param valid 合法标识
 * @param creator 创建人
 * @param creationTime 创建时间
 * @param modifier 最后修改人
 * @param modifiedTime 最后修改时间
 * @param ts 时间戳
 *
 */
@Entity(tableName = "cad")
class CadEntity(
    @PrimaryKey @ColumnInfo(name = "id") val id: String,
    @ColumnInfo(name = "file_key") val fileKey: String,
    @ColumnInfo(name = "file_name") val fileName: String,
    @ColumnInfo(name = "major_code") val majorCode: String,
    @ColumnInfo(name = "major_name") val majorName: String,
    @ColumnInfo(name = "check_status") val checkStatus: String,
    @ColumnInfo(name = "floor_id") val floorId: String,
    @ColumnInfo(name = "building_id") val buildingId: String,
    @ColumnInfo(name = "project_id") val projectId: String,
    @ColumnInfo(name = "valid") val valid: Int,
    @ColumnInfo(name = "creator") val creator: String,
    @ColumnInfo(name = "creation_time") val creationTime: String,
    @ColumnInfo(name = "modifier") val modifier: String,
    @ColumnInfo(name = "modified_time") val modifiedTime: String,
    @ColumnInfo(name = "ts") val ts: Long
)