inmemory to postgres
This commit is contained in:
@@ -13,6 +13,12 @@ export interface Wallet {
|
||||
createdAt: Date;
|
||||
}
|
||||
|
||||
export const Wallet = {
|
||||
rehydrate(props: Wallet): Wallet {
|
||||
return { ...props };
|
||||
},
|
||||
};
|
||||
|
||||
export enum TransactionType {
|
||||
DEPOSIT = 'deposit',
|
||||
WITHDRAWAL = 'withdrawal',
|
||||
@@ -34,4 +40,10 @@ export interface Transaction {
|
||||
referenceId?: string;
|
||||
referenceType?: ReferenceType;
|
||||
createdAt: Date;
|
||||
}
|
||||
}
|
||||
|
||||
export const Transaction = {
|
||||
rehydrate(props: Transaction): Transaction {
|
||||
return { ...props };
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user