I get an array with a not specified number of BlueCones with different x and y Values, every 0.5s I receive new BlueCones that should Replace the old Cones in the "blue_cone" table how can I auto-generate Keys that always start with 0 for new Incoming Cones.
@Entity(tableName ="blue_cones")
data class BlueCone(
val x: Double = 0.0,
val y: Double = 0.0
){
@PrimaryKey(autoGenerate = true)
var blueId: Int = 0
}