oak-pay-business/es/oak-app-domain/Withdraw/Storage.js

45 lines
960 B
JavaScript

import { actions } from "./Action";
export const desc = {
attributes: {
accountId: {
notNull: true,
type: "ref",
ref: "account"
},
price: {
notNull: true,
type: "money"
},
loss: {
notNull: true,
type: "money"
},
dealPrice: {
notNull: true,
type: "money"
},
dealLoss: {
notNull: true,
type: "money"
},
creatorId: {
notNull: true,
type: "ref",
ref: "user"
},
reason: {
type: "text"
},
meta: {
type: "object"
},
iState: {
notNull: true,
type: "enum",
enumeration: ["withdrawing", "successful", "partiallySuccessful", "failed", "applying"]
}
},
actionType: "crud",
actions
};