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

56 lines
1.2 KiB
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: {
action: {
notNull: true,
type: "varchar",
params: {
length: 24
}
},
data: {
notNull: true,
type: "object"
},
filter: {
type: "object"
},
extra: {
type: "object"
},
operatorId: {
type: "ref",
ref: "user"
},
targetEntity: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
bornAt: {
type: "datetime"
}
},
actionType: "appendOnly",
actions: action_1.appendOnlyActions,
indexes: [
{
name: 'index_bornAt_operatorId',
attributes: [
{
name: 'bornAt',
direction: 'DESC',
},
{
name: "operatorId",
},
]
}
]
};