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

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

/**
 * 字典, 专业表
 *
 * @author bai
 *
 * @param id
 * @param label 专业标签
 * @param code 专业编码
 * @param type 专业类型
 * @param orderNum 序号
 * @param dictTypeId 字典类型id
 * @param parentId
 * @param valid 有效标识: 0 无效, 1 有效
 * @param remark 备注
 */
@Entity(tableName = "major_dict")
data class MajorDictEntity(
    @PrimaryKey @ColumnInfo(name = "id") val id: String,
    @ColumnInfo(name = "label") val label: String,
    @ColumnInfo(name = "code") val code: String,
    @ColumnInfo(name = "type") val type: String,
    @ColumnInfo(name = "order_num") val orderNum: Int,
    @ColumnInfo(name = "dict_type_id") val dictTypeId: String,
    @ColumnInfo(name = "parent_id") val parentId: String,
    @ColumnInfo(name = "valid") var valid: Int?,
    @ColumnInfo(name = "remark") var remark: String?,
)