Added Discord Bot

This commit is contained in:
Sarah Faey 2022-11-06 19:10:58 +01:00
parent e7a0c9ae68
commit e445b2a181
48 changed files with 1255 additions and 157 deletions

24
Lieb/Models/LiebUser.cs Normal file
View file

@ -0,0 +1,24 @@
using Lieb.Models.GuildWars2;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Lieb.Models
{
public class LiebUser
{
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public ulong Id { get; set; }
[Required]
[StringLength(40, ErrorMessage = "Name too long (40 character limit).")]
public string Name { get; set; } = string.Empty;
[StringLength(60, ErrorMessage = "Pronouns too long (60 character limit).")]
public string Pronouns { get; set; } = string.Empty;
public DateTime? Birthday { get; set; }
public DateTime? BannedUntil { get; set; }
public ICollection<GuildWars2Account> GuildWars2Accounts { get; set; } = new List<GuildWars2Account>();
public ICollection<RoleAssignment> RoleAssignments { get; set; } = new List<RoleAssignment>();
}
}