oak-pay-business/lib/oak-app-domain/WithdrawTransfer/Storage.js

55 lines
1.2 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const Action_1 = require("./Action");
exports.desc = {
attributes: {
iState: {
type: "enum",
enumeration: ["transferring", "successful", "failed"]
},
withdrawId: {
notNull: true,
type: "ref",
ref: "withdraw"
},
withdrawAccountId: {
notNull: true,
type: "ref",
ref: "withdrawAccount"
},
price: {
notNull: true,
type: "money"
},
loss: {
notNull: true,
type: "money"
},
operatorId: {
type: "ref",
ref: "user"
},
creatorId: {
notNull: true,
type: "ref",
ref: "user"
},
externalId: {
type: "varchar",
params: {
length: 128
}
},
meta: {
notNull: true,
type: "object"
},
reason: {
type: "text"
}
},
actionType: "crud",
actions: Action_1.actions
};