using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using TeamManiacs.Core.Enums;

namespace TeamManiacs.Core.Models
{
    [Keyless]
    public class UserEdit
    {
        [Required]
        public int UserId { get; set; }

        [StringLength(200)]
        [Unicode(false)]
        public string Username { get; set; }

        [JsonConverter(typeof(JsonStringEnumMemberConverter))]
        public PrivTypes Privileges { get; set; }

    }
}
