Skip to content
On this page

Plan groups services

typescript
// src/app.ts
import { initPlans, TenantPlanInfo } from '@yunology/ts-multi-tenancy';

import { User } from './entity/user.entity';
import { UserService } from './service/user';

export function initPlan(): void {
  initPlans(() => ({
    standard: new TenantPlanInfo(
      'standard',
      [UserService],
      [User],
      [],
    ),
  }));
}