using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ToDoApp.Model { public class Item { public int Id { get; set; } [Required] public int UserId { get; set; } [Required] public string Title { get; set; } public string Description { get; set; } public DateTime DueDate { get; set; } public bool IsCompleted { get; set; } public DateTime CreateDate { get; set; } public User User { get; set; } } }