32 lines
674 B
JavaScript
32 lines
674 B
JavaScript
import { appendOnlyActions as actions } from "oak-domain/lib/actions/action";
|
|
export const desc = {
|
|
attributes: {
|
|
price: {
|
|
notNull: true,
|
|
type: "money"
|
|
},
|
|
externalId: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 64
|
|
}
|
|
},
|
|
operatorId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
remark: {
|
|
type: "text"
|
|
},
|
|
systemId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "system"
|
|
}
|
|
},
|
|
actionType: "appendOnly",
|
|
actions
|
|
};
|