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

47 lines
1.0 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: {
sourceRelationId: {
notNull: true,
type: "ref",
ref: "relation"
},
path: {
notNull: true,
type: "varchar",
params: {
length: 256
}
},
destRelationId: {
notNull: true,
type: "ref",
ref: "relation"
}
},
actionType: "crud",
actions: action_1.genericActions,
indexes: [
{
name: 'index_entity_relation_path',
attributes: [
{
name: "sourceRelationId"
},
{
name: 'path'
},
{
name: "destRelationId"
},
],
config: {
unique: true
}
}
]
};