DbGovor init

This commit is contained in:
Artemy
2025-06-16 22:31:45 +07:00
parent c7c778ceb1
commit d62c38db51
25 changed files with 613 additions and 36 deletions
+11
View File
@@ -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();
}
+8
View File
@@ -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; }
}
+9
View File
@@ -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; }
}
+12
View File
@@ -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;}
}