using CMSMicroservice.Domain.Entities.Payment;
using CMSMicroservice.Domain.Entities.Order;
using CMSMicroservice.Domain.Entities.DiscountShop;

namespace CMSMicroservice.Application.Common.Interfaces;

public interface IApplicationDbContext
{
    DbSet<UserAddress> UserAddresses { get; }
    DbSet<Package> Packages { get; }
    DbSet<Role> Roles { get; }
    DbSet<Category> Categories { get; }
    DbSet<UserRole> UserRoles { get; }
    DbSet<UserCart> UserCarts { get; }
    DbSet<ProductGallery> ProductGalleries { get; }
    DbSet<FactorDetails> FactorDetails { get; }
    DbSet<Product> Products { get; }
    DbSet<ProductImage> ProductImages { get; }
    DbSet<User> Users { get; }
    DbSet<OtpToken> OtpTokens { get; }
    DbSet<Contract> Contracts { get; }
    DbSet<UserContract> UserContracts { get; }
    DbSet<Tag> Tags { get; }
    DbSet<ProductCategory> ProductCategories { get; }
    DbSet<ProductTag> ProductTags { get; }
    DbSet<Transaction> Transactions { get; }
    DbSet<UserOrder> UserOrders { get; }
    DbSet<OrderVAT> OrderVATs { get; }
    DbSet<UserPackagePurchase> UserPackagePurchases { get; }
    DbSet<UserWallet> UserWallets { get; }
    DbSet<UserWalletChangeLog> UserWalletChangeLogs { get; }
    DbSet<SystemConfiguration> SystemConfigurations { get; }
    DbSet<SystemConfigurationHistory> SystemConfigurationHistories { get; }
    DbSet<ManualPayment> ManualPayments { get; }
    DbSet<PublicMessage> PublicMessages { get; }
    DbSet<ClubMembership> ClubMemberships { get; }
    DbSet<ClubMembershipHistory> ClubMembershipHistories { get; }
    DbSet<ClubFeature> ClubFeatures { get; }
    DbSet<UserClubFeature> UserClubFeatures { get; }
    DbSet<NetworkWeeklyBalance> NetworkWeeklyBalances { get; }
    DbSet<NetworkMembershipHistory> NetworkMembershipHistories { get; }
    DbSet<WeeklyCommissionPool> WeeklyCommissionPools { get; }
    DbSet<UserCommissionPayout> UserCommissionPayouts { get; }
    DbSet<CommissionPayoutHistory> CommissionPayoutHistories { get; }
    DbSet<WorkerExecutionLog> WorkerExecutionLogs { get; }
    DbSet<DayaLoanContract> DayaLoanContracts { get; }
    
    // ============= Discount Shop =============
    DbSet<DiscountProduct> DiscountProducts { get; }
    DbSet<DiscountCategory> DiscountCategories { get; }
    DbSet<DiscountProductCategory> DiscountProductCategories { get; }
    DbSet<DiscountShoppingCart> DiscountShoppingCarts { get; }
    DbSet<DiscountOrder> DiscountOrders { get; }
    DbSet<DiscountOrderDetail> DiscountOrderDetails { get; }
    
    Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
}