2020-02-12 14:16:19 +00:00
|
|
|
|
using Dapper.Contrib.Extensions;
|
|
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
using NodaTime;
|
|
|
|
|
|
|
|
|
|
namespace PluralKit.Core {
|
|
|
|
|
public class PKSystem
|
|
|
|
|
{
|
|
|
|
|
// Additions here should be mirrored in SystemStore::Save
|
2020-06-14 19:37:04 +00:00
|
|
|
|
[Key] public SystemId Id { get; }
|
2020-06-13 11:11:08 +00:00
|
|
|
|
public string Hid { get; }
|
2020-06-13 11:06:41 +00:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
public string Tag { get; set; }
|
|
|
|
|
public string AvatarUrl { get; set; }
|
|
|
|
|
public string Token { get; set; }
|
2020-06-13 11:11:08 +00:00
|
|
|
|
public Instant Created { get; }
|
2020-06-13 11:06:41 +00:00
|
|
|
|
public string UiTz { get; set; }
|
|
|
|
|
public bool PingsEnabled { get; set; }
|
2020-03-22 05:42:39 +00:00
|
|
|
|
public PrivacyLevel DescriptionPrivacy { get; set; }
|
2020-02-12 14:16:19 +00:00
|
|
|
|
public PrivacyLevel MemberListPrivacy { get; set; }
|
|
|
|
|
public PrivacyLevel FrontPrivacy { get; set; }
|
|
|
|
|
public PrivacyLevel FrontHistoryPrivacy { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore] public DateTimeZone Zone => DateTimeZoneProviders.Tzdb.GetZoneOrNull(UiTz);
|
|
|
|
|
}
|
2020-03-21 13:04:41 +00:00
|
|
|
|
}
|