"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatabaseModule = void 0;
const common_1 = require("@nestjs/common");
const typeorm_1 = require("@nestjs/typeorm");
const user_entity_1 = require("./entities/user.entity");
const role_entity_1 = require("./entities/role.entity");
const permission_entity_1 = require("./entities/permission.entity");
const role_permission_entity_1 = require("./entities/role-permission.entity");
const business_entity_1 = require("./entities/business.entity");
const subscription_plan_entity_1 = require("./entities/subscription-plan.entity");
const subscription_entity_1 = require("./entities/subscription.entity");
const location_entity_1 = require("./entities/location.entity");
const router_entity_1 = require("./entities/router.entity");
const package_entity_1 = require("./entities/package.entity");
const package_router_assignment_entity_1 = require("./entities/package-router-assignment.entity");
const customer_entity_1 = require("./entities/customer.entity");
const customer_device_entity_1 = require("./entities/customer-device.entity");
const wifi_session_entity_1 = require("./entities/wifi-session.entity");
const radius_account_entity_1 = require("./entities/radius-account.entity");
const voucher_entity_1 = require("./entities/voucher.entity");
const voucher_batch_entity_1 = require("./entities/voucher-batch.entity");
const payment_entity_1 = require("./entities/payment.entity");
const payment_attempt_entity_1 = require("./entities/payment-attempt.entity");
const mpesa_callback_entity_1 = require("./entities/mpesa-callback.entity");
const mpesa_reconciliation_entity_1 = require("./entities/mpesa-reconciliation.entity");
const transaction_entity_1 = require("./entities/transaction.entity");
const commission_entity_1 = require("./entities/commission.entity");
const invoice_entity_1 = require("./entities/invoice.entity");
const receipt_entity_1 = require("./entities/receipt.entity");
const notification_entity_1 = require("./entities/notification.entity");
const notification_template_entity_1 = require("./entities/notification-template.entity");
const support_ticket_entity_1 = require("./entities/support-ticket.entity");
const audit_log_entity_1 = require("./entities/audit-log.entity");
const api_log_entity_1 = require("./entities/api-log.entity");
const system_settings_entity_1 = require("./entities/system-settings.entity");
const business_settings_entity_1 = require("./entities/business-settings.entity");
const background_job_entity_1 = require("./entities/background-job.entity");
const failed_job_entity_1 = require("./entities/failed-job.entity");
let DatabaseModule = class DatabaseModule {
};
exports.DatabaseModule = DatabaseModule;
exports.DatabaseModule = DatabaseModule = __decorate([
    (0, common_1.Module)({
        imports: [
            typeorm_1.TypeOrmModule.forFeature([
                user_entity_1.User,
                role_entity_1.Role,
                permission_entity_1.Permission,
                role_permission_entity_1.RolePermission,
                business_entity_1.Business,
                subscription_plan_entity_1.SubscriptionPlan,
                subscription_entity_1.Subscription,
                location_entity_1.Location,
                router_entity_1.Router,
                package_entity_1.Package,
                package_router_assignment_entity_1.PackageRouterAssignment,
                customer_entity_1.Customer,
                customer_device_entity_1.CustomerDevice,
                wifi_session_entity_1.WifiSession,
                radius_account_entity_1.RadiusAccount,
                voucher_entity_1.Voucher,
                voucher_batch_entity_1.VoucherBatch,
                payment_entity_1.Payment,
                payment_attempt_entity_1.PaymentAttempt,
                mpesa_callback_entity_1.MpesaCallback,
                mpesa_reconciliation_entity_1.MpesaReconciliation,
                transaction_entity_1.Transaction,
                commission_entity_1.Commission,
                invoice_entity_1.Invoice,
                receipt_entity_1.Receipt,
                notification_entity_1.Notification,
                notification_template_entity_1.NotificationTemplate,
                support_ticket_entity_1.SupportTicket,
                audit_log_entity_1.AuditLog,
                api_log_entity_1.ApiLog,
                system_settings_entity_1.SystemSettings,
                business_settings_entity_1.BusinessSettings,
                background_job_entity_1.BackgroundJob,
                failed_job_entity_1.FailedJob,
            ]),
        ],
        exports: [typeorm_1.TypeOrmModule],
    })
], DatabaseModule);
