using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace ZB.MOM.WW.CBDDC.Sample.Console; public class TodoList { /// /// Gets or sets the document identifier. /// [Key] public string Id { get; set; } = Guid.NewGuid().ToString(); /// /// Gets or sets the list name. /// public string Name { get; set; } = string.Empty; /// /// Gets or sets the todo items in the list. /// public List Items { get; set; } = new(); } public class TodoItem { /// /// Gets or sets the task description. /// public string Task { get; set; } = string.Empty; /// /// Gets or sets a value indicating whether the task is completed. /// public bool Completed { get; set; } /// /// Gets or sets the UTC creation timestamp. /// public DateTime CreatedAt { get; set; } = DateTime.UtcNow; }