refactor: entferne toJavaInstant und passe DeviceRepository sowie verwandte Modelle an

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-15 22:28:35 +02:00
parent 1cefc26be9
commit 6d631acce6
4 changed files with 19 additions and 16 deletions
@@ -1,7 +1,7 @@
package at.mocode.identity.domain.model
import kotlinx.datetime.Instant
import java.util.*
import kotlin.time.Instant
/**
* Repräsentiert eine registrierte Desktop-Instanz ("Gerät").
@@ -13,7 +13,8 @@ data class Device(
val securityKeyHash: String, // Gehasht für Sicherheit
val role: DeviceRole = DeviceRole.CLIENT,
val lastSyncAt: Instant? = null,
val createdAt: Instant
val createdAt: Instant,
val updatedAt: Instant = createdAt
)
enum class DeviceRole {
@@ -1,8 +1,8 @@
package at.mocode.identity.domain.repository
import at.mocode.identity.domain.model.Device
import kotlinx.datetime.Instant
import java.util.*
import kotlin.time.Instant
interface DeviceRepository {
suspend fun findById(id: UUID): Device?