34 lines
778 B
JavaScript
34 lines
778 B
JavaScript
import { genericActions as actions } from "oak-domain/lib/actions/action";
|
|
export const desc = {
|
|
attributes: {
|
|
wpAccountId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "wpAccount"
|
|
},
|
|
type: {
|
|
notNull: true,
|
|
type: "enum",
|
|
enumeration: ["native", "mp", "jsapi", "h5", "app"]
|
|
},
|
|
taxLossRatio: {
|
|
type: "decimal",
|
|
params: {
|
|
precision: 4,
|
|
scale: 2
|
|
}
|
|
},
|
|
applicationId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "application"
|
|
},
|
|
enabled: {
|
|
notNull: true,
|
|
type: "boolean"
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions
|
|
};
|