limited string lengths
This commit is contained in:
parent
7113e3abee
commit
210020ece5
7 changed files with 42 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
|||
using Lieb.Models.GuildWars2;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Lieb.Models
|
||||
{
|
||||
|
@ -6,8 +7,15 @@ namespace Lieb.Models
|
|||
{
|
||||
public int LiebUserId { get; set; }
|
||||
public ulong DiscordUserId { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(40, ErrorMessage = "Name too long (40 character limit).")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue