16 lines
286 B
TypeScript
16 lines
286 B
TypeScript
import { Types } from "mongoose";
|
|
|
|
export enum TransactionType {
|
|
CREDIT = "CREDIT",
|
|
DEBIT = "DEBIT",
|
|
WITHDRAWAL = "WITHDRAWAL",
|
|
}
|
|
|
|
export interface ITransaction {
|
|
wallet: Types.ObjectId;
|
|
order: number;
|
|
amount: number;
|
|
transactionType: TransactionType;
|
|
reason: string;
|
|
}
|