tempus/app/src/main/java/com/cappielloantonio/tempo/model/RecentSearch.kt

21 lines
479 B
Kotlin
Raw Normal View History

2023-06-17 15:30:23 +02:00
package com.cappielloantonio.tempo.model
2023-03-02 10:48:30 +01:00
import android.os.Parcelable
import androidx.annotation.Keep
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
2023-03-02 10:48:30 +01:00
@Keep
@Parcelize
@Entity(tableName = "recent_search")
data class RecentSearch(
@PrimaryKey
@ColumnInfo(name = "search")
var search: String,
@ColumnInfo(name = "timestamp", defaultValue = "0")
var timestamp: Long
2023-03-02 10:48:30 +01:00
) : Parcelable