import { Document } from 'mongoose'; import { IDefaultAttributes } from './commonInterface'; import { APP_TYPE } from '../constants'; export interface IModulePriceList { moduleCode: string[]; pricePerStudent: number; pricePerUser: number; totalPricePerStudent?: number; totalPricePerUser?: number; } export interface IModulePriceModelAttributes extends IDefaultAttributes, Document { id: string; title: string; moduleList: IModulePriceList[]; totalPricePerStudent?: number; totalPricePerUser?: number; appType: APP_TYPE; expiredDate?: Date; buyDate?: Date; }