MDP/app/src/main/java/com/example/myapplication/model/OrderWithServices.kt

15 lines
370 B
Kotlin
Raw Normal View History

2023-11-14 11:52:44 +04:00
package com.example.myapplication.model
import androidx.room.Embedded
import androidx.room.Junction
import androidx.room.Relation
data class OrderWithServices(
@Embedded val order: Order,
@Relation(
parentColumn = "orderId",
entityColumn = "serviceId",
associateBy = Junction(OrderService::class)
)
val services: List<Service>
)