Add Device, DeviceConfig, SystemSettings entities and seed defaults

This commit is contained in:
2026-06-11 18:41:27 +00:00
parent a1aa5023a2
commit 68e7e81312
8 changed files with 634 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
namespace backend.Devices;
public class Device
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid OwnerUserId { get; set; }
public string Name { get; set; } = "";
public DateTimeOffset PairedAt { get; set; }
public DateTimeOffset? LastSeenAt { get; set; }
public string TokenHash { get; set; } = "";
public bool IsRevoked { get; set; }
public DeviceConfig? Config { get; set; }
}
+11
View File
@@ -0,0 +1,11 @@
namespace backend.Devices;
public class DeviceConfig
{
public Guid DeviceId { get; set; }
public string SystemPrompt { get; set; } = "";
public string Voice { get; set; } = "";
public string Model { get; set; } = "";
public int IdleTimeoutSeconds { get; set; } = 30;
public string EnabledToolsJson { get; set; } = "[\"end_session\",\"get_current_time\",\"set_volume\"]";
}