-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSmartStorageMonitor.cs
More file actions
29 lines (21 loc) · 1.21 KB
/
Copy pathSmartStorageMonitor.cs
File metadata and controls
29 lines (21 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace RustPlusBot.Domain.StorageMonitors;
/// <summary>A paired Smart Storage Monitor the bot manages, surviving restarts. Guild- and server-scoped.</summary>
public sealed class SmartStorageMonitor
{
/// <summary>Surrogate primary key.</summary>
public Guid Id { get; set; } = Guid.NewGuid();
/// <summary>The owning Discord guild snowflake.</summary>
public ulong GuildId { get; set; }
/// <summary>The server this monitor belongs to (FK to RustServer, cascade delete).</summary>
public Guid ServerId { get; set; }
/// <summary>The in-game storage-monitor entity id.</summary>
public ulong EntityId { get; set; }
/// <summary>User-facing label; defaults to a generated "Storage Monitor <EntityId>" (the FCM event carries no name).</summary>
public string Name { get; set; } = string.Empty;
/// <summary>The Discord message id of this monitor's embed, or null until first posted.</summary>
public ulong? MessageId { get; set; }
/// <summary>The Discord user who accepted (validated) the pairing.</summary>
public ulong PairedByUserId { get; set; }
/// <summary>When the monitor was accepted (UTC).</summary>
public DateTimeOffset CreatedUtc { get; set; }
}