feat: rewrite database schema for localized autoproxy
This commit is contained in:
21
PluralKit.Core/Models/Patch/AutoproxyPatch.cs
Normal file
21
PluralKit.Core/Models/Patch/AutoproxyPatch.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
using NodaTime;
|
||||
|
||||
using SqlKata;
|
||||
|
||||
namespace PluralKit.Core;
|
||||
|
||||
public class AutoproxyPatch : PatchObject
|
||||
{
|
||||
public Partial<AutoproxyMode> AutoproxyMode { get; set; }
|
||||
public Partial<MemberId?> AutoproxyMember { get; set; }
|
||||
|
||||
public Partial<Instant> LastLatchTimestamp { get; set; }
|
||||
|
||||
public override Query Apply(Query q) => q.ApplyPatch(wrapper => wrapper
|
||||
.With("autoproxy_mode", AutoproxyMode)
|
||||
.With("autoproxy_member", AutoproxyMember)
|
||||
.With("last_latch_timestamp", LastLatchTimestamp)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user