mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Add group icon and privacy to the database schema
This commit is contained in:
parent
18cb6785e9
commit
9d5be07f0c
3 changed files with 24 additions and 1 deletions
|
|
@ -11,6 +11,11 @@ namespace PluralKit.Core
|
|||
|
||||
public string Name { get; } = null!;
|
||||
public string? Description { get; }
|
||||
public string? Icon { get; }
|
||||
|
||||
public PrivacyLevel DescriptionPrivacy { get; }
|
||||
public PrivacyLevel IconPrivacy { get; }
|
||||
public PrivacyLevel Visibility { get; }
|
||||
|
||||
public Instant Created { get; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,18 @@ namespace PluralKit.Core
|
|||
{
|
||||
public Partial<string> Name { get; set; }
|
||||
public Partial<string?> Description { get; set; }
|
||||
public Partial<string?> Icon { get; set; }
|
||||
|
||||
public Partial<PrivacyLevel> DescriptionPrivacy { get; set; }
|
||||
public Partial<PrivacyLevel> IconPrivacy { get; set; }
|
||||
public Partial<PrivacyLevel> Visibility { get; set; }
|
||||
|
||||
public override UpdateQueryBuilder Apply(UpdateQueryBuilder b) => b
|
||||
.With("name", Name)
|
||||
.With("description", Description);
|
||||
.With("description", Description)
|
||||
.With("icon", Icon)
|
||||
.With("description_privacy", DescriptionPrivacy)
|
||||
.With("icon_privacy", IconPrivacy)
|
||||
.With("visibility", Visibility);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue