package com.example.myapplication.database.room.model.item

import androidx.room.ColumnInfo
import androidx.room.Relation
import com.example.myapplication.database.room.model.bike.Bike
import org.threeten.bp.LocalDateTime

data class ItemFromCart(
    @ColumnInfo(name = "uid")
    val uid: Int = 0,
    @ColumnInfo(name = "date_time")
    val dateTime: LocalDateTime,
    val weight: Double,
    val radius: Double,
    val colorbike: String,
    @ColumnInfo(name = "available_count")
    val availableCount: Int,
    val count: Int,
    @ColumnInfo(name = "bike_id")
    val bikeId: Int = 0,
    @Relation(
        parentColumn = "bike_id",
        entity = Bike::class,
        entityColumn = "uid"
    ) val bike: Bike
)