38 lines
851 B
JavaScript
38 lines
851 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.desc = void 0;
|
|
const Action_1 = require("./Action");
|
|
exports.desc = {
|
|
attributes: {
|
|
price: {
|
|
notNull: true,
|
|
type: "money"
|
|
},
|
|
loss: {
|
|
notNull: true,
|
|
type: "money"
|
|
},
|
|
accountId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "account"
|
|
},
|
|
creatorId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
shipId: {
|
|
type: "ref",
|
|
ref: "ship"
|
|
},
|
|
iState: {
|
|
notNull: true,
|
|
type: "enum",
|
|
enumeration: ["depositing", "successful", "failed", "shipped"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions: Action_1.actions
|
|
};
|