30 lines
601 B
JavaScript
30 lines
601 B
JavaScript
import { actions } from "./Action";
|
|
export const desc = {
|
|
attributes: {
|
|
when: {
|
|
type: "datetime"
|
|
},
|
|
orderId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "order"
|
|
},
|
|
price: {
|
|
notNull: true,
|
|
type: "money"
|
|
},
|
|
settledAt: {
|
|
type: "datetime"
|
|
},
|
|
closedAt: {
|
|
type: "datetime"
|
|
},
|
|
iState: {
|
|
type: "enum",
|
|
enumeration: ["unsettled", "settled", "closed"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions
|
|
};
|