mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
DbGovor init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace Govor.Core.Models;
|
||||
|
||||
public class ChatGroup
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public List<string> InviteCode { get; set; }
|
||||
public bool IsChannel { get; set; }
|
||||
public bool IsPrivate { get; set; }
|
||||
public List<Guid> Admins { get; set; } = new();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Govor.Core.Models;
|
||||
|
||||
public class GroupAdmins
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid GroupId { get; set; }
|
||||
public Guid UserId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Govor.Core.Models;
|
||||
|
||||
public class GroupMembership
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public Guid GroupId { get; set; }
|
||||
public Guid UserId { get; set; }
|
||||
public bool IsBanned { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Govor.Core.Models;
|
||||
|
||||
public class User
|
||||
{
|
||||
public Guid Id {get; set;}
|
||||
public string Username {get; set;}
|
||||
public string Description {get; set;}
|
||||
public string HashPassword {get; set;}
|
||||
public Guid IconId {get; set;}
|
||||
public DateTime CreatedOn {get; set;}
|
||||
public DateTime WasOnline {get; set;}
|
||||
}
|
||||
Reference in New Issue
Block a user