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

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable

/**
 * 关系配置 表
 */
@Entity(tableName = "rel_config")
data class RelConfigEntity(
    @PrimaryKey val id: String,
    @ColumnInfo(name = "project_id") val projectId: String?,           // 项目id
    @ColumnInfo(name = "obj_type_from") val objTypeFrom: String?,      // from 端对象类型(space|equipment)
    @ColumnInfo(name = "obj_type_to") val objTypeTo: String?,          //  to  端对象类型(space|equipment)
    @ColumnInfo(name = "class_code_from") val classCodeFrom: String?,  // from 端对象class_code
    @ColumnInfo(name = "class_code_to") val classCodeTo: String?,      //  to  端对象class_code
    @ColumnInfo(name = "graph_code") val graphCode: String?,           // 关系的图类型编码
    @ColumnInfo(name = "graph_name") val graphName: String?,           // 关系的图类型名称
    @ColumnInfo(name = "rel_code") val relCode: String?,               // 关系的边类型编码
    @ColumnInfo(name = "rel_name") val relName: String?,               // 关系的边类型名称
    @ColumnInfo(name = "direction") val direction: String?,            // 关系方向(fixed|optional|none)
): Serializable
