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

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.JsonElement

/**
 * 字典, 信息表
 *
 * @author bai
 *
 * @param id
 * @param code 信息编码
 * @param name 信息名称
 * @param aliasCode 编码别名
 * @param classCode 类型编码
 * @param groupCode 集团编码
 * @param projectId 项目id
 * @param firstTag
 * @param secondTag
 * @param inputMode
 * @param unit
 * @param dataType
 * @param dataSource
 * @param showOrder
 * @param version
 *
 */
@Entity(tableName = "info")
data class InfoEntity(
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id") val id: Int = 0,
    @ColumnInfo(name = "code") val code: String? = null,
    @ColumnInfo(name = "name") val name: String? = null,
    @ColumnInfo(name = "alias_code") val aliasCode: String? = null,
    @ColumnInfo(name = "class_code") val classCode: String? = null,
    @ColumnInfo(name = "group_code") val groupCode: String? = null,
    @ColumnInfo(name = "project_id") val projectId: String? = null,
    @ColumnInfo(name = "first_tag") val firstTag: String? = null,
    @ColumnInfo(name = "second_tag") val secondTag: String? = null,
    @ColumnInfo(name = "input_mode") val inputMode: String? = null,
    @ColumnInfo(name = "unit") val unit: String? = null,
    @ColumnInfo(name = "data_type") val dataType: String? = null,
    @ColumnInfo(name = "data_source") val dataSource: JsonElement? = null,
    @ColumnInfo(name = "show_order") val showOrder: Long? = null,
    @ColumnInfo(name = "version") val version: String? = null
)