mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
Too many refactors in one:
- Allowed adding ephemeral(ish) views and functions - Moved message_count to a concrete database field - Moved most proxy logic to a stored procedure - Moved database files around and refactored schema manager
This commit is contained in:
parent
24f1363bb0
commit
ba441a15cc
37 changed files with 554 additions and 398 deletions
26
PluralKit.Core/Database/ProxyMember.cs
Normal file
26
PluralKit.Core/Database/ProxyMember.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace PluralKit.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Model for the `proxy_info` PL/pgSQL function in `functions.sql`
|
||||
/// </summary>
|
||||
public class ProxyMember
|
||||
{
|
||||
public int SystemId { get; set; }
|
||||
public int MemberId { get; set; }
|
||||
public bool ProxyEnabled { get; set; }
|
||||
public AutoproxyMode AutoproxyMode { get; set; }
|
||||
public bool IsAutoproxyMember { get; set; }
|
||||
public ulong? LatchMessage { get; set; }
|
||||
public string ProxyName { get; set; } = "";
|
||||
public string? ProxyAvatar { get; set; }
|
||||
public IReadOnlyCollection<ProxyTag> ProxyTags { get; set; } = new ProxyTag[0];
|
||||
public bool KeepProxy { get; set; }
|
||||
|
||||
public IReadOnlyCollection<ulong> ChannelBlacklist { get; set; } = new ulong[0];
|
||||
public IReadOnlyCollection<ulong> LogBlacklist { get; set; } = new ulong[0];
|
||||
public ulong? LogChannel { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue