import { IDefaultAttributes } from './commonInterface'; import { USER_PAYOUT_TYPE, USER_TYPES } from '../constants/app'; export interface IUserPayoutDetails { subjectId?: string; batchId?: string; amountPerHour?: number; payableAmount?: number; percentage?: number; type?: USER_PAYOUT_TYPE; } export interface IUserPayoutModelAttributes extends IDefaultAttributes { id: string; userId: string; userType: USER_TYPES; instituteId: string; academicCalendarId?: string; totalPayableAmount?: number; totalPaidAmount?: number; type: USER_PAYOUT_TYPE; payoutDetails?: IUserPayoutDetails[]; startDate?: Date; endDate?: Date; lastCalculatedAt: Date; }