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 valid 有效标识: 0 无效, 1 有效
 * @param remark 备注
 */
@Entity(tableName = "major")
data class MajorEntity(
    @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, // 字典类型id
    @ColumnInfo(name = "valid") var valid: Int?,               // 有效标识: 1 正常 0 删除
    @ColumnInfo(name = "remark") var remark: String?,          // 备注
)