43 lines
895 B
JavaScript
43 lines
895 B
JavaScript
import { genericActions as actions } from "oak-domain/lib/actions/action";
|
|
export const 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
|
|
};
|