package com.framework.mvvm.model.db.entity.rel

import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.Relation
import com.framework.mvvm.model.db.entity.dict.MajorEntity
import com.framework.mvvm.model.db.entity.dict.SystemEntity

/**
 * 专业与系统一对多关系表
 */
@Entity(tableName = "major_sys_rel")
data class MajorSysRel(
    @Embedded val user: MajorEntity,
    @Relation(
        parentColumn = "id",
        entityColumn = ""
    )
    val systems: List<SystemEntity>
)