Android - Primary key ID starts with 1000 using Room DB
I am new on Room Database and I am trying to implement a table that is autogenerated but it starts on 1000.
Here is my code.
@Entity(tableName = "sample_table")
data class SampleTable(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "sample_id")
val sampleID: Long = 1000.toLong(),
@ColumnInfo(name = "sample_date")
val sampleDate: String? = null
)
I changed the default value to 1000 and still doesn't work