pl4y-data-library
Version:
This library contains the dtos, enums, schemas, and other data objects needed in the pl4y ecosystem.
22 lines (20 loc) • 580 B
text/typescript
import mongoose from "mongoose";
import { TenantType } from "../../enums/tenant-types.enum";
import { User } from "../user/user.dto";
import { Address } from "../user/address.dto";
export interface Tenant {
_id?: string; //mongo id
id?: string;
name: string;
email: string;
phone?: string;
ownerId: string;
tenantId: string;
homePageOriginURL: string;
supportEmail: string;
hasShippingAddress?: boolean;
membership?: string;
tenantType: TenantType;
user: User;
businessAddress?: mongoose.Schema.Types.ObjectId | Address;
}