Generator Changes at 11/12/2025 1:32:03 AM +03:30
This commit is contained in:
16
src/CMSMicroservice.Domain/Entities/FactorDetails.cs
Normal file
16
src/CMSMicroservice.Domain/Entities/FactorDetails.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class FactorDetails : BaseAuditableEntity
|
||||
{
|
||||
public long ProductId { get; set; }
|
||||
//Product Navigation Property
|
||||
public virtual Products Product { get; set; }
|
||||
public int Count { get; set; }
|
||||
public long UnitPrice { get; set; }
|
||||
public int UnitDiscount { get; set; }
|
||||
public long OrderId { get; set; }
|
||||
//Order Navigation Property
|
||||
public virtual UserOrder Order { get; set; }
|
||||
public long UnitDiscountPrice { get; set; }
|
||||
public bool IsChangePrice { get; set; }
|
||||
}
|
||||
11
src/CMSMicroservice.Domain/Entities/ProductGallerys.cs
Normal file
11
src/CMSMicroservice.Domain/Entities/ProductGallerys.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//توکن Otp
|
||||
public class ProductGallerys : BaseAuditableEntity
|
||||
{
|
||||
public long ProductImageId { get; set; }
|
||||
//ProductImage Navigation Property
|
||||
public virtual ProductImages ProductImage { get; set; }
|
||||
public long ProductId { get; set; }
|
||||
//Product Navigation Property
|
||||
public virtual Products Product { get; set; }
|
||||
}
|
||||
10
src/CMSMicroservice.Domain/Entities/ProductImages.cs
Normal file
10
src/CMSMicroservice.Domain/Entities/ProductImages.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//توکن Otp
|
||||
public class ProductImages : BaseAuditableEntity
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string ImagePath { get; set; }
|
||||
public string ImageThumbnailPath { get; set; }
|
||||
//ProductGallerys Collection Navigation Reference
|
||||
public virtual ICollection<ProductGallerys> ProductGalleryss { get; set; }
|
||||
}
|
||||
23
src/CMSMicroservice.Domain/Entities/Products.cs
Normal file
23
src/CMSMicroservice.Domain/Entities/Products.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//توکن Otp
|
||||
public class Products : BaseAuditableEntity
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string ShortInfomation { get; set; }
|
||||
public string FullInformation { get; set; }
|
||||
public long Price { get; set; }
|
||||
public int Discount { get; set; }
|
||||
public int Rate { get; set; }
|
||||
public string ImagePath { get; set; }
|
||||
public string ThumbnailPath { get; set; }
|
||||
public int SaleCount { get; set; }
|
||||
public int ViewCount { get; set; }
|
||||
public int RemainingCount { get; set; }
|
||||
//UserCarts Collection Navigation Reference
|
||||
public virtual ICollection<UserCarts> UserCartss { get; set; }
|
||||
//ProductGallerys Collection Navigation Reference
|
||||
public virtual ICollection<ProductGallerys> ProductGalleryss { get; set; }
|
||||
//FactorDetails Collection Navigation Reference
|
||||
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
|
||||
}
|
||||
29
src/CMSMicroservice.Domain/Entities/Transactions.cs
Normal file
29
src/CMSMicroservice.Domain/Entities/Transactions.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class Transactions : BaseAuditableEntity
|
||||
{
|
||||
public string MerchantId { get; set; }
|
||||
public long Amount { get; set; }
|
||||
public string CallbackUrl { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string? Mobile { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public int? RequestStatusCode { get; set; }
|
||||
public string? RequestStatusMessage { get; set; }
|
||||
public string? Authority { get; set; }
|
||||
public string? FeeType { get; set; }
|
||||
public long? Fee { get; set; }
|
||||
public int? Currency { get; set; }
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
//تاریخ پرداخت
|
||||
public DateTime? PaymentDate { get; set; }
|
||||
public int? VerificationStatusCode { get; set; }
|
||||
public string? VerificationStatusMessage { get; set; }
|
||||
public string? CardHash { get; set; }
|
||||
public string? CardPan { get; set; }
|
||||
public string? RefId { get; set; }
|
||||
public string? OrderId { get; set; }
|
||||
//Order Navigation Property
|
||||
public virtual UserOrder? Order { get; set; }
|
||||
public TransactionType Type { get; set; }
|
||||
}
|
||||
@@ -2,44 +2,48 @@ namespace CMSMicroservice.Domain.Entities;
|
||||
//کاربر
|
||||
public class User : BaseAuditableEntity
|
||||
{
|
||||
//نام
|
||||
//نام
|
||||
public string? FirstName { get; set; }
|
||||
//نام خانوادگی
|
||||
//نام خانوادگی
|
||||
public string? LastName { get; set; }
|
||||
//شماره موبایل
|
||||
//شماره موبایل
|
||||
public string Mobile { get; set; }
|
||||
//کد ملی
|
||||
//کد ملی
|
||||
public string? NationalCode { get; set; }
|
||||
//آدرس آواتار
|
||||
//آدرس آواتار
|
||||
public string? AvatarPath { get; set; }
|
||||
//شناسه والد
|
||||
//شناسه والد
|
||||
public long? ParentId { get; set; }
|
||||
//User Navigation Property
|
||||
//User Navigation Property
|
||||
public virtual User? Parent { get; set; }
|
||||
//کد ارجاع
|
||||
//کد ارجاع
|
||||
public string ReferralCode { get; set; }
|
||||
//موبایل فعال شده؟
|
||||
//موبایل فعال شده؟
|
||||
public bool IsMobileVerified { get; set; }
|
||||
//تاریخ فعال سازی موبایل
|
||||
//تاریخ فعال سازی موبایل
|
||||
public DateTime? MobileVerifiedAt { get; set; }
|
||||
//قوانین پذیرفته شده؟
|
||||
//قوانین پذیرفته شده؟
|
||||
public bool IsRulesAccepted { get; set; }
|
||||
//تاریخ پذیرش قوانین
|
||||
//تاریخ پذیرش قوانین
|
||||
public DateTime? RulesAcceptedAt { get; set; }
|
||||
//اعلان ایمیل
|
||||
//اعلان ایمیل
|
||||
public bool EmailNotifications { get; set; }
|
||||
//اعلان پیامک
|
||||
//اعلان پیامک
|
||||
public bool SmsNotifications { get; set; }
|
||||
//اعلان پوش
|
||||
//اعلان پوش
|
||||
public bool PushNotifications { get; set; }
|
||||
//تاریخ تولد
|
||||
//تاریخ تولد
|
||||
public DateTime? BirthDate { get; set; }
|
||||
//UserAddress Collection Navigation Reference
|
||||
public virtual ICollection<UserAddress> UserAddresss { get; set; }
|
||||
//UserRole Collection Navigation Reference
|
||||
public virtual ICollection<UserRole> UserRoles { get; set; }
|
||||
//UserOrder Collection Navigation Reference
|
||||
public virtual ICollection<UserOrder> UserOrders { get; set; }
|
||||
//User Collection Navigation Reference
|
||||
public virtual ICollection<User> Users { get; set; }
|
||||
}
|
||||
//UserWallet Collection Navigation Reference
|
||||
public virtual ICollection<UserWallet> UserWallets { get; set; }
|
||||
//UserCarts Collection Navigation Reference
|
||||
public virtual ICollection<UserCarts> UserCartss { get; set; }
|
||||
//UserOrder Collection Navigation Reference
|
||||
public virtual ICollection<UserOrder> UserOrders { get; set; }
|
||||
}
|
||||
|
||||
12
src/CMSMicroservice.Domain/Entities/UserCarts.cs
Normal file
12
src/CMSMicroservice.Domain/Entities/UserCarts.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class UserCarts : BaseAuditableEntity
|
||||
{
|
||||
public long ProductId { get; set; }
|
||||
//Product Navigation Property
|
||||
public virtual Products Product { get; set; }
|
||||
public long UserId { get; set; }
|
||||
//User Navigation Property
|
||||
public virtual User User { get; set; }
|
||||
public int Count { get; set; }
|
||||
}
|
||||
@@ -2,24 +2,28 @@ namespace CMSMicroservice.Domain.Entities;
|
||||
//سفارش کاربر
|
||||
public class UserOrder : BaseAuditableEntity
|
||||
{
|
||||
//قیمت
|
||||
//قیمت
|
||||
public long Price { get; set; }
|
||||
//شناسه پکیج
|
||||
//شناسه پکیج
|
||||
public long PackageId { get; set; }
|
||||
//Package Navigation Property
|
||||
//Package Navigation Property
|
||||
public virtual Package Package { get; set; }
|
||||
//شناسه تراکنش
|
||||
//شناسه تراکنش
|
||||
public long? TransactionId { get; set; }
|
||||
//وضعیت پرداخت
|
||||
public bool PaymentStatus { get; set; }
|
||||
//تاریخ پرداخت
|
||||
//وضعیت پرداخت
|
||||
public PaymentStatus PaymentStatus { get; set; }
|
||||
//تاریخ پرداخت
|
||||
public DateTime? PaymentDate { get; set; }
|
||||
//شناسه کاربر
|
||||
//شناسه کاربر
|
||||
public long UserId { get; set; }
|
||||
//User Navigation Property
|
||||
//User Navigation Property
|
||||
public virtual User User { get; set; }
|
||||
//شناسه آدرس کاربر
|
||||
//شناسه آدرس کاربر
|
||||
public long UserAddressId { get; set; }
|
||||
//UserAddress Navigation Property
|
||||
//UserAddress Navigation Property
|
||||
public virtual UserAddress UserAddress { get; set; }
|
||||
}
|
||||
//FactorDetails Collection Navigation Reference
|
||||
public virtual ICollection<FactorDetails> FactorDetailss { get; set; }
|
||||
//Transactions Collection Navigation Reference
|
||||
public virtual ICollection<Transactions> Transactionss { get; set; }
|
||||
}
|
||||
|
||||
13
src/CMSMicroservice.Domain/Entities/UserWallet.cs
Normal file
13
src/CMSMicroservice.Domain/Entities/UserWallet.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class UserWallet : BaseAuditableEntity
|
||||
{
|
||||
//شناسه کاربر
|
||||
public long UserId { get; set; }
|
||||
//User Navigation Property
|
||||
public virtual User User { get; set; }
|
||||
//موجودی
|
||||
public long Balance { get; set; }
|
||||
//UserWalletChangeLog Collection Navigation Reference
|
||||
public virtual ICollection<UserWalletChangeLog> UserWalletChangeLogs { get; set; }
|
||||
}
|
||||
17
src/CMSMicroservice.Domain/Entities/UserWalletChangeLog.cs
Normal file
17
src/CMSMicroservice.Domain/Entities/UserWalletChangeLog.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace CMSMicroservice.Domain.Entities;
|
||||
//آدرس کاربر
|
||||
public class UserWalletChangeLog : BaseAuditableEntity
|
||||
{
|
||||
//شناسه کیف پول
|
||||
public long WalletId { get; set; }
|
||||
//Wallet Navigation Property
|
||||
public virtual UserWallet Wallet { get; set; }
|
||||
//موجودی
|
||||
public long CurrentBalance { get; set; }
|
||||
//تغییر موجودی
|
||||
public long ChangeValue { get; set; }
|
||||
//افزایشی؟
|
||||
public bool IsIncrease { get; set; }
|
||||
//شناسه ارجاع
|
||||
public long? RefrenceId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user