oak-pay-business/es/oak-app-domain/RelationAuth/Storage.js

42 lines
936 B
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const desc = {
attributes: {
sourceRelationId: {
notNull: true,
type: "ref",
ref: "relation"
},
pathId: {
notNull: true,
type: "ref",
ref: "path"
},
destRelationId: {
notNull: true,
type: "ref",
ref: "relation"
}
},
actionType: "crud",
actions,
indexes: [
{
name: 'index_entity_relation_path',
attributes: [
{
name: "sourceRelationId",
},
{
name: "pathId",
},
{
name: "destRelationId",
},
],
config: {
unique: true,
},
}
]
};