Files
CMS/src/CMSMicroservice.Domain/Entities/UserOrder.cs
masoodafar-web a2d293ed01 update
2025-11-25 00:39:31 +03:30

33 lines
1.2 KiB
C#

using CMSMicroservice.Domain.Enums;
namespace CMSMicroservice.Domain.Entities;
//سفارش کاربر
public class UserOrder : BaseAuditableEntity
{
//قیمت
public long Amount { get; set; }
//شناسه پکیج
public long? PackageId { get; set; }
//Package Navigation Property
public virtual Package? Package { get; set; }
//شناسه تراکنش
public long? TransactionId { get; set; }
//وضعیت پرداخت
public PaymentStatus PaymentStatus { get; set; }
//تاریخ پرداخت
public DateTime? PaymentDate { get; set; }
//شناسه کاربر
public long UserId { get; set; }
//User Navigation Property
public virtual User User { get; set; }
//شناسه آدرس کاربر
public long UserAddressId { get; set; }
//UserAddress Navigation Property
public virtual UserAddress UserAddress { get; set; }
public PaymentMethod? PaymentMethod { get; set; }
//FactorDetails Collection Navigation Reference
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
//Transactions Collection Navigation Reference
public virtual ICollection<Transactions> Transactionss { get; set; }
}