18 lines
586 B
TypeScript
18 lines
586 B
TypeScript
import { String, Price } from 'oak-domain/lib/types/DataType';
|
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
import { EntityDesc } from 'oak-domain/lib/types';
|
|
import { Schema as Account } from './Account';
|
|
type Type = 'deposit' | 'withdraw' | 'consume' | 'loan' | 'repay' | 'withdrawBack' | 'loss';
|
|
export interface Schema extends EntityShape {
|
|
account: Account;
|
|
type: Type;
|
|
totalPlus: Price;
|
|
availPlus: Price;
|
|
entity: String<32>;
|
|
entityId: String<64>;
|
|
}
|
|
export declare const entityDesc: EntityDesc<Schema, '', '', {
|
|
type: Type;
|
|
}>;
|
|
export {};
|