using System; using System.Collections.Generic; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; namespace SkyArtShop.Models; public class Order { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string? Id { get; set; } public string CustomerEmail { get; set; } = string.Empty; public string CustomerName { get; set; } = string.Empty; public List Items { get; set; } = new List(); public decimal TotalAmount { get; set; } public string Status { get; set; } = "Pending"; public DateTime OrderDate { get; set; } = DateTime.UtcNow; public DateTime? CompletedDate { get; set; } }