74 lines
1.6 KiB
JavaScript
74 lines
1.6 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.desc = void 0;
|
|
var Action_1 = require("./Action");
|
|
exports.desc = {
|
|
attributes: {
|
|
entity: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
entityId: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 64
|
|
}
|
|
},
|
|
userId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
type: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 64
|
|
}
|
|
},
|
|
weight: {
|
|
notNull: true,
|
|
type: "enum",
|
|
enumeration: ["high", "medium", "low"]
|
|
},
|
|
restriction: {
|
|
type: "object"
|
|
},
|
|
title: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 256
|
|
}
|
|
},
|
|
content: {
|
|
notNull: true,
|
|
type: "text"
|
|
},
|
|
data: {
|
|
type: "object"
|
|
},
|
|
router: {
|
|
type: "object"
|
|
},
|
|
platformId: {
|
|
type: "ref",
|
|
ref: "platform"
|
|
},
|
|
iState: {
|
|
type: "enum",
|
|
enumeration: ["sending", "success", "failure"]
|
|
},
|
|
visitState: {
|
|
type: "enum",
|
|
enumeration: ["unvisited", "visited"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions: Action_1.actions
|
|
};
|