41 lines
967 B
JavaScript
41 lines
967 B
JavaScript
import { appendOnlyActions as actions } from "oak-domain/lib/actions/action";
|
|
export const desc = {
|
|
attributes: {
|
|
accountId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "account"
|
|
},
|
|
type: {
|
|
notNull: true,
|
|
type: "enum",
|
|
enumeration: ["deposit", "withdraw", "consume", "loan", "repay", "withdrawBack", "loss"]
|
|
},
|
|
totalPlus: {
|
|
notNull: true,
|
|
type: "money"
|
|
},
|
|
availPlus: {
|
|
notNull: true,
|
|
type: "money"
|
|
},
|
|
entity: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
},
|
|
ref: ["pay", "withdraw"]
|
|
},
|
|
entityId: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 64
|
|
}
|
|
}
|
|
},
|
|
actionType: "appendOnly",
|
|
actions
|
|
};
|