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


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

/**
 * config 表
 *
 * @author bai
 *
 * @param code 配置项编码
 * @param name 配置项名称
 * @param data 配置项内容
 *
 */
@Entity(tableName = "config")
data class ConfigEntity(
    @PrimaryKey val id: String,
    @ColumnInfo(name = "code") val code: String,               // 配置项编码
    @ColumnInfo(name = "name") val name: String,               // 配置项名称
    @ColumnInfo(name = "data") val data: JsonElement? = null,  //
)

/**
 * 基本配置数据
 */
data class BasicConfigData(
    val code: Any,
    val name: String
)