Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | import { Module } from '@nestjs/common'; import { MongooseModule } from '@nestjs/mongoose'; import { Tenant, TenantSchema } from './schemas/tenant.schema'; import { User, UserSchema } from '../user/schemas/user.schema'; import { Subscription, SubscriptionSchema, } from '../subscriptions/schemas/subscription.schema'; import { TenantModuleLicense, TenantModuleLicenseSchema, } from '../auth/schemas/module.schema'; import { Contact, ContactSchema, } from '../../domains/crm/schemas/account-contact.schema'; import { Opportunity, OpportunitySchema, } from '../../domains/crm/schemas/opportunity.schema'; import { CrmProduct, CrmProductSchema, } from '../../domains/crm/schemas/product-pricing.schema'; import { BillingInvoice, BillingInvoiceSchema, } from '../billing/schemas/billing.schema'; import { Project, ProjectSchema, } from '../../domains/projects/schemas/project.schema'; import { Employee, EmployeeSchema, } from '../../domains/hr/employee/schemas/employee.schema'; import { TenantService } from './tenant.service'; import { BrandingController } from './branding.controller'; @Module({ imports: [ MongooseModule.forFeature([ { name: Tenant.name, schema: TenantSchema }, { name: User.name, schema: UserSchema }, { name: Subscription.name, schema: SubscriptionSchema }, { name: TenantModuleLicense.name, schema: TenantModuleLicenseSchema }, { name: Contact.name, schema: ContactSchema }, { name: Opportunity.name, schema: OpportunitySchema }, { name: CrmProduct.name, schema: CrmProductSchema }, { name: BillingInvoice.name, schema: BillingInvoiceSchema }, { name: Project.name, schema: ProjectSchema }, { name: Employee.name, schema: EmployeeSchema }, ]), ], controllers: [BrandingController], providers: [TenantService], exports: [TenantService, MongooseModule], }) export class TenantModule {} |