feat(onboarding): Explicit Device Enrollment für Master-Geräte hinzugefügt

- Master-Geräte können erwartete Clients inkl. Name & Rolle definieren.
- Neue Rollen (`RICHTER`, `ZEITNEHMER` etc.) integriert.
- Backend- und Frontend-Validierung erweitert, UI-Komponente für Client-Verwaltung.

Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-16 10:24:49 +02:00
parent f98a9075ae
commit 82a4a13505
9 changed files with 201 additions and 7 deletions
@@ -10,13 +10,22 @@ import kotlin.time.Instant
data class Device(
val id: UUID = UUID.randomUUID(),
val name: String,
val expectedName: String? = null, // Falls vom Master vor-registriert
val securityKeyHash: String, // Gehasht für Sicherheit
val role: DeviceRole = DeviceRole.CLIENT,
val lastSyncAt: Instant? = null,
val isOnline: Boolean = false,
val isSynchronized: Boolean = true,
val createdAt: Instant,
val updatedAt: Instant = createdAt
)
enum class DeviceRole {
MASTER, CLIENT
MASTER,
CLIENT,
RICHTER,
ZEITNEHMER,
STALLMEISTER,
ANZEIGE,
PARCOURS_CHEF
}