Files
SkyArtShop/Models/Order.cs

28 lines
641 B
C#
Raw Normal View History

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<OrderItem> Items { get; set; } = new List<OrderItem>();
public decimal TotalAmount { get; set; }
public string Status { get; set; } = "Pending";
public DateTime OrderDate { get; set; } = DateTime.UtcNow;
public DateTime? CompletedDate { get; set; }
}