package com.example.myapplication.database.entities.model

import androidx.room.ColumnInfo
import androidx.room.Relation
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,
    @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
)