keep track of history

This commit is contained in:
gowthaman.b
2024-05-08 14:20:49 +05:30
parent c4985f9690
commit 18afa76d56
2 changed files with 21 additions and 1 deletions

View File

@@ -687,6 +687,13 @@ open class Plant : BaseModel() {
var prefixes: MutableMap<String, String>? = mutableMapOf()
}
data class RefreshHistory(
val oldAt: String,
val oldExpiryAt: LocalDateTime,
val newAt: String,
val newExpiryAt: LocalDateTime,
val createdAt: LocalDateTime
)
@Entity
open class AuthTokenCache : BaseModel() {
@Column(columnDefinition = "text")
@@ -700,4 +707,7 @@ open class AuthTokenCache : BaseModel() {
var userId: String = ""
var expired: Boolean = false
var loggedOut: Boolean = false
@DbJsonB
var refreshHistory: MutableList<RefreshHistory>? = arrayListOf()
}