oak-general-business/lib/general-app-domain/Subscription/Storage.js

57 lines
1.2 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
var action_1 = require("oak-domain/lib/actions/action");
exports.desc = {
attributes: {
entity: {
type: "varchar",
params: {
length: 32
}
},
entityId: {
type: "varchar",
params: {
length: 64
}
},
name: {
type: "varchar",
params: {
length: 32
}
},
description: {
type: "text"
},
config: {
type: "object"
}
},
actionType: "crud",
actions: action_1.genericActions,
indexes: [
//索引
{
name: 'index_name',
attributes: [
{
name: 'name'
},
]
},
{
name: 'index_entity',
attributes: [
{
name: 'entity'
},
{
name: 'entityId'
}
]
}
]
};