35 lines
736 B
JavaScript
35 lines
736 B
JavaScript
import { actions } from "./Action";
|
|
export const 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
|
|
};
|