using System.ComponentModel.DataAnnotations.Schema; namespace RegexBot.Data; /// /// Represents an item in the guild user cache. /// [Table("cache_usersinguild")] public class CachedGuildUser { /// /// Gets the associated guild's snowflake ID. /// public ulong GuildId { get; set; } /// public ulong UserId { get; set; } /// public DateTimeOffset GULastUpdateTime { get; set; } /// /// Gets the timestamp showing when this cache entry was first added into the database. /// public DateTimeOffset FirstSeenTime { get; set; } /// /// Gets the user's cached nickname in the guild. /// public string? Nickname { get; set; } /// /// Gets the associated for this entry. This entity is auto-included. /// public CachedUser User { get; set; } = null!; /// /// If included in the query, references all items associated with this entry. /// public ICollection Logs { get; set; } = null!; /// /// If included in the query, references all items associated with this entry. /// public ICollection Messages { get; set; } = null!; }