using System.ComponentModel.DataAnnotations; namespace WatchLog.Data { public class User { [Key] public int Id { get; set; } [Required] [MaxLength(100)] public required string Name { get; set; } [MaxLength(255)] public string? Email { get; set; } [Required] public required string Password { get; set; } // Important: Save as HASH // --- Navigation Properties --- public virtual ICollection PrivateEntities { get; set; } = new List(); public virtual ICollection GlobalEntities { get; set; } = new List(); public virtual ICollection