oak-pay-business/lib/oak-app-domain/ArticleMenu/Storage.js

46 lines
999 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const action_1 = require("oak-domain/lib/actions/action");
exports.desc = {
attributes: {
name: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
isArticle: {
notNull: true,
type: "boolean"
},
parentId: {
type: "ref",
ref: "articleMenu"
},
isLeaf: {
type: "boolean"
},
entity: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
entityId: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
latestAt: {
type: "datetime"
}
},
actionType: "crud",
actions: action_1.genericActions
};