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

48 lines
1.1 KiB
JavaScript

import { appendOnlyActions as actions } from "oak-domain/lib/actions/action";
export const desc = {
attributes: {
delta: {
notNull: true,
type: "money"
},
type: {
notNull: true,
type: "enum",
enumeration: ["pay", "refund", "withdrawTransfer", "compensate", "moveIn", "moveOut"]
},
entity: {
notNull: true,
type: "varchar",
params: {
length: 32
},
ref: ["offlineAccount", "wpAccount"]
},
entityId: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
payId: {
type: "ref",
ref: "pay"
},
refundId: {
type: "ref",
ref: "refund"
},
withdrawTransferId: {
type: "ref",
ref: "withdrawTransfer"
},
sysAccountMoveId: {
type: "ref",
ref: "sysAccountMove"
}
},
actionType: "appendOnly",
actions
};