using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WpfApp29.Models { public class User { public User() { } public User(string name, string familiya, string otchestvo, string login, string password, string phone) { Id = 0; Name = name; Familiya = familiya; Otchestvo = otchestvo; Login = login; Password = password; Phone = phone; } // FOREIGN KEY [Key] public int Id { get; set; } // MAIN FIELDS public string Name { get; set; } public string Familiya { get; set; } public string Otchestvo { get; set; } public string Login { get; set; } public string Password { get; set; } public string Phone { get; set; } // PERVIOUS OBJECTS public virtual List TaskCreators { get; set; } = new List { }; public virtual List TaskDoers { get; set; } = new List { }; public static User CurrentUser { get; set; } = null!; } }