Registration rework

+ InvitesRepository
+ AdminsRepository
+ rework jwt
This commit is contained in:
Artemy
2025-06-24 14:27:08 +07:00
parent 410a1ce1cc
commit ce013eae49
37 changed files with 2084 additions and 29 deletions
+10
View File
@@ -0,0 +1,10 @@
using System.ComponentModel.DataAnnotations;
namespace Govor.Core.Models;
public class Admin
{
[Key]
public Guid UserId { get; set; }
public User User { get; set; } = null!;
}
+11
View File
@@ -0,0 +1,11 @@
namespace Govor.Core.Models;
public class Invitation
{
public Guid Id { get; set; }
public bool IsAdmin { get; set; }
public DateTime DateCreated { get; set; }
public DateTime EndDate { get; set; }
public int MaxParticipants { get; set; }
public List<User> Users { get; set; } = new List<User>();
}
+2
View File
@@ -11,4 +11,6 @@ public class User
public Guid IconId {get; set;}
public DateOnly CreatedOn {get; set;}
public DateTime WasOnline {get; set;}
public Guid InviteId {get; set;}
public Invitation? Invite { get; set; }
}