mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 16:28:50 -07:00
-Modify ``User`` To Have Ban Collection -Add ``Bans`` Table To ``DBContext``
22 lines
617 B
C#
22 lines
617 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace sodoff.Model;
|
|
public class User {
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
|
|
[Required]
|
|
public string Email { get; set; } = null!;
|
|
|
|
[Required]
|
|
public string Username { get; set; } = null!;
|
|
|
|
[Required]
|
|
public string Password { get; set; } = null!;
|
|
|
|
public virtual ICollection<Session> Sessions { get; set; } = null!;
|
|
public virtual ICollection<Viking> Vikings { get; set; } = null!;
|
|
public virtual ICollection<PairData> PairData { get; set; } = null!;
|
|
public virtual ICollection<UserBan> Bans { get; set; } = null!;
|
|
}
|