@nestdevx/tenant
Version:
Tenant module for multi-tenant NestJS applications.
21 lines (20 loc) • 834 B
TypeScript
import { Document } from "mongoose";
export declare class TenantEntity {
name: string;
host?: string;
dbUri: string;
isActive: boolean;
createdAt: string;
updatedAt: string;
}
export declare const TenantSchema: import("mongoose").Schema<TenantEntity, import("mongoose").Model<TenantEntity, any, any, any, Document<unknown, any, TenantEntity, any> & TenantEntity & {
_id: import("mongoose").Types.ObjectId;
} & {
__v: number;
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, TenantEntity, Document<unknown, {}, import("mongoose").FlatRecord<TenantEntity>, {}> & import("mongoose").FlatRecord<TenantEntity> & {
_id: import("mongoose").Types.ObjectId;
} & {
__v: number;
}>;
export type TenantDocument = TenantEntity & Document;
export declare const TENANT_MODEL_NAME = "Tenant";