Noi
1149f2800d
Moved modules into the assembly itself to simplify development of further features and reduce complexity in building this project. Additionally, many small adjustments were made, including: - Add documentation to most public methods that had it missing - Minor style updates - Updated readme to reflect near-completion of this rewrite - Remove any last remaining references to old project name Kerobot - Update dependencies
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace RegexBot.Data;
|
|
/// <summary>
|
|
/// Represents an item in the guild user cache.
|
|
/// </summary>
|
|
[Table("cache_usersinguild")]
|
|
public class CachedGuildUser {
|
|
/// <inheritdoc cref="CachedUser.UserId"/>
|
|
public long UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the associated guild's snowflake ID.
|
|
/// </summary>
|
|
public long GuildId { get; set; }
|
|
|
|
/// <inheritdoc cref="CachedUser.ULastUpdateTime"/>
|
|
public DateTimeOffset GULastUpdateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the timestamp showing when this cache entry was first added into the database.
|
|
/// </summary>
|
|
public DateTimeOffset FirstSeenTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the user's cached nickname in the guild.
|
|
/// </summary>
|
|
public string? Nickname { get; set; }
|
|
|
|
/// <summary>
|
|
/// If included in the query, references the associated <seealso cref="CachedUser"/> for this entry.
|
|
/// </summary>
|
|
[ForeignKey(nameof(UserId))]
|
|
[InverseProperty(nameof(CachedUser.Guilds))]
|
|
public CachedUser User { get; set; } = null!;
|
|
}
|