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

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

/**
 * 管道配置 表
 *
 * @author bai
 *
 * @param id
 * @param classCodeFrom from 端设备对象class_code
 * @param classCodeTo to 端设备对象class_code
 * @param pipeType 管道类型(数据字典定义)
 * @param pipeSubType 管道用途(业务定义补充描述类型)
 * @param pipeDirection 管道方向(1:正向from->to;-1:反向to->from;0:无方向)
 */
@Entity(tableName = "pipe_config")
data class PipeConfigEntity(
    @PrimaryKey  @ColumnInfo(name = "id") val id: String,
    @ColumnInfo(name = "class_code_from") val classCodeFrom: String?,    // from 端设备对象class_code
    @ColumnInfo(name = "class_code_to") val classCodeTo: String?,        //  to  端设备对象class_code
    @ColumnInfo(name = "pipe_type") val pipeType: String?,               // 管道类型(数据字典定义)
    @ColumnInfo(name = "pipe_sub_type") val pipeSubType: String?,        // 管道用途(业务定义补充描述类型)
    @ColumnInfo(name = "pipe_direction") val pipeDirection: Int?,        // 管道方向(1:正向from->to;-1:反向to->from;0:无方向)
)
