* start with group permissions implementation * some minor refactoring * adjust hub for api changes * fixes and database migration * fixes sending online/offline message to clients stuff * remove admin stuff from server * fixes get server permissions * send group pair info to client on joining a group * send online only on sending connection dto --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
19 lines
497 B
C#
19 lines
497 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace MareSynchronosShared.Models;
|
|
|
|
public class Group
|
|
{
|
|
[Key]
|
|
[MaxLength(20)]
|
|
public string GID { get; set; }
|
|
public string OwnerUID { get; set; }
|
|
public User Owner { get; set; }
|
|
[MaxLength(50)]
|
|
public string Alias { get; set; }
|
|
public bool InvitesEnabled { get; set; }
|
|
public string HashedPassword { get; set; }
|
|
public bool DisableSounds { get; set; }
|
|
public bool DisableAnimations { get; set; }
|
|
}
|