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

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

/**
 * 对象类型与问题类型定义表
 *
 * @author bai
 *
 * @param id
 * @param objTypeCode 对象类型编码
 * @param objTypeName 对象类型名称
 * @param problemTypeCode 问题类型编码
 * @param problemTypeName 问题类型名称
 * @param valid 合法标识
 * @param creator 创建人
 * @param creationTime 创建时间
 * @param modifier 最后修改人
 * @param modifiedTime 最后修改时间
 * @param ts 时间戳
 *
 */
@Entity(tableName = "obj_problem_rel")
class ObjectProblemRelEntity(
    @PrimaryKey @ColumnInfo(name = "id") val id: String,
    @ColumnInfo(name = "obj_type_code") val objTypeCode: String,
    @ColumnInfo(name = "obj_type_name") val objTypeName: String,
    @ColumnInfo(name = "problem_type_code") val problemTypeCode: String,
    @ColumnInfo(name = "problem_type_name") val problemTypeName: 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,
)