HOME-programming-pub_ObST/TodoApi/Models/TodoItem.cs
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace TodoApi.Models
{
    public class TodoItem
    {
        public long Id { get; set; }

        [Required]
        public string Name { get; set; }

        [DefaultValue(false)]
        public bool IsComplete { get; set; }
    }

    public class TodoItemDBModel : TodoItem
    {
        public virtual IList<Comment> Comments { get; set; }
    }
}