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 ItemFromRent(
    @ColumnInfo(name = "uid")
    val uid: Int = 0,
    @ColumnInfo(name = "date_time")
    val dateTime: LocalDateTime,
    @ColumnInfo(name = "frozen_weight")
    val frozenWeight: Double,
    val radius: Double,
    val colorbike: String,
    val count: Int,
    @ColumnInfo(name = "bike_id")
    val bikeId: Int = 0,
    @Relation(
        parentColumn = "bike_id",
        entity = Bike::class,
        entityColumn = "uid"
    )
    val bike: Bike
)